Repository navigation
60 lines (51 loc) · 1.43 KB
/
Copy pathtest.yaml
File metadata and controls
60 lines (51 loc) · 1.43 KB
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
name: Test
on:
pull_request:
branches: [main]
paths-ignore:
- "examples/**/README.md"
- "README.md"
- "CONTRIBUTING.md"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
jobs:
test:
name: Test
strategy:
fail-fast: false
matrix:
config:
- { os: "ubuntu-latest", wasiSDK: "x86_64-linux" }
- { os: "macos-latest", wasiSDK: "arm64-macos" }
- { os: "windows-latest", wasiSDK: "x86_64-windows" }
runs-on: ${{ matrix.config.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: Install latest Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-wasip2 wasm32-wasip3
components: clippy, rustfmt
- uses: Swatinem/rust-cache@v2
with:
shared-key: "rust-cache-${{ hashFiles('./Cargo.lock') }}"
cache-on-failure: false
- name: Lint
shell: bash
run: bash .github/workflows/lint.sh
- uses: taiki-e/install-action@v2
with:
tool: wasmtime-cli@48.0.2
- uses: actions/setup-python@v5
with:
python-version: "3.15"
- name: Test
shell: bash
run: COMPONENTIZE_PY_TEST_COUNT=20 PROPTEST_MAX_SHRINK_ITERS=0 cargo test --release