| 1 |
name: CI |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
branches: [master] |
| 6 |
pull_request: |
| 7 |
branches: [master] |
| 8 |
|
| 9 |
jobs: |
| 10 |
test: |
| 11 |
strategy: |
| 12 |
fail-fast: false |
| 13 |
matrix: |
| 14 |
os: [ubuntu-latest, macos-latest, windows-latest] |
| 15 |
rust: [stable, beta, nightly] |
| 16 |
include: |
| 17 |
- os: windows-latest |
| 18 |
rust: stable-x86_64-pc-windows-gnu |
| 19 |
- os: windows-latest |
| 20 |
rust: nightly-x86_64-pc-windows-gnu |
| 21 |
- os: windows-latest |
| 22 |
rust: stable-i686-pc-windows-msvc |
| 23 |
- os: windows-latest |
| 24 |
rust: nightly-i686-pc-windows-msvc |
| 25 |
- os: windows-latest |
| 26 |
rust: stable-i686-pc-windows-gnu |
| 27 |
- os: windows-latest |
| 28 |
rust: nightly-i686-pc-windows-gnu |
| 29 |
runs-on: ${{ matrix.os }} |
| 30 |
steps: |
| 31 |
- uses: actions/checkout@v4 |
| 32 |
- uses: dtolnay/rust-toolchain@stable |
| 33 |
with: |
| 34 |
toolchain: ${{ matrix.rust }} |
| 35 |
- run: cargo build |
| 36 |
- run: cargo build --features termination |
| 37 |
- run: cargo test |
| 38 |
- run: cargo test --features termination |
| 39 |
|
| 40 |
fmt: |
| 41 |
runs-on: ubuntu-latest |
| 42 |
steps: |
| 43 |
- uses: actions/checkout@v4 |
| 44 |
- uses: dtolnay/rust-toolchain@stable |
| 45 |
- run: cargo fmt --check |