-
Notifications
You must be signed in to change notification settings - Fork 11
77 lines (72 loc) · 2.64 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: run tests
on:
push:
branches:
- develop
pull_request: {}
concurrency:
group: test-${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
# test-and-bench:
# strategy:
# fail-fast: false
# matrix:
# script: ["test", "bench"]
# os: ["ubuntu-latest", "macos-latest"]
# wasmer-feature: ["wasmer_sys_dev", "wasmer_sys_prod", "wasmer_wamr"]
# exclude:
# # TODO bench suite on macos-latest is killed by system due to running out of swap space
# # All benches run fine individually
# - script: bench
# os: macos-latest
# wasmer-feature: wasmer_wamr
# runs-on: ${{ matrix.os }}
# steps:
# - name: increase swap space
# if: matrix.os == 'ubuntu-latest'
# uses: actionhippie/swap-space@v1
# with:
# size: 15G
# - uses: actions/checkout@v4
# - name: Install nix
# uses: cachix/install-nix-action@v30
# - name: Setup cachix
# uses: cachix/cachix-action@v15
# 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_dev"
- "wasmer_sys_prod"
# TODO Building with wasmer_wamr feature flag on windows is not currently working.
# See https://github.com/holochain/holochain-wasmer/issues/117
# - "wasmer_wamr"
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown
# - name: install vcpkg packages
# uses: johnwason/vcpkg-action@v6
# with:
# triplet: x64-windows-release
# token: ${{ github.token }}
# manifest-dir: ${{ github.workspace }}/.github/manifest
# github-binarycache: true
- name: Install LLVM
shell: pwsh
run: |
Invoke-WebRequest -Uri https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.7/LLVM-15.0.7-win64.exe -OutFile llvm.exe
./llvm.exe
- 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