Skip to content

Commit 712d58f

Browse files
authored
Merge pull request #16 from openMSL/15-update-pipeline
Update action versions in the pipeline
2 parents d06687c + 9c5b98e commit 712d58f

11 files changed

+28
-41
lines changed

.github/workflows/build.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
- name: Cache Protobuf
1818
id: cache-protobuf
19-
uses: actions/cache@v3
19+
uses: actions/cache@v4
2020
with:
2121
path: protobuf-21.12
2222
key: ${{ runner.os }}-protobuf
@@ -55,7 +55,7 @@ jobs:
5555

5656
- name: Cache Model FMU
5757
id: cache-model-fmu
58-
uses: actions/cache@v3
58+
uses: actions/cache@v4
5959
with:
6060
path: /tmp/model_fmu
6161
key: ${{ runner.os }}-model-fmu-${{ github.sha }}

.github/workflows/build_esmini.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
steps:
1212
- name: Cache esmini FMU
1313
id: cache-esmini-fmu
14-
uses: actions/cache@v3
14+
uses: actions/cache@v4
1515
with:
1616
path: /tmp/esmini_fmu
1717
key: ${{ runner.os }}-esmini-fmu

.github/workflows/build_openmcx.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
steps:
1212
- name: Cache OpenMCx
1313
id: cache-openmcx
14-
uses: actions/cache@v3
14+
uses: actions/cache@v4
1515
with:
1616
path: openmcx
1717
key: ${{ runner.os }}-openmcx

.github/workflows/build_osi-validation.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
steps:
1212
- name: Cache osi-validation
1313
id: cache-osi-validation
14-
uses: actions/cache@v3
14+
uses: actions/cache@v4
1515
with:
1616
path: /tmp/osi-validation
1717
key: ${{ runner.os }}-osi-validation

.github/workflows/build_tracefile_player.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
steps:
1212
- name: Cache Protobuf
1313
id: cache-protobuf
14-
uses: actions/cache@v3
14+
uses: actions/cache@v4
1515
with:
1616
path: protobuf-21.12
1717
key: ${{ runner.os }}-protobuf
@@ -31,7 +31,7 @@ jobs:
3131

3232
- name: Cache Tracefile Player FMU
3333
id: cache-tracefile-player-fmu
34-
uses: actions/cache@v3
34+
uses: actions/cache@v4
3535
with:
3636
path: /tmp/tracefile_player_fmu
3737
key: ${{ runner.os }}-tracefile-player-fmu

.github/workflows/build_tracefile_writer.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
steps:
1212
- name: Cache Protobuf
1313
id: cache-protobuf
14-
uses: actions/cache@v3
14+
uses: actions/cache@v4
1515
with:
1616
path: protobuf-21.12
1717
key: ${{ runner.os }}-protobuf
@@ -31,7 +31,7 @@ jobs:
3131

3232
- name: Cache Tracefile Writer FMU
3333
id: cache-tracefile-writer-fmu
34-
uses: actions/cache@v3
34+
uses: actions/cache@v4
3535
with:
3636
path: /tmp/tracefile_writer_fmu
3737
key: ${{ runner.os }}-tracefile-writer-fmu

.github/workflows/cl2.yml

+10-23
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
matrix: ${{ steps.set-matrix.outputs.matrix }}
4040

4141
run_integration_test:
42-
needs: [build_tracefile_player, build_tracefile_writer, build_openmcx, build_esmini, generate_integration_test_paths]
42+
needs: [build_tracefile_player, build_tracefile_writer, build_osi-validation, build_openmcx, build_esmini, generate_integration_test_paths]
4343
name: Integration Test
4444
runs-on: ubuntu-latest
4545
strategy:
@@ -58,66 +58,53 @@ jobs:
5858

5959
- name: Cache Protobuf
6060
id: cache-protobuf
61-
uses: actions/cache@v3
61+
uses: actions/cache@v4
6262
with:
6363
path: protobuf-21.12
6464
key: ${{ runner.os }}-protobuf
6565

6666
- name: Cache Model FMU
6767
id: cache-model-fmu
68-
uses: actions/cache@v3
68+
uses: actions/cache@v4
6969
with:
7070
path: /tmp/model_fmu
7171
key: ${{ runner.os }}-model-fmu-${{ github.sha }}
7272

7373
- name: Cache Tracefile Player FMU
7474
id: cache-tracefile-player-fmu
75-
uses: actions/cache@v3
75+
uses: actions/cache@v4
7676
with:
7777
path: /tmp/tracefile_player_fmu
7878
key: ${{ runner.os }}-tracefile-player-fmu
7979

8080
- name: Cache Tracefile Writer FMU
8181
id: cache-tracefile-writer-fmu
82-
uses: actions/cache@v3
82+
uses: actions/cache@v4
8383
with:
8484
path: /tmp/tracefile_writer_fmu
8585
key: ${{ runner.os }}-tracefile-writer-fmu
8686

8787
- name: Cache esmini FMU
8888
id: cache-esmini-fmu
89-
uses: actions/cache@v3
89+
uses: actions/cache@v4
9090
with:
9191
path: /tmp/esmini_fmu
9292
key: ${{ runner.os }}-esmini-fmu
9393

9494
- name: Cache osi-validation
9595
id: cache-osi-validation
96-
uses: actions/cache@v3
96+
uses: actions/cache@v4
9797
with:
9898
path: /tmp/osi-validation
9999
key: ${{ runner.os }}-osi-validation
100100

101101
- name: Cache OpenMCx
102102
id: cache-openmcx
103-
uses: actions/cache@v3
103+
uses: actions/cache@v4
104104
with:
105105
path: openmcx
106106
key: ${{ runner.os }}-openmcx
107107

108-
- name: Download ProtoBuf
109-
if: steps.cache-protobuf.outputs.cache-hit != 'true'
110-
run: curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v21.12/protobuf-all-21.12.tar.gz && tar xzvf protobuf-all-21.12.tar.gz
111-
112-
- name: Build ProtoBuf
113-
if: steps.cache-protobuf.outputs.cache-hit != 'true'
114-
working-directory: protobuf-21.12
115-
run: ./configure DIST_LANG=cpp --disable-shared CXXFLAGS="-fPIC" && make -j4
116-
117-
- name: Install ProtoBuf
118-
working-directory: protobuf-21.12
119-
run: sudo make install && sudo ldconfig
120-
121108
- name: Install dependencies
122109
run: sudo apt install -y libxml2-dev zlib1g-dev libzip-dev
123110

@@ -139,7 +126,7 @@ jobs:
139126
fi
140127
)
141128
142-
- name: Check Input Trace Files with osi-validation and model output rules
129+
- name: Check Input Trace Files with osi-validation and model input rules
143130
if: steps.check-for-input-trace-files.outputs.found_trace == 1
144131
run: |
145132
if [ -d "./rules/input_rules" ]; then
@@ -181,7 +168,7 @@ jobs:
181168
182169
- name: Archive Output Trace Files
183170
if: steps.check-for-output-trace-files.outputs.found_trace == 1
184-
uses: actions/upload-artifact@v3
171+
uses: actions/upload-artifact@v4
185172
with:
186173
name: ${{ steps.check-for-output-trace-files.outputs.trace_file_name }}
187174
path: ./test/integration/${{ matrix.path }}/output/${{ steps.check-for-output-trace-files.outputs.trace_file_name }}

.github/workflows/cpp-linter.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
- name: Cache Protobuf
1717
id: cache-protobuf
18-
uses: actions/cache@v3
18+
uses: actions/cache@v4
1919
with:
2020
path: protobuf-21.12
2121
key: ${{ runner.os }}-protobuf

.github/workflows/fmu_artifact.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ jobs:
1111
steps:
1212
- name: Cache Model FMU
1313
id: cache-model-fmu
14-
uses: actions/cache@v3
14+
uses: actions/cache@v4
1515
with:
1616
path: /tmp/model_fmu
1717
key: ${{ runner.os }}-model-fmu-${{ github.sha }}
1818

1919
- name: Archive built FMU
20-
uses: actions/upload-artifact@v3
20+
uses: actions/upload-artifact@v4
2121
with:
2222
name: ${{ github.event.repository.name }}
2323
path: /tmp/model_fmu/${{ github.event.repository.name }}.fmu

.github/workflows/fmu_checker.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ jobs:
1111
steps:
1212
- name: Cache Model FMU
1313
id: cache-model-fmu
14-
uses: actions/cache@v3
14+
uses: actions/cache@v4
1515
with:
1616
path: /tmp/model_fmu
1717
key: ${{ runner.os }}-model-fmu-${{ github.sha }}
1818

1919
- name: Cache Protobuf
2020
id: cache-protobuf
21-
uses: actions/cache@v3
21+
uses: actions/cache@v4
2222
with:
2323
path: protobuf-21.12
2424
key: ${{ runner.os }}-protobuf
@@ -38,7 +38,7 @@ jobs:
3838

3939
- name: Cache FMUComplianceChecker
4040
id: cache-fmu-checker
41-
uses: actions/cache@v3
41+
uses: actions/cache@v4
4242
with:
4343
path: /tmp/FMUComplianceChecker
4444
key: ${{ runner.os }}-fmu-checker
@@ -74,7 +74,7 @@ jobs:
7474
steps:
7575
- name: Cache Model FMU
7676
id: cache-model-fmu
77-
uses: actions/cache@v3
77+
uses: actions/cache@v4
7878
with:
7979
path: /tmp/model_fmu
8080
key: ${{ runner.os }}-model-fmu-${{ github.sha }}

.github/workflows/unit-tests.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ jobs:
1515

1616
- name: Check unit tests exist
1717
id: check_files
18-
uses: andstor/file-existence-action@v2
18+
uses: andstor/file-existence-action@v3
1919
with:
2020
files: "test/unit"
2121

2222
- name: Cache Protobuf
2323
id: cache-protobuf
24-
uses: actions/cache@v3
24+
uses: actions/cache@v4
2525
with:
2626
path: protobuf-21.12
2727
key: ${{ runner.os }}-protobuf

0 commit comments

Comments
 (0)