Skip to content

Commit

Permalink
wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
hkratz committed Oct 18, 2024
1 parent 6968ecf commit b45d2f2
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,28 +61,25 @@ jobs:
./check-inlining.sh ${{ matrix.target }} expected-methods-wasm32-simd128.txt "--features public_imp"
./check-inlining.sh ${{ matrix.target }} expected-methods-wasm32-simd128.txt "--features public_imp,std"
done
build-wasm32-unknown:
runs-on: ubuntu-latest
strategy:
matrix:
toolchain: ["1.38.0", stable, beta, nightly]
features:
[
"",
"--features std",
"--features public_imp",
"--features std,public_imp",
]
rustflags: ["-D warnings", "-D warnings -C target-feature=+simd128"]
target: [wasm32-unknown-unknown]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
targets: ${{ matrix.target }}
targets: wasm32-unknown-unknown
- name: Run build
run: cargo build --no-default-features ${{ matrix.features }} --target ${{ matrix.target }} --verbose
run: |
for rustflags in "-D warnings", "-D warnings -C target-feature=+simd128"; do
for features in "" "--features std" "--features public_imp" "--features std,public_imp"; do
cargo clean; RUSTFLAGS=$rustflags cargo build --no-default-features $features --target ${{ matrix.target }} --verbose
done
done
env:
RUSTFLAGS: ${{ matrix.rustflags }}

Expand Down

0 comments on commit b45d2f2

Please sign in to comment.