| 1 | name: Rust |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: [ "master" ] |
| 6 | pull_request: |
| 7 | branches: [ "master" ] |
| 8 | |
| 9 | env: |
| 10 | CARGO_TERM_COLOR: always |
| 11 | |
| 12 | jobs: |
| 13 | build: |
| 14 | |
| 15 | runs-on: ubuntu-latest |
| 16 | |
| 17 | steps: |
| 18 | - uses: actions/checkout@v7 |
| 19 | - name: Install all-features |
| 20 | run: cargo install cargo-all-features |
| 21 | - name: Build |
| 22 | run: cargo build-all-features -- --workspace |
| 23 | env: |
| 24 | RUSTFLAGS: -Dwarnings |
| 25 | - name: Run tests |
| 26 | run: cargo test-all-features -- --workspace |
| 27 | env: |
| 28 | RUSTFLAGS: -Dwarnings |
| 29 | |
| 30 | minimal-versions: |
| 31 | runs-on: ubuntu-latest |
| 32 | |
| 33 | steps: |
| 34 | - uses: actions/checkout@v7 |
| 35 | - name: Install cargo-minimal-versions |
| 36 | run: cargo install cargo-minimal-versions |
| 37 | - name: Install cargo-hack |
| 38 | run: cargo install cargo-hack |
| 39 | - name: Test with minimal versions |
| 40 | run: cargo minimal-versions --direct test |