Skip to content

Commit e21af3b

Browse files
committed
[TRY] Add aarch64_be CI run
1 parent af50673 commit e21af3b

File tree

3 files changed

+16
-8
lines changed

3 files changed

+16
-8
lines changed

.github/workflows/main.yml

+13-7
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ jobs:
5858
os: ubuntu-latest
5959
- tuple: aarch64-unknown-linux-gnu
6060
os: ubuntu-latest
61+
- tuple: aarch64_be-unknown-linux-gnu
62+
os: ubuntu-latest
6163
- tuple: riscv64gc-unknown-linux-gnu
6264
os: ubuntu-latest
6365
- tuple: powerpc-unknown-linux-gnu
@@ -131,6 +133,11 @@ jobs:
131133
tuple: armv7-unknown-linux-gnueabihf
132134
os: ubuntu-latest
133135
test_everything: true
136+
- target:
137+
tuple: aarch64_be-unknown-linux-gnu
138+
os: ubuntu-latest
139+
test_everything: true
140+
build_std: true
134141
- target:
135142
tuple: loongarch64-unknown-linux-gnu
136143
os: ubuntu-latest
@@ -192,14 +199,16 @@ jobs:
192199

193200
steps:
194201
- uses: actions/checkout@v4
195-
with:
196-
submodules: recursive
202+
197203
- name: Install Rust
198204
run: |
199205
rustup update nightly --no-self-update
200206
rustup default nightly
201207
- run: rustup target add ${{ matrix.target.tuple }}
202-
if: "!endsWith(matrix.target.tuple, 'emulated')"
208+
if: matrix.build_std == '' && !endsWith(matrix.target.tuple, 'emulated')
209+
- run: rustup component add rust-src
210+
if: matrix.build_std != ''
211+
203212
- run: cargo generate-lockfile
204213

205214
# Configure some env vars based on matrix configuration
@@ -211,9 +220,6 @@ jobs:
211220
- run: echo "STDARCH_TEST_EVERYTHING=1" >> $GITHUB_ENV
212221
shell: bash
213222
if: matrix.test_everything != ''
214-
- run: echo "STDARCH_DISABLE_ASSERT_INSTR=1" >> $GITHUB_ENV
215-
shell: bash
216-
if: matrix.disable_assert_instr != ''
217223
- run: echo "NOSTD=1" >> $GITHUB_ENV
218224
shell: bash
219225
if: startsWith(matrix.target.tuple, 'thumb') || matrix.target.tuple == 'nvptx64-nvidia-cuda'
@@ -228,7 +234,7 @@ jobs:
228234
# ... while Linux goes to `run-docker.sh`
229235
- run: ./ci/run-docker.sh ${{ matrix.target.tuple }}
230236
shell: bash
231-
if: "matrix.target.os == 'ubuntu-latest' && !startsWith(matrix.target.tuple, 'thumb')"
237+
if: matrix.target.os == 'ubuntu-latest' && !startsWith(matrix.target.tuple, 'thumb')
232238
env:
233239
TARGET: ${{ matrix.target.tuple }}
234240

ci/docker/aarch64_be-unknown-linux-gnu/Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,5 @@ ENV CARGO_TARGET_AARCH64_BE_UNKNOWN_LINUX_GNU_LINKER="${AARCH64_BE_TOOLCHAIN}/bi
2828
ENV CARGO_TARGET_AARCH64_BE_UNKNOWN_LINUX_GNU_RUNNER="qemu-aarch64_be -cpu max -L ${AARCH64_BE_LIBC}"
2929
ENV OBJDUMP="${AARCH64_BE_TOOLCHAIN}/bin/bin/aarch64-none-linux-gnu-objdump"
3030
ENV STDARCH_TEST_SKIP_FEATURE=tme
31+
32+
ENV CARGO_UNSTABLE_BUILD_STD=std

crates/simd-test-macro/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ pub fn simd_test(
5858
{
5959
"i686" | "x86_64" | "i586" => "is_x86_feature_detected",
6060
"arm" | "armv7" => "is_arm_feature_detected",
61-
"aarch64" | "arm64ec" => "is_aarch64_feature_detected",
61+
"aarch64" | "arm64ec" | "aarch64_be" => "is_aarch64_feature_detected",
6262
maybe_riscv if maybe_riscv.starts_with("riscv") => "is_riscv_feature_detected",
6363
"powerpc" | "powerpcle" => "is_powerpc_feature_detected",
6464
"powerpc64" | "powerpc64le" => "is_powerpc64_feature_detected",

0 commit comments

Comments
 (0)