diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8c39cdf..d9ec05f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -133,7 +133,8 @@ jobs: uses: actions/cache@v4 with: path: tests/e2e/cpp/build/_deps - key: ${{ runner.os }}-cpp-e2e-deps-${{ hashFiles('tests/e2e/cpp/CMakeLists.txt') }} + # ImageVersion busts the cache when the toolchain (e.g. MSVC) bumps. + key: ${{ runner.os }}-cpp-e2e-deps-${{ env.ImageVersion }}-${{ hashFiles('tests/e2e/cpp/CMakeLists.txt') }} - name: Run C++ e2e tests shell: bash diff --git a/.github/workflows/tests-sanitized.yml b/.github/workflows/tests-sanitized.yml index 7e88d58..0c0bf7f 100644 --- a/.github/workflows/tests-sanitized.yml +++ b/.github/workflows/tests-sanitized.yml @@ -83,7 +83,8 @@ jobs: uses: actions/cache@v4 with: path: tests/e2e/cpp/build/_deps - key: ${{ runner.os }}-${{ runner.arch }}-cpp-e2e-deps-${{ inputs.sanitizer }}-${{ hashFiles('tests/e2e/cpp/CMakeLists.txt') }} + # ImageVersion busts the cache when the toolchain bumps. + key: ${{ runner.os }}-${{ runner.arch }}-cpp-e2e-deps-${{ inputs.sanitizer }}-${{ env.ImageVersion }}-${{ hashFiles('tests/e2e/cpp/CMakeLists.txt') }} - name: Run unit tests (${{ inputs.sanitizer }}) run: nimble test_sanitized -y