diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 3e1f5b82..1783b594 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -10,7 +10,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ ubuntu-latest, macos-latest ] + os: [ ubuntu-22.04, macos-14 ] steps: - uses: actions/checkout@v2 with: @@ -26,7 +26,7 @@ jobs: with: sharedKey: ${{ matrix.os }} - name: Cache dependencies - if: ${{ matrix.os == 'ubuntu-latest' }} + if: ${{ matrix.os == 'ubuntu-22.04' }} run: if [[ ! -e ~/.cargo/bin/grcov ]]; then cargo install grcov --version 0.8.10; fi - name: Format run: | @@ -40,7 +40,7 @@ jobs: RUST_BACKTRACE: 1 EXTRA_CARGO_ARGS: '--verbose' - name: Run asan tests - if: ${{ matrix.os == 'ubuntu-latest' }} + if: ${{ matrix.os == 'ubuntu-22.04' }} run: make test env: RUST_BACKTRACE: 1 @@ -51,7 +51,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ ubuntu-latest ] + os: [ ubuntu-22.04 ] steps: - uses: actions/checkout@v2 with: @@ -77,7 +77,7 @@ jobs: EXTRA_CARGO_ARGS: '--verbose' WITH_STABLE_TOOLCHAIN: 'force' coverage: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: nightly steps: - uses: actions/checkout@v2 @@ -92,7 +92,7 @@ jobs: components: llvm-tools-preview - uses: Swatinem/rust-cache@v1 with: - sharedKey: ubuntu-latest + sharedKey: ubuntu-22.04 - name: Install grcov run: if [[ ! -e ~/.cargo/bin/grcov ]]; then cargo install --locked grcov --version 0.8.10; fi - name: Run tests