Skip to content

Commit

Permalink
sha2(ci): account for wasm32-wasi target renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
max-te committed Oct 31, 2024
1 parent da398bb commit c27cf7a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/sha2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -205,29 +205,34 @@ jobs:
# without simd
- rust: ${{needs.set-msrv.outputs.msrv}}
flags: "-C target-feature=-simd128"
target_name: wasm32-wasi # Changed in Rust >=1.81
- rust: stable
flags: "-C target-feature=-simd128"
target_name: wasm32-wasip1

# with simd
- rust: ${{needs.set-msrv.outputs.msrv}}
flags: "-C target-feature=+simd128"
target_name: wasm32-wasi
- rust: stable
flags: "-C target-feature=+simd128"
target_name: wasm32-wasip1
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: RustCrypto/actions/cargo-cache@master
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
targets: wasm32-wasi
targets: ${{ matrix.target_name }}
- uses: RustCrypto/actions/cargo-hack-install@master
- uses: jcbhmr/setup-wasmtime@v2
- run: cargo hack test --feature-powerset --target wasm32-wasi
- run: cargo hack test --feature-powerset --target ${{ matrix.target_name }}
env:
RUSTFLAGS: ${{ matrix.flags }}
CARGO_TARGET_WASM32_WASI_RUNNER: wasmtime

CARGO_TARGET_WASM32_WASIP1_RUNNER: wasmtime

minimal-versions:
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
with:
Expand Down

0 comments on commit c27cf7a

Please sign in to comment.