From f3d71e3506bd9823b7c743d3fa9d352a3ba75177 Mon Sep 17 00:00:00 2001 From: Bambooin Date: Thu, 14 Dec 2023 18:54:54 +0800 Subject: [PATCH] ci: add matrix os in cache key --- .github/workflows/commit-ci.yml | 2 +- .github/workflows/pull-request-ci.yml | 2 +- .github/workflows/release-ci.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/commit-ci.yml b/.github/workflows/commit-ci.yml index 5d32e70e22..b4eca1a003 100644 --- a/.github/workflows/commit-ci.yml +++ b/.github/workflows/commit-ci.yml @@ -35,7 +35,7 @@ jobs: id: jni-cache with: path: "app/prebuilt" - key: jni-debug-${{ steps.cache-hash.outputs.hash }} + key: ${{ matrix.os }}-trime-jni-debug-${{ steps.cache-hash.outputs.hash }} - name: Fetch submodules if: ${{ !steps.jni-cache.outputs.cache-hit }} diff --git a/.github/workflows/pull-request-ci.yml b/.github/workflows/pull-request-ci.yml index 09f8096243..ba73ae6c36 100644 --- a/.github/workflows/pull-request-ci.yml +++ b/.github/workflows/pull-request-ci.yml @@ -42,7 +42,7 @@ jobs: id: jni-cache with: path: "app/prebuilt" - key: jni-debug-${{ steps.cache-hash.outputs.hash }} + key: ${{ matrix.os }}-trime-jni-debug-${{ steps.cache-hash.outputs.hash }} - name: Fetch submodules if: ${{ !steps.jni-cache.outputs.cache-hit }} diff --git a/.github/workflows/release-ci.yml b/.github/workflows/release-ci.yml index f86543fd04..bf7ae87dcb 100644 --- a/.github/workflows/release-ci.yml +++ b/.github/workflows/release-ci.yml @@ -29,7 +29,7 @@ jobs: id: jni-cache with: path: "app/prebuilt" - key: jni-release-${{ steps.cache-hash.outputs.hash }} + key: ${{ matrix.os }}-trime-jni-debug-${{ steps.cache-hash.outputs.hash }} - name: Fetch submodules if: ${{ !steps.jni-cache.outputs.cache-hit }}