Wasmer shared memory test #54
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| test-native: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Nix | |
| uses: DeterminateSystems/nix-installer-action@v14 | |
| - name: Magic Nix Cache | |
| uses: DeterminateSystems/magic-nix-cache-action@v8 | |
| - run: nix-shell --run "make test-native" | |
| - run: nix-shell --run "make bench-native" | |
| test-wasm: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Nix | |
| uses: DeterminateSystems/nix-installer-action@v14 | |
| - name: Magic Nix Cache | |
| uses: DeterminateSystems/magic-nix-cache-action@v8 | |
| - name: Create dummy assets to satisfy compiler | |
| run: | | |
| mkdir -p crates/worker/pkg | |
| touch crates/worker/pkg/worker.js | |
| touch crates/worker/pkg/worker_bg.wasm | |
| - run: nix-shell --run "make test-wasm" | |
| - run: nix-shell --run "make bench-wasm" | |
| clippy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Nix | |
| uses: DeterminateSystems/nix-installer-action@v14 | |
| - name: Magic Nix Cache | |
| uses: DeterminateSystems/magic-nix-cache-action@v8 | |
| - name: Create dummy assets to satisfy compiler | |
| run: | | |
| mkdir -p crates/worker/pkg | |
| touch crates/worker/pkg/worker.js | |
| touch crates/worker/pkg/worker_bg.wasm | |
| - run: nix-shell --run "make clippy-native" | |
| - run: nix-shell --run "make clippy-wasm" |