Skip to content

Commit 94dd244

Browse files
committed
simplify intrinsic test matrix
1 parent 24dd9a9 commit 94dd244

File tree

1 file changed

+17
-36
lines changed

1 file changed

+17
-36
lines changed

.github/workflows/main.yml

Lines changed: 17 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -248,65 +248,46 @@ jobs:
248248
if: matrix.target.os == 'ubuntu-latest' && !startsWith(matrix.target.tuple, 'thumb')
249249
env:
250250
TARGET: ${{ matrix.target.tuple }}
251-
251+
252252
intrinsic-test:
253253
needs: [style]
254254
name: Intrinsic Test
255-
runs-on: ${{ matrix.target.os }}
255+
runs-on: ubuntu-latest
256256
strategy:
257257
matrix:
258-
profile:
259-
- dev
260-
- release
261-
262258
include:
263-
- target:
264-
tuple: aarch64-unknown-linux-gnu
265-
os: ubuntu-latest
259+
- target: aarch64-unknown-linux-gnu
266260

267-
- target:
268-
tuple: aarch64_be-unknown-linux-gnu
269-
os: ubuntu-latest
270-
build_std: true
261+
- target: aarch64_be-unknown-linux-gnu
262+
build_std: true
271263

272-
- target:
273-
tuple: armv7-unknown-linux-gnueabihf
274-
os: ubuntu-latest
264+
- target: armv7-unknown-linux-gnueabihf
275265

276-
- target:
277-
tuple: arm-unknown-linux-gnueabihf
278-
os: ubuntu-latest
266+
- target: arm-unknown-linux-gnueabihf
267+
268+
profile:
269+
- dev
270+
- release
279271

280272
steps:
281273
- uses: actions/checkout@v4
282274
- name: Install Rust
283275
run: |
284276
rustup update nightly --no-self-update
285277
rustup default nightly
286-
shell: bash
287-
- run: rustup target add ${{ matrix.target.tuple }}
288-
shell: bash
278+
- run: rustup target add ${{ matrix.target }}
289279
if: ${{ (matrix.build_std || false) == false }}
290280
- run: |
291281
rustup component add rust-src
292282
echo "CARGO_UNSTABLE_BUILD_STD=std" >> $GITHUB_ENV
293-
shell: bash
294-
if: ${{ (matrix.build_std || false) == true }}
283+
if: ${{ matrix.build_std }}
295284
296285
# Configure some env vars based on matrix configuration
297-
- run: echo "PROFILE=--profile=${{matrix.profile}}" >> $GITHUB_ENV
298-
shell: bash
299-
- run: echo "STDARCH_TEST_EVERYTHING=1" >> $GITHUB_ENV
300-
shell: bash
301-
if: matrix.test_everything != ''
302-
- run: echo "STDARCH_DISABLE_ASSERT_INSTR=1" >> $GITHUB_ENV
303-
shell: bash
304-
if: matrix.disable_assert_instr != ''
305-
- run: ./ci/intrinsic-test-docker.sh ${{ matrix.target.tuple }}
306-
shell: bash
307-
if: matrix.target.os == 'ubuntu-latest' && !startsWith(matrix.target.tuple, 'thumb')
286+
- run: echo "PROFILE=--profile=${{ matrix.profile }}" >> $GITHUB_ENV
287+
- run: ./ci/intrinsic-test-docker.sh ${{ matrix.target }}
288+
if: ${{ !startsWith(matrix.target, 'thumb') }}
308289
env:
309-
TARGET: ${{ matrix.target.tuple }}
290+
TARGET: ${{ matrix.target }}
310291

311292
# Check that the generated files agree with the checked-in versions.
312293
check-stdarch-gen:

0 commit comments

Comments
 (0)