Debian Codegraph @

.github/workflows/rust.yml

raw symbols SCIP
1 name: Rust
2
3 on:
4 push:
5 pull_request:
6
7 env:
8 CARGO_TERM_COLOR: always
9
10 jobs:
11 build:
12
13 runs-on: ubuntu-latest
14 strategy:
15 matrix:
16 version-mode: ['maximal', 'minimal']
17
18 steps:
19 - uses: actions/checkout@v6
20 - name: Install cargo-minimal-versions and cargo-hack
21 if: matrix.version-mode == 'minimal'
22 run: |
23 cargo install cargo-minimal-versions --locked
24 cargo install cargo-hack --locked
25 - name: Build (maximal versions)
26 if: matrix.version-mode == 'maximal'
27 run: cargo build --verbose
28 - name: Run tests (maximal versions)
29 if: matrix.version-mode == 'maximal'
30 run: cargo test --verbose
31 - name: Build (minimal versions)
32 if: matrix.version-mode == 'minimal'
33 run: cargo minimal-versions build --verbose
34 - name: Run tests (minimal versions)
35 if: matrix.version-mode == 'minimal'
36 run: cargo minimal-versions test --verbose