CI: Add a MSRV job
Browse files at this commit94ded2f6a9c6724fd6d90f0de4d9e8488880ecc9Parent: fa3bc691 changed file +24 -0
- .github/workflows/ci.yml +24 -0
.github/workflows/ci.ymlmodified+24 -0
| @@ -82,6 +82,30 @@ jobs: | |||
| 82 | - name: Build | 82 | - name: Build |
| 83 | run: cargo build --package niri-visual-tests | 83 | run: cargo build --package niri-visual-tests |
| 84 | 84 | ||
| 85 | + msrv: | ||
| 86 | + strategy: | ||
| 87 | + fail-fast: false | ||
| 88 | + | ||
| 89 | + name: 'msrv - 1.72.0' | ||
| 90 | + runs-on: ubuntu-22.04 | ||
| 91 | + container: ubuntu:23.10 | ||
| 92 | + | ||
| 93 | + steps: | ||
| 94 | + - uses: actions/checkout@v4 | ||
| 95 | + with: | ||
| 96 | + show-progress: false | ||
| 97 | + | ||
| 98 | + - name: Install dependencies | ||
| 99 | + run: | | ||
| 100 | + apt-get update -y | ||
| 101 | + apt-get install -y curl gcc clang libudev-dev libgbm-dev libxkbcommon-dev libegl1-mesa-dev libwayland-dev libinput-dev libdbus-1-dev libsystemd-dev libseat-dev libpipewire-0.3-dev libpango1.0-dev libadwaita-1-dev | ||
| 102 | + | ||
| 103 | + - uses: dtolnay/rust-toolchain@1.72.0 | ||
| 104 | + | ||
| 105 | + - uses: Swatinem/rust-cache@v2 | ||
| 106 | + | ||
| 107 | + - run: cargo check --all-targets | ||
| 108 | + | ||
| 85 | clippy: | 109 | clippy: |
| 86 | strategy: | 110 | strategy: |
| 87 | fail-fast: false | 111 | fail-fast: false |