-
Notifications
You must be signed in to change notification settings - Fork 11
58 lines (54 loc) · 1.72 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: run tests
on:
push:
branches:
- develop
pull_request: {}
jobs:
test:
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 ${{ 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 ${{ matrix.wasmer-feature }}