From 7883f411b45947ad2cbe3a8c84ac1433bd5ebc1b Mon Sep 17 00:00:00 2001 From: Zxilly Date: Thu, 20 Jun 2024 01:57:58 +0800 Subject: [PATCH] ci: fix invalid cache key and expire old cache Signed-off-by: Zxilly --- .github/actions/setup-script/action.yml | 2 +- .github/workflows/built-tests.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/setup-script/action.yml b/.github/actions/setup-script/action.yml index f91e993a29..89589dae69 100644 --- a/.github/actions/setup-script/action.yml +++ b/.github/actions/setup-script/action.yml @@ -33,7 +33,7 @@ runs: uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 with: path: ./scripts/bins - key: testbins-${{ hashFiles('scripts/binaries.csv') }}-${{ inputs.cache }} + key: testbins-${{ hashFiles('scripts/binaries.csv') }}-${{ inputs.cache }}-v2 enableCrossOsArchive: true - name: Run script diff --git a/.github/workflows/built-tests.yml b/.github/workflows/built-tests.yml index 061e05db01..23c11ecd8c 100644 --- a/.github/workflows/built-tests.yml +++ b/.github/workflows/built-tests.yml @@ -105,7 +105,7 @@ jobs: - name: Collect profiles uses: ./.github/actions/setup-script with: - cache: 'integration-real' + cache: ${{ matrix.test }} script: 'tests.py --${{ matrix.test }}' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}