From a951a631041da3fc19a83474f881fba429b55840 Mon Sep 17 00:00:00 2001 From: Clemens Linnhoff Date: Tue, 25 Jul 2023 11:26:18 +0200 Subject: [PATCH] Added commit id to model fmu cache key (#6) Signed-off-by: ClemensLinnhoff --- .github/workflows/build.yml | 2 +- .github/workflows/cl2.yml | 2 +- .github/workflows/fmu_artifact.yml | 2 +- .github/workflows/fmu_checker.yml | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7896e8c..adb7b22 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -58,7 +58,7 @@ jobs: uses: actions/cache@v3 with: path: /tmp/model_fmu - key: ${{ runner.os }}-model-fmu + key: ${{ runner.os }}-model-fmu-${{ github.sha }} - name: Commit ID run: | diff --git a/.github/workflows/cl2.yml b/.github/workflows/cl2.yml index 912a980..8d2e8b8 100644 --- a/.github/workflows/cl2.yml +++ b/.github/workflows/cl2.yml @@ -68,7 +68,7 @@ jobs: uses: actions/cache@v3 with: path: /tmp/model_fmu - key: ${{ runner.os }}-model-fmu + key: ${{ runner.os }}-model-fmu-${{ github.sha }} - name: Cache Tracefile Player FMU id: cache-tracefile-player-fmu diff --git a/.github/workflows/fmu_artifact.yml b/.github/workflows/fmu_artifact.yml index 02a864e..503e2e4 100644 --- a/.github/workflows/fmu_artifact.yml +++ b/.github/workflows/fmu_artifact.yml @@ -14,7 +14,7 @@ jobs: uses: actions/cache@v3 with: path: /tmp/model_fmu - key: ${{ runner.os }}-model-fmu + key: ${{ runner.os }}-model-fmu-${{ github.sha }} - name: Archive built FMU uses: actions/upload-artifact@v3 diff --git a/.github/workflows/fmu_checker.yml b/.github/workflows/fmu_checker.yml index 4aa1a48..d923d0a 100644 --- a/.github/workflows/fmu_checker.yml +++ b/.github/workflows/fmu_checker.yml @@ -14,7 +14,7 @@ jobs: uses: actions/cache@v3 with: path: /tmp/model_fmu - key: ${{ runner.os }}-model-fmu + key: ${{ runner.os }}-model-fmu-${{ github.sha }} - name: Cache FMUComplianceChecker id: cache-fmu-checker @@ -57,7 +57,7 @@ jobs: uses: actions/cache@v3 with: path: /tmp/model_fmu - key: ${{ runner.os }}-model-fmu + key: ${{ runner.os }}-model-fmu-${{ github.sha }} - name: Install FMPy run: python -m pip install fmpy[complete]