-
Notifications
You must be signed in to change notification settings - Fork 79
45 lines (42 loc) · 1.17 KB
/
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
44
45
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
rust: [stable, beta, nightly]
include:
- os: windows-latest
rust: stable-x86_64-pc-windows-gnu
- os: windows-latest
rust: nightly-x86_64-pc-windows-gnu
- os: windows-latest
rust: stable-i686-pc-windows-msvc
- os: windows-latest
rust: nightly-i686-pc-windows-msvc
- os: windows-latest
rust: stable-i686-pc-windows-gnu
- os: windows-latest
rust: nightly-i686-pc-windows-gnu
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.rust }}
- run: cargo build
- run: cargo build --features termination
- run: cargo test
- run: cargo test --features termination
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo fmt --check