@@ -28,18 +28,21 @@ jobs:
28
28
name : " Ubuntu Latest gcc" ,
29
29
os : ubuntu-latest,
30
30
cmake-preset : gcc-release,
31
+ artifacts-type : " gcc" .
31
32
artifacts-path : " "
32
33
}
33
34
- {
34
35
name : " Ubuntu Latest clang" ,
35
36
os : ubuntu-latest,
36
37
cmake-preset : clang-release,
38
+ artifacts-type : " clang" .
37
39
artifacts-path : " "
38
40
}
39
41
- {
40
42
name : " Windows Latest MSVC" ,
41
43
os : windows-latest,
42
44
cmake-preset : msvc-release,
45
+ artifacts-type : " msvc" .
43
46
artifacts-path : " /Release"
44
47
}
45
48
67
70
run : ctest
68
71
69
72
- name : Upload build artifact
70
- uses : actions/upload-artifact@v3
73
+ uses : actions/upload-artifact@v4
71
74
with :
72
- name : figcone-examples-${{ matrix.config.os }}-nameof-${{ matrix.use_nameof }}
75
+ name : figcone-examples-${{ matrix.config.artifact-type }}-nameof-${{ matrix.use_nameof }}
73
76
path : |
74
77
${{github.workspace}}/build/examples${{ matrix.config.artifacts-path }}
75
78
${{github.workspace}}/build/examples_static_refl${{ matrix.config.artifacts-path }}
@@ -86,12 +89,14 @@ jobs:
86
89
- {
87
90
name : " Windows" ,
88
91
os : " windows-latest" ,
92
+ artifact-type : " msvc" ,
89
93
lunchtoast_exec : " lunchtoast.exe" ,
90
94
shell_command : -shell="msys2 -c",
91
95
}
92
96
- {
93
97
name : " Linux" ,
94
98
os : " ubuntu-latest" ,
99
+ artifact-type : " gcc" ,
95
100
lunchtoast_exec : " lunchtoast" ,
96
101
shell_command : " " ,
97
102
}
@@ -114,9 +119,9 @@ jobs:
114
119
run : chmod +x lunchtoast
115
120
- name : Download figcone examples build
116
121
id : pre_launch_tests
117
- uses : actions/download-artifact@v3
122
+ uses : actions/download-artifact@v4
118
123
with :
119
- name : figcone-examples-${{ matrix.config.os }}-nameof-${{ matrix.use_nameof }}
124
+ name : figcone-examples-${{ matrix.config.artifact-type }}-nameof-${{ matrix.use_nameof }}
120
125
path : build/
121
126
- name : Fix artifacts paths on Windows
122
127
if : matrix.config.name == 'Windows'
@@ -139,7 +144,7 @@ jobs:
139
144
run : lunchtoast/lunchtoast functional_tests ${{ matrix.config.shell_command }} -collectFailedTests=failed_tests
140
145
- name : Upload failed tests
141
146
if : failure() && steps.launch_tests.outcome != 'success' && steps.pre_launch_tests.outcome == 'success'
142
- uses : actions/upload-artifact@v3
147
+ uses : actions/upload-artifact@v4
143
148
with :
144
149
name : figcone-failed-tests-${{ matrix.config.os }}-nameof-${{ matrix.use_nameof }}
145
150
path : failed_tests
0 commit comments