-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (40 loc) · 1.24 KB
/
squire_lib_ci.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
name: SquireLib CI
on:
push:
branches: [ main, development ]
pull_request:
branches: [ main, development ]
env:
CARGO_TERM_COLOR: always
jobs:
squire_lib_build_tests:
name: Tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
rust: [stable, beta, nightly]
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: hecrj/setup-rust-action@v2
with:
rust-version: ${{ matrix.rust }}
components: rustfmt
- uses: actions/checkout@v4
- run: cargo build --package squire_lib --verbose
- run: cargo test --package squire_lib --verbose
- run: cargo doc --package squire_lib --verbose
squire_lib_wasm_tests:
name: Wasm Tests
runs-on: ubuntu-latest
strategy:
matrix:
rust: [stable, beta, nightly]
steps:
- uses: hecrj/setup-rust-action@v2
with:
rust-version: ${{ matrix.rust }}
targets: wasm32-unknown-unknown
- uses: actions/checkout@v4
- run: cargo build --package squire_lib --target=wasm32-unknown-unknown --verbose
- run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- run: wasm-pack test --headless --chrome --firefox ./squire_lib/ --verbose