Debian Codegraph @

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

raw symbols SCIP
1 name: Build and test
2
3 on:
4 push:
5 branches:
6 - master
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]
16 rust: [nightly, stable]
17 steps:
18 - uses: actions/checkout@v4
19 - uses: dtolnay/rust-toolchain@master
20 with:
21 toolchain: ${{ matrix.rust }}
22 targets: x86_64-pc-windows-gnu, wasm32-unknown-unknown
23
24 - name: Run cargo check
25 run: cargo check --all --bins --examples --tests --all-features
26
27 - name: Run cargo check for WASM
28 run: cargo check --all --all-features --target wasm32-unknown-unknown
29
30 - name: Run cargo check (without dev-dependencies to catch missing feature flags)
31 if: startsWith(matrix.rust, 'nightly')
32 run: cargo check -Z features=dev_dep
33
34 - name: Run cargo test
35 run: cargo test
36
37 msrv:
38 runs-on: ubuntu-latest
39 steps:
40 - uses: actions/checkout@v4
41 - name: Install cargo-hack
42 uses: taiki-e/install-action@cargo-hack
43 - name: Check MSRV Compatibility
44 run: |
45 cargo hack build --all --rust-version
46 cargo hack build --all --no-default-features --rust-version