-
-
Notifications
You must be signed in to change notification settings - Fork 100
68 lines (56 loc) · 2.12 KB
/
ci.yaml
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
name: Build and test
on: [push, pull_request]
jobs:
check-and-test-unix:
name: Cargo check and test on Unix systems
strategy:
matrix:
channel: [stable]
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install ${{ matrix.channel }} toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.channel }}
- run: cargo check --verbose --examples
- run: cargo check --verbose
# - run: cargo test --verbose # fails because of SIMD issues, test on Windows only
check-and-test-windows:
name: Cargo check and test on Windows
strategy:
matrix:
target-sys: ["i686-pc-windows", "x86_64-pc-windows"]
target-abi: ["gnu", "msvc"]
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Set up MinGW
if: ${{ matrix.target-abi == 'gnu' }}
uses: egor-tensin/setup-mingw@v2
with:
platform: "${{ contains(matrix.target-sys, 'x86_64') && 'x64' || 'i686' }}"
version: 12.2.0
- name: Install toolchain for ${{ matrix.target-sys }}-${{ matrix.target-abi }}
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target-sys }}-${{ matrix.target-abi }}
- run: cargo check --verbose --target ${{ matrix.target-sys }}-${{ matrix.target-abi }} --examples
- run: cargo check --verbose --target ${{ matrix.target-sys }}-${{ matrix.target-abi }}
- run: cargo test --verbose --target ${{ matrix.target-sys }}-${{ matrix.target-abi }}
check-wasm32:
name: Cargo check on wasm32
strategy:
matrix:
channel: [stable]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install toolchain using wasm32-unknown-unknown target
uses: dtolnay/rust-toolchain@master
with:
target: wasm32-unknown-unknown
toolchain: ${{ matrix.channel }}
- run: cargo check --verbose --target wasm32-unknown-unknown --examples
- run: cargo check --verbose --target wasm32-unknown-unknown