Debian Codegraph @

.github/workflows/build-and-test.yaml

raw symbols SCIP
1 name: Build and test
2
3 on:
4 push:
5 branches:
6 - main
7 pull_request:
8
9 jobs:
10 build_and_test:
11 runs-on: ${{ matrix.os }}
12 strategy:
13 fail-fast: false
14 matrix:
15 os: [ubuntu-latest, windows-latest, macos-latest]
16 rust: [nightly, beta, stable, 1.56.0]
17 steps:
18 - uses: actions/checkout@v2
19
20 - name: Install latest ${{ matrix.rust }}
21 uses: actions-rs/toolchain@v1
22 with:
23 toolchain: ${{ matrix.rust }}
24 profile: minimal
25 override: true
26
27 - name: Run cargo check
28 uses: actions-rs/cargo@v1
29 with:
30 command: check
31 args: --all --bins --examples --tests --all-features
32
33 - name: Run cargo check (without dev-dependencies to catch missing feature flags)
34 if: startsWith(matrix.rust, 'nightly')
35 uses: actions-rs/cargo@v1
36 with:
37 command: check
38 args: -Z features=dev_dep
39
40 - name: Run cargo test
41 uses: actions-rs/cargo@v1
42 with:
43 command: test