Skip to content

Commit

Permalink
Merge pull request #2118 from GaloisInc/T2117-upgrade-actions-versions
Browse files Browse the repository at this point in the history
CI: Upgrade `{upload,download}-artifact` actions to v4
  • Loading branch information
RyanGlScott authored Sep 9, 2024
2 parents 04639d3 + 0ef0eee commit 30606a2
Showing 1 changed file with 26 additions and 17 deletions.
43 changes: 26 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,21 @@ jobs:
prover_tests
dest: dist-tests

- uses: actions/upload-artifact@v2
if: "matrix.ghc == '9.4.8'"
# In the next 2 steps, we upload to different names depending on whether
# the binaries were compiled using HPC or not. This is done to ensure that
# the HPC-enabled binaries do not clobber the non-HPC-enabled binaries.
- uses: actions/upload-artifact@v4
if: matrix.ghc == '9.4.8' && matrix.hpc == false
with:
path: dist-tests
name: dist-tests-${{ matrix.os }}

- uses: actions/upload-artifact@v4
if: matrix.ghc == '9.4.8' && matrix.hpc == true
with:
path: dist-tests
name: dist-tests-${{ matrix.os }}-hpc

- shell: bash
run: .github/ci.sh setup_dist_bins

Expand Down Expand Up @@ -238,23 +247,23 @@ jobs:
# distribution version matches the HPC version, the HPC build artifacts do
# not clobber the non-HPC distribution artifacts.
- if: matrix.ghc == '9.4.8' && matrix.hpc == false
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ steps.config.outputs.name }} (GHC ${{ matrix.ghc }})
path: "${{ steps.config.outputs.name }}.tar.gz*"
if-no-files-found: error
retention-days: ${{ needs.config.outputs.retention-days }}

- if: matrix.ghc == '9.4.8' && matrix.hpc == false
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ steps.config.outputs.name }}-with-solvers (GHC ${{ matrix.ghc }})
path: "${{ steps.config.outputs.name }}-with-solvers.tar.gz*"
if-no-files-found: error
retention-days: ${{ needs.config.outputs.retention-days }}

- if: matrix.ghc == '9.4.8' && matrix.run-tests && matrix.hpc == false
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
path: dist/bin
name: ${{ matrix.os }}-bins
Expand All @@ -264,7 +273,7 @@ jobs:
run: .github/ci.sh collect_hpc_files

- if: matrix.hpc == true
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
path: hpc.tar.gz
name: ${{ matrix.os }}-hpc.tar.gz
Expand Down Expand Up @@ -296,7 +305,7 @@ jobs:
BUILD_TARGET_OS: ${{ matrix.os }}
BUILD_TARGET_ARCH: ${{ runner.arch }}

- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: "${{ matrix.os }}-bins"
path: dist/bin
Expand Down Expand Up @@ -331,7 +340,7 @@ jobs:
BUILD_TARGET_OS: ${{ matrix.os }}
BUILD_TARGET_ARCH: ${{ runner.arch }}

- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: "${{ matrix.os }}-bins"
path: dist/bin
Expand Down Expand Up @@ -398,7 +407,7 @@ jobs:
BUILD_TARGET_OS: ${{ matrix.os }}
BUILD_TARGET_ARCH: ${{ runner.arch }}

- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: "${{ matrix.os }}-bins"
path: dist/bin
Expand Down Expand Up @@ -461,7 +470,7 @@ jobs:
BUILD_TARGET_OS: ${{ matrix.os }}
BUILD_TARGET_ARCH: ${{ runner.arch }}

- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: "${{ matrix.os }}-bins"
path: dist/bin
Expand All @@ -474,7 +483,7 @@ jobs:
if: runner.os != 'Windows'
run: chmod +x bin/*

- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: dist-tests-${{ matrix.os }}
path: dist-tests
Expand Down Expand Up @@ -554,12 +563,12 @@ jobs:
BUILD_TARGET_OS: ${{ matrix.os }}
BUILD_TARGET_ARCH: ${{ runner.arch }}

- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: dist-tests-${{ matrix.os }}
name: dist-tests-${{ matrix.os }}-hpc
path: dist-tests

- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: "${{ matrix.os }}-hpc.tar.gz"

Expand Down Expand Up @@ -609,7 +618,7 @@ jobs:
run: |
./compute-coverage.sh
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
path: hpc-html
name: coverage-html-${{ github.event.number }}
Expand Down Expand Up @@ -755,7 +764,7 @@ jobs:
mkdir -p s2nTests/bin
- name: Download previously-built SAW
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: "${{ matrix.os }}-bins"
path: ./s2nTests/bin
Expand Down Expand Up @@ -809,7 +818,7 @@ jobs:
mkdir -p exercises/bin
- name: Download previously-built SAW
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: "${{ matrix.os }}-bins"
path: ./exercises/bin
Expand Down

0 comments on commit 30606a2

Please sign in to comment.