@@ -173,15 +173,15 @@ jobs:
173
173
rm -v ${{ env.FPM }}
174
174
echo "FPM_RELEASE=${{ env.EXE }}" >> $GITHUB_ENV
175
175
env :
176
- EXE : fpm-${{ env.VERSION }}-${{ matrix.os-arch }}${{ matrix.exe }}
176
+ EXE : fpm-${{ env.VERSION }}-${{ matrix.os-arch }}-gcc-${{ matrix.gcc_v }} ${{ matrix.exe }}
177
177
178
178
- name : Run release version
179
179
shell : bash
180
180
run : |
181
181
ci/run_tests.sh "$PWD/${{ env.FPM_RELEASE }}"
182
182
183
183
- name : Upload artifact
184
- uses : actions/upload-artifact@v2
184
+ uses : actions/upload-artifact@v4
185
185
with :
186
186
name : ${{ env.FPM_RELEASE }}
187
187
path : ${{ env.FPM_RELEASE }}
@@ -192,14 +192,19 @@ jobs:
192
192
runs-on : windows-latest
193
193
needs :
194
194
- build
195
+ strategy :
196
+ fail-fast : false
197
+ matrix :
198
+ gcc_v : [10,11,12]
195
199
196
200
steps :
197
201
- uses : actions/checkout@v4
198
202
199
203
- name : Download Artifacts
200
- uses : actions/download-artifact@v2
204
+ uses : actions/download-artifact@v4
201
205
with :
202
- path : ${{ github.workspace }} # This will download all files
206
+ path : ${{ github.workspace }}
207
+ pattern : fpm-*-windows-*-gcc-${{ matrix.gcc_v }}.exe
203
208
204
209
- name : Get version (normal)
205
210
if : github.event_name != 'release'
@@ -229,7 +234,7 @@ jobs:
229
234
- name : Fetch Windows executable
230
235
shell : msys2 {0}
231
236
run : |
232
- cp fpm-*/fpm* .exe ./ci/fpm.exe
237
+ cp fpm-*/fpm-*-windows-*-gcc-${{ matrix.gcc_v }} .exe ./ci/fpm.exe
233
238
234
239
- name : Fetch Git for Windows
235
240
shell : msys2 {0}
@@ -254,13 +259,13 @@ jobs:
254
259
run : |
255
260
cd ./ci
256
261
makensis fpm-installer.nsi
257
- move fpm-installer.exe fpm-installer-${{ env.VERSION }}.exe
262
+ move fpm-installer.exe fpm-installer-${{ env.VERSION }}-gcc-${{ matrix.gcc_v }} .exe
258
263
259
264
- name : Upload artifact
260
- uses : actions/upload-artifact@v2
265
+ uses : actions/upload-artifact@v4
261
266
with :
262
- name : fpm-installer
263
- path : ci/fpm-installer-${{ env.VERSION }}.exe
267
+ name : fpm-installer-gcc-${{ matrix.gcc_v }}
268
+ path : ci/fpm-installer-${{ env.VERSION }}-gcc-${{ matrix.gcc_v }} .exe
264
269
265
270
upload-artifacts :
266
271
if : ${{ github.event_name == 'release' && contains(github.ref, 'v') || github.event_name == 'push' }}
@@ -281,27 +286,27 @@ jobs:
281
286
if : ${{ github.event_name == 'push' }}
282
287
283
288
- name : Download Artifacts
284
- uses : actions/download-artifact@v2
289
+ uses : actions/download-artifact@v4
285
290
with :
286
- path : ${{ github.workspace }} # This will download all files
291
+ path : fpm-cd-artifacts
292
+ pattern : ' fpm-*-gcc-12*'
293
+ merge-multiple : true
287
294
288
295
- name : Normalize file names for continuous delivery
289
296
if : ${{ github.event_name == 'push' }}
290
297
run : |
291
- for output in fpm-*/fpm*; do
292
- pushd $(dirname "$output")
298
+ cd fpm-cd-artifacts
299
+ for output in fpm-*; do
293
300
mv -v $(basename $output) $(basename $output | sed -E '${{ env.replace }}')
294
- popd
295
301
done
296
302
env :
297
303
replace : ' s/-([0-9]+\.[0-9]+\.[0-9]+-[0-9]+-g)?[0-9a-f]+//'
298
304
299
305
- name : Create SHA256 checksums
300
306
run : |
301
- for output in fpm-*/fpm*; do
302
- pushd $(dirname "$output")
307
+ cd fpm-cd-artifacts
308
+ for output in fpm-*; do
303
309
sha256sum $(basename "$output") | tee $(basename "$output").sha256
304
- popd
305
310
done
306
311
307
312
- name : Move/Create continuous tag
@@ -315,7 +320,7 @@ jobs:
315
320
if : ${{ github.event_name == 'release' || steps.deploy-on-push.outputs.result != 0 }}
316
321
with :
317
322
repo_token : ${{ secrets.GITHUB_TOKEN }}
318
- file : fpm-*/fpm *
323
+ file : fpm-cd-artifacts/ *
319
324
file_glob : true
320
325
tag : ${{ github.event_name == 'release' && github.ref || 'current'}}
321
326
overwrite : true
0 commit comments