From 864fb199f0bea8dcc55dbee256e21f796e55efc0 Mon Sep 17 00:00:00 2001 From: Jordan Carlin Date: Sun, 21 Jul 2024 14:16:12 -0700 Subject: [PATCH] Update artifact upload --- .github/workflows/install.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/install.yml b/.github/workflows/install.yml index 8d6abfd2f..b422ae762 100644 --- a/.github/workflows/install.yml +++ b/.github/workflows/install.yml @@ -1,5 +1,5 @@ name: Installation -on: [workflow_dispatch] +on: [workflow_dispatch, push] defaults: run: shell: bash @@ -31,7 +31,7 @@ jobs: run: | source setup.sh regression-wally - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 if: always() with: name: regression-logs-${{ matrix.os }} @@ -48,6 +48,11 @@ jobs: matrix: os: ["rockylinux:8", "rockylinux:9", "almalinux:8", "almalinux:9"] steps: + - name: Unique name for Artifacts + id: prep_artifact_name + run: | + name=$(echo -n "${{ matrix.os }}" | sed -e 's/[ \t:\/\\"<>|*?]/-/g' -e 's/--*/-/g') + echo "ARTIFACT_NAME=$name" >> $GITHUB_ENV - name: Install dependencies run: | dnf install -y sudo git @@ -72,8 +77,8 @@ jobs: run: | source setup.sh regression-wally - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 if: always() with: - name: regression-logs-${{ matrix.os }} + name: regression-logs-${{ env.ARTIFACT_NAME }} path: ${{ github.workspace }}/sim/verilator/logs/