Skip to content

Commit

Permalink
wip: only test win32 wasmer_wamr
Browse files Browse the repository at this point in the history
  • Loading branch information
mattyg committed Aug 30, 2024
1 parent 44a8af5 commit 4fddfc3
Showing 1 changed file with 36 additions and 33 deletions.
69 changes: 36 additions & 33 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,34 @@ concurrency:
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-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"]
wasmer-feature: [
# "wasmer_sys",
"wasmer_wamr"
]
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -47,16 +50,16 @@ jobs:
- 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 }}
# 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 }}

0 comments on commit 4fddfc3

Please sign in to comment.