@@ -187,12 +187,21 @@ jobs:
187187 prover_tests
188188 dest : dist-tests
189189
190- - uses : actions/upload-artifact@v2
191- if : " matrix.ghc == '9.4.8'"
190+ # In the next 2 steps, we upload to different names depending on whether
191+ # the binaries were compiled using HPC or not. This is done to ensure that
192+ # the HPC-enabled binaries do not clobber the non-HPC-enabled binaries.
193+ - uses : actions/upload-artifact@v4
194+ if : matrix.ghc == '9.4.8' && matrix.hpc == false
192195 with :
193196 path : dist-tests
194197 name : dist-tests-${{ matrix.os }}
195198
199+ - uses : actions/upload-artifact@v4
200+ if : matrix.ghc == '9.4.8' && matrix.hpc == true
201+ with :
202+ path : dist-tests
203+ name : dist-tests-${{ matrix.os }}-hpc
204+
196205 - shell : bash
197206 run : .github/ci.sh setup_dist_bins
198207
@@ -238,23 +247,23 @@ jobs:
238247 # distribution version matches the HPC version, the HPC build artifacts do
239248 # not clobber the non-HPC distribution artifacts.
240249 - if : matrix.ghc == '9.4.8' && matrix.hpc == false
241- uses : actions/upload-artifact@v2
250+ uses : actions/upload-artifact@v4
242251 with :
243252 name : ${{ steps.config.outputs.name }} (GHC ${{ matrix.ghc }})
244253 path : " ${{ steps.config.outputs.name }}.tar.gz*"
245254 if-no-files-found : error
246255 retention-days : ${{ needs.config.outputs.retention-days }}
247256
248257 - if : matrix.ghc == '9.4.8' && matrix.hpc == false
249- uses : actions/upload-artifact@v2
258+ uses : actions/upload-artifact@v4
250259 with :
251260 name : ${{ steps.config.outputs.name }}-with-solvers (GHC ${{ matrix.ghc }})
252261 path : " ${{ steps.config.outputs.name }}-with-solvers.tar.gz*"
253262 if-no-files-found : error
254263 retention-days : ${{ needs.config.outputs.retention-days }}
255264
256265 - if : matrix.ghc == '9.4.8' && matrix.run-tests && matrix.hpc == false
257- uses : actions/upload-artifact@v2
266+ uses : actions/upload-artifact@v4
258267 with :
259268 path : dist/bin
260269 name : ${{ matrix.os }}-bins
@@ -264,7 +273,7 @@ jobs:
264273 run : .github/ci.sh collect_hpc_files
265274
266275 - if : matrix.hpc == true
267- uses : actions/upload-artifact@v2
276+ uses : actions/upload-artifact@v4
268277 with :
269278 path : hpc.tar.gz
270279 name : ${{ matrix.os }}-hpc.tar.gz
@@ -296,7 +305,7 @@ jobs:
296305 BUILD_TARGET_OS : ${{ matrix.os }}
297306 BUILD_TARGET_ARCH : ${{ runner.arch }}
298307
299- - uses : actions/download-artifact@v2
308+ - uses : actions/download-artifact@v4
300309 with :
301310 name : " ${{ matrix.os }}-bins"
302311 path : dist/bin
@@ -331,7 +340,7 @@ jobs:
331340 BUILD_TARGET_OS : ${{ matrix.os }}
332341 BUILD_TARGET_ARCH : ${{ runner.arch }}
333342
334- - uses : actions/download-artifact@v2
343+ - uses : actions/download-artifact@v4
335344 with :
336345 name : " ${{ matrix.os }}-bins"
337346 path : dist/bin
@@ -398,7 +407,7 @@ jobs:
398407 BUILD_TARGET_OS : ${{ matrix.os }}
399408 BUILD_TARGET_ARCH : ${{ runner.arch }}
400409
401- - uses : actions/download-artifact@v2
410+ - uses : actions/download-artifact@v4
402411 with :
403412 name : " ${{ matrix.os }}-bins"
404413 path : dist/bin
@@ -461,7 +470,7 @@ jobs:
461470 BUILD_TARGET_OS : ${{ matrix.os }}
462471 BUILD_TARGET_ARCH : ${{ runner.arch }}
463472
464- - uses : actions/download-artifact@v2
473+ - uses : actions/download-artifact@v4
465474 with :
466475 name : " ${{ matrix.os }}-bins"
467476 path : dist/bin
@@ -474,7 +483,7 @@ jobs:
474483 if : runner.os != 'Windows'
475484 run : chmod +x bin/*
476485
477- - uses : actions/download-artifact@v2
486+ - uses : actions/download-artifact@v4
478487 with :
479488 name : dist-tests-${{ matrix.os }}
480489 path : dist-tests
@@ -554,12 +563,12 @@ jobs:
554563 BUILD_TARGET_OS : ${{ matrix.os }}
555564 BUILD_TARGET_ARCH : ${{ runner.arch }}
556565
557- - uses : actions/download-artifact@v2
566+ - uses : actions/download-artifact@v4
558567 with :
559- name : dist-tests-${{ matrix.os }}
568+ name : dist-tests-${{ matrix.os }}-hpc
560569 path : dist-tests
561570
562- - uses : actions/download-artifact@v2
571+ - uses : actions/download-artifact@v4
563572 with :
564573 name : " ${{ matrix.os }}-hpc.tar.gz"
565574
@@ -609,7 +618,7 @@ jobs:
609618 run : |
610619 ./compute-coverage.sh
611620
612- - uses : actions/upload-artifact@v2
621+ - uses : actions/upload-artifact@v4
613622 with :
614623 path : hpc-html
615624 name : coverage-html-${{ github.event.number }}
@@ -755,7 +764,7 @@ jobs:
755764 mkdir -p s2nTests/bin
756765
757766 - name : Download previously-built SAW
758- uses : actions/download-artifact@v2
767+ uses : actions/download-artifact@v4
759768 with :
760769 name : " ${{ matrix.os }}-bins"
761770 path : ./s2nTests/bin
@@ -809,7 +818,7 @@ jobs:
809818 mkdir -p exercises/bin
810819
811820 - name : Download previously-built SAW
812- uses : actions/download-artifact@v2
821+ uses : actions/download-artifact@v4
813822 with :
814823 name : " ${{ matrix.os }}-bins"
815824 path : ./exercises/bin
0 commit comments