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 62fd698
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
25 changes: 17 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,35 +15,44 @@ 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
- target:
triple: wasm32-wasip1
feature: +simd128
rust: 1.64
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- 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
1 change: 1 addition & 0 deletions src/arch/wasm32.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ pub(crate) fn check(input: &[u8]) -> bool {

#[target_feature(enable = "simd128")]
unsafe fn check_simd128(input: &[u8]) -> bool {
panic!("test");
generic::check_unaligned_chunks(input, |chunk: v128| {
let ge0 = u8x16_ge(chunk, u8x16_splat(b'0'));
let le9 = u8x16_le(chunk, u8x16_splat(b'9'));
Expand Down

0 comments on commit 62fd698

Please sign in to comment.