Skip to content

Commit 6ae54a8

Browse files
Added commit id to model fmu cache key (#23)
Signed-off-by: ClemensLinnhoff <Clemens.Linnhoff@partner.bmw.de>
1 parent bc818a0 commit 6ae54a8

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
uses: actions/cache@v3
5959
with:
6060
path: /tmp/model_fmu
61-
key: ${{ runner.os }}-model-fmu
61+
key: ${{ runner.os }}-model-fmu-${{ github.sha }}
6262

6363
- name: Commit ID
6464
run: |

.github/workflows/cl2.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
uses: actions/cache@v3
6969
with:
7070
path: /tmp/model_fmu
71-
key: ${{ runner.os }}-model-fmu
71+
key: ${{ runner.os }}-model-fmu-${{ github.sha }}
7272

7373
- name: Cache Tracefile Player FMU
7474
id: cache-tracefile-player-fmu

.github/workflows/fmu_artifact.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
uses: actions/cache@v3
1515
with:
1616
path: /tmp/model_fmu
17-
key: ${{ runner.os }}-model-fmu
17+
key: ${{ runner.os }}-model-fmu-${{ github.sha }}
1818

1919
- name: Archive built FMU
2020
uses: actions/upload-artifact@v3

.github/workflows/fmu_checker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
uses: actions/cache@v3
1515
with:
1616
path: /tmp/model_fmu
17-
key: ${{ runner.os }}-model-fmu
17+
key: ${{ runner.os }}-model-fmu-${{ github.sha }}
1818

1919
- name: Cache FMUComplianceChecker
2020
id: cache-fmu-checker
@@ -57,7 +57,7 @@ jobs:
5757
uses: actions/cache@v3
5858
with:
5959
path: /tmp/model_fmu
60-
key: ${{ runner.os }}-model-fmu
60+
key: ${{ runner.os }}-model-fmu-${{ github.sha }}
6161

6262
- name: Install FMPy
6363
run: python -m pip install fmpy[complete]

0 commit comments

Comments
 (0)