From 92aa4ff9a85b12923fcf26bb4dbab9cb9a2c2a84 Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Fri, 13 Sep 2024 09:18:21 +0200 Subject: [PATCH] fix(CI): temporarily pin nightly version --- .github/workflows/tests.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 86e6f103..caa272ec 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -40,12 +40,16 @@ jobs: test: strategy: matrix: - toolchain: [ nightly, stable ] + toolchain: [ nightly-2024-09-01, stable ] runs-on: ubuntu-latest env: SCCACHE_GHA_ENABLED: "true" RUSTC_WRAPPER: "sccache" + # this strips the date suffix from the github job name so we don't have to + # touch our required statusses list. + name: test (${{ startsWith(matrix.toolchain, 'nightly') && 'nightly' || matrix.toolchain }}) + steps: - name: Check out repository code uses: actions/checkout@v3 @@ -53,7 +57,7 @@ jobs: - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ matrix.toolchain }} - components: llvm-tools-preview + components: llvm-tools - name: rust cache uses: Swatinem/rust-cache@v2 @@ -82,7 +86,7 @@ jobs: run: "LAZE=$(pwd)/target/debug/laze make -C src/tests" - name: "collect coverage results" - if: ${{ matrix.toolchain == 'nightly' }} + if: ${{ startsWith(matrix.toolchain, 'nightly') }} run: > RUSTUP_TOOLCHAIN=${{ matrix.toolchain }} grcov @@ -95,7 +99,7 @@ jobs: --ignore "/*" - name: Coveralls - if: ${{ matrix.toolchain == 'nightly' }} + if: ${{ startsWith(matrix.toolchain, 'nightly') }} uses: coverallsapp/github-action@v1 with: path-to-lcov: "lcov.info"