Skip to content

Commit d3da1fa

Browse files
committed
gnu: Set up the CI for _TIME_BITS=64
Add new jobs for i686 in test_tier1 and arm and powerpc in test_tier2 where RUST_LIBC_UNSTABLE_GNU_TIME_BITS=64. Use artifact-tag to avoid artifact name collisions.
1 parent 1a1d9b7 commit d3da1fa

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@ jobs:
9898
artifact-tag: offset-bits64
9999
env:
100100
RUST_LIBC_UNSTABLE_GNU_FILE_OFFSET_BITS: 64
101+
- target: i686-unknown-linux-gnu
102+
docker: true
103+
os: ubuntu-24.04
104+
artifact-tag: time-bits64
105+
env:
106+
RUST_LIBC_UNSTABLE_GNU_TIME_BITS: 64
101107
- target: x86_64-unknown-linux-gnu
102108
docker: true
103109
os: ubuntu-24.04
@@ -195,13 +201,21 @@ jobs:
195201
env:
196202
RUST_LIBC_UNSTABLE_GNU_FILE_OFFSET_BITS: 64
197203
artifact-tag: offset-bits64
204+
- target: arm-unknown-linux-gnueabihf
205+
env:
206+
RUST_LIBC_UNSTABLE_GNU_TIME_BITS: 64
207+
artifact-tag: time-bits64
198208
# FIXME(ppc): SIGILL running tests, see
199209
# https://github.com/rust-lang/libc/pull/4254#issuecomment-2636288713
200210
# - target: powerpc-unknown-linux-gnu
201211
# - target: powerpc-unknown-linux-gnu
202212
# env:
203213
# RUST_LIBC_UNSTABLE_GNU_FILE_OFFSET_BITS: 64
204214
# artifact-tag: offset-bits64
215+
# - target: powerpc-unknown-linux-gnu
216+
# env:
217+
# RUST_LIBC_UNSTABLE_GNU_TIME_BITS: 64
218+
# artifact-tag: time-bits64
205219
timeout-minutes: 25
206220
env:
207221
TARGET: ${{ matrix.target }}

ci/run-docker.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ run() {
4444
--env LIBC_CI \
4545
--env LIBC_CI_ZBUILD_STD \
4646
--env RUST_LIBC_UNSTABLE_GNU_FILE_OFFSET_BITS \
47+
--env RUST_LIBC_UNSTABLE_GNU_TIME_BITS \
4748
--env CARGO_HOME=/cargo \
4849
--env CARGO_TARGET_DIR=/checkout/target \
4950
--volume "$CARGO_HOME":/cargo \

ci/verify-build.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ test_target() {
7777
case "$target" in
7878
# Test with the equivalent of __FILE_OFFSET_BITS=64
7979
arm*-gnu*|i*86*-gnu|powerpc-*-gnu*|mips*-gnu|sparc-*-gnu|thumb-*gnu*)
80-
RUST_LIBC_UNSTABLE_GNU_FILE_OFFSET_BITS=64 $cmd;;
80+
RUST_LIBC_UNSTABLE_GNU_FILE_OFFSET_BITS=64 $cmd
81+
RUST_LIBC_UNSTABLE_GNU_TIME_BITS=64 $cmd
82+
;;
8183
esac
8284
fi
8385

0 commit comments

Comments
 (0)