Skip to content

Commit e421844

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 3a906cc commit e421844

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
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,6 +201,10 @@ 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
- target: aarch64-unknown-linux-musl
199209
env:
200210
RUST_LIBC_UNSTABLE_MUSL_V1_2_3: 1
@@ -214,6 +224,10 @@ jobs:
214224
# env:
215225
# RUST_LIBC_UNSTABLE_GNU_FILE_OFFSET_BITS: 64
216226
# artifact-tag: offset-bits64
227+
# - target: powerpc-unknown-linux-gnu
228+
# env:
229+
# RUST_LIBC_UNSTABLE_GNU_TIME_BITS: 64
230+
# artifact-tag: time-bits64
217231
timeout-minutes: 25
218232
env:
219233
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: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,12 @@ test_target() {
7575
# Test with the equivalent of __USE_TIME_BITS64
7676
RUST_LIBC_UNSTABLE_LINUX_TIME_BITS64=1 $cmd
7777
case "$target" in
78-
# Test with the equivalent of __FILE_OFFSET_BITS=64
7978
arm*-gnu*|i*86*-gnu|powerpc-*-gnu*|mips*-gnu|sparc-*-gnu|thumb-*gnu*)
80-
RUST_LIBC_UNSTABLE_GNU_FILE_OFFSET_BITS=64 $cmd;;
79+
# Test with the equivalent of _FILE_OFFSET_BITS=64
80+
RUST_LIBC_UNSTABLE_GNU_FILE_OFFSET_BITS=64 $cmd
81+
# Test with the equivalent of _TIME_BITS=64
82+
RUST_LIBC_UNSTABLE_GNU_TIME_BITS=64 $cmd
83+
;;
8184
esac
8285
fi
8386

0 commit comments

Comments
 (0)