Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes committed Sep 29, 2024
1 parent 199ae58 commit ee1403a
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,20 @@ env:

jobs:
test:
name: Test
name: Test +${{ matrix.rust }} ${{ matrix.target.triple }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target:
- aarch64-unknown-linux-gnu
- i686-unknown-linux-gnu
- x86_64-unknown-linux-gnu
- wasm32-wasip1
- triple: aarch64-unknown-linux-gnu
feature: +neon
- triple: i686-unknown-linux-gnu
feature: +avx2
- triple: x86_64-unknown-linux-gnu
feature: +avx2
- triple: wasm32-wasip1
feature: +simd128
rust: [nightly, stable, 1.64]
exclude:
- target: wasm32-wasip1
Expand All @@ -35,15 +39,18 @@ jobs:
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
target: ${{ matrix.target.triple }}
- uses: taiki-e/setup-cross-toolchain-action@v1
with:
target: ${{ matrix.target }}
target: ${{ matrix.target.triple }}

- name: Enable type layout randomization
run: echo RUSTFLAGS=${RUSTFLAGS}\ -Zrandomize-layout >> $GITHUB_ENV
if: matrix.rust == 'nightly'

- name: Enable target feature
run: echo RUSTFLAGS=${RUSTFLAGS}\ -Ctarget-feature=${{ matrix.target.feature }} >> $GITHUB_ENV

- uses: Swatinem/rust-cache@v2

- run: cargo build
Expand Down

0 comments on commit ee1403a

Please sign in to comment.