Improve CI for wasmer_wamr feature #700
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: run tests | |
on: | |
push: | |
branches: | |
- develop | |
pull_request: {} | |
concurrency: | |
group: ${{ github.head_ref }} | |
cancel-in-progress: true | |
jobs: | |
# test-and-bench: | |
# strategy: | |
# fail-fast: false | |
# matrix: | |
# script: ["test", "bench"] | |
# os: ["ubuntu-latest", "macos-latest"] | |
# wasmer-feature: ["wasmer_sys", "wasmer_wamr"] | |
# runs-on: ${{ matrix.os }} | |
# steps: | |
# - uses: actions/checkout@v4 | |
# - name: Install nix | |
# uses: cachix/install-nix-action@v26 | |
# - name: Setup cachix | |
# uses: cachix/cachix-action@v14 | |
# if: ${{ ! contains(matrix.platform.runs-on, 'self-hosted') }} | |
# with: | |
# name: holochain-ci | |
# authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" | |
# - run: nix develop --command ./scripts/${{ matrix.script }}-${{ matrix.wasmer-feature }}.sh | |
test-windows: | |
strategy: | |
fail-fast: false | |
matrix: | |
wasmer-feature: [ | |
# "wasmer_sys", | |
"wasmer_wamr" | |
] | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
targets: wasm32-unknown-unknown | |
- name: test root | |
run: cargo test --release --no-default-features --features error_as_host,${{ matrix.wasmer-feature }} -- --nocapture | |
- name: test | |
run: cargo test --release --manifest-path test/Cargo.toml --no-default-features --features ${{ matrix.wasmer-feature }} -- --nocapture | |
# bench-windows: | |
# strategy: | |
# fail-fast: false | |
# matrix: | |
# wasmer-feature: ["wasmer_sys", "wasmer_wamr"] | |
# runs-on: windows-latest | |
# steps: | |
# - uses: actions/checkout@v4 | |
# - uses: dtolnay/rust-toolchain@stable | |
# with: | |
# targets: wasm32-unknown-unknown | |
# - name: bench | |
# run: cd test && cargo bench --no-default-features --features error_as_host,${{ matrix.wasmer-feature }} |