Skip to content

Commit 6e85a77

Browse files
authored
Merge pull request #2597 from AlexandreSinger/feature-ci-artifacts-revisited
[CI] Cleaned Up Artifacts and Resolved Deprecation
2 parents 0d681ed + 4878db9 commit 6e85a77

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/containers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
id: generate
4747
run: |
4848
REPO='${{ github.repository }}'
49-
echo "::set-output name=image::ghcr.io/${REPO,,}/ubuntu/focal/build"
49+
echo "image=ghcr.io/${REPO,,}/ubuntu/focal/build" >> $GITHUB_OUTPUT
5050
5151
- name: ⛴️ Build container image
5252
run: docker build -t ${{ steps.generate.outputs.image }} -f Dockerfile .

.github/workflows/test.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,10 @@ jobs:
9696
NUM_CORES: ${{ matrix.cores }}
9797

9898
- name: Upload test results
99-
# We always want the test results to be uploaded, even when cancelled.
99+
# If the job was not cancelled, we want to save the result (this includes
100+
# when the job fails). See warning here:
100101
# https://docs.github.com/en/actions/learn-github-actions/expressions#always
101-
if: ${{ always() }}
102+
if: ${{ !cancelled() }}
102103
# TODO: This runnner is running on a self-hosted CPU. In order to upgrade
103104
# to v4, need to upgrade the machine to support node20.
104105
uses: actions/upload-artifact@v3
@@ -285,17 +286,19 @@ jobs:
285286
./run_reg_test.py ${{ matrix.suite }} -show_failures -j2
286287
287288
- name: Upload regression run files
289+
if: ${{ !cancelled() }}
288290
uses: actions/upload-artifact@v4
289291
with:
290292
name: ${{matrix.name}}_run_files
291293
path: |
292294
vtr_flow/**/*.out
293-
vtr_flow/**/*.blif
295+
# vtr_flow/**/*.blif # Removed since it was taking too much space and was hardly used.
294296
vtr_flow/**/*.p
295297
vtr_flow/**/*.net
296298
vtr_flow/**/*.r
297299
298300
- name: Upload regression results
301+
if: ${{ !cancelled() }}
299302
uses: actions/upload-artifact@v4
300303
with:
301304
name: ${{matrix.name}}_results

0 commit comments

Comments
 (0)