shithub: rgbds

Download patch

ref: f6d218ed36a01e8c99d68db760aadacab73b73a4
parent: 1a9fc964dfa3f157f35ea0c7e1952d51ec982887
author: Robert Lewicki <contact@rlewicki.tech>
date: Tue Nov 1 10:27:40 EDT 2022

Fix regression tests failing due to invalid cache being restored (#1104)


--- a/.github/workflows/testing.yml
+++ b/.github/workflows/testing.yml
@@ -60,7 +60,7 @@
         uses: actions/cache@v3
         with:
           path: test
-          key: ${{ hashFiles('test/fetch-test-deps.sh') }}
+          key: ${{ matrix.os }}-${{ hashFiles('test/fetch-test-deps.sh') }}
       - if: ${{ steps.test-deps-cache.outputs.cache-hit != 'true' }}
         name: Fetch test dependency repositories
         continue-on-error: true
@@ -132,7 +132,10 @@
         uses: actions/cache@v3
         with:
           path: test
-          key: ${{ hashFiles('test/fetch-test-deps.sh') }}
+          # Intentionally using matrix.bits instead matrix.arch as it's fine to share a cache
+          # with a different job below that also runs on Windows but doesn't have arch property
+          # defined.
+          key: ${{ matrix.os }}-${{ matrix.bits }}-${{ hashFiles('test/fetch-test-deps.sh') }}
       - if: ${{ steps.test-deps-cache.outputs.cache-hit != 'true' }}
         name: Fetch test dependency repositories
         shell: bash
@@ -226,7 +229,7 @@
         uses: actions/cache@v3
         with:
           path: test
-          key: ${{ hashFiles('test/fetch-test-deps.sh') }}
+          key: ${{ matrix.os }}-${{ matrix.bits }}-${{ hashFiles('test/fetch-test-deps.sh') }}
       - if: ${{ steps.test-deps-cache.outputs.cache-hit != 'true' }}
         name: Fetch test dependency repositories
         shell: bash