Skip to content

Commit

Permalink
CI: Upload only test outputs (#364)
Browse files Browse the repository at this point in the history
Upload artifact with just output files so the artifact is smaller

---------

Co-authored-by: David Gardner <[email protected]>
  • Loading branch information
balos1 and gardner48 committed Dec 18, 2023
1 parent 2c2d87b commit f73f9a3
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 4 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/double-precision.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,18 @@ jobs:
with:
indexsize: ${{ matrix.indexsize }}
precision: ${{ matrix.precision }}
- name: Archive files from failed build
- name: Archive build files from failed build
uses: actions/[email protected]
if: failure()
with:
name: build_files
path: |
${{ github.workspace }}/test/build_*
!${{ github.workspace }}/test/build_*/Testing/output
- name: Archive output files from failed build
uses: actions/[email protected]
if: failure()
with:
name: output_files
path: |
${{ github.workspace }}/test/build_*/Testing/output
10 changes: 9 additions & 1 deletion .github/workflows/extended-precision.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,18 @@ jobs:
with:
indexsize: ${{ matrix.indexsize }}
precision: ${{ matrix.precision }}
- name: Archive files from failed build
- name: Archive build files from failed build
uses: actions/[email protected]
if: failure()
with:
name: build_files
path: |
${{ github.workspace }}/test/build_*
!${{ github.workspace }}/test/build_*/Testing/output
- name: Archive output files from failed build
uses: actions/[email protected]
if: failure()
with:
name: output_files
path: |
${{ github.workspace }}/test/build_*/Testing/output
10 changes: 9 additions & 1 deletion .github/workflows/single-precision.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,18 @@ jobs:
with:
indexsize: ${{ matrix.indexsize }}
precision: ${{ matrix.precision }}
- name: Archive files from failed build
- name: Archive build files from failed build
uses: actions/[email protected]
if: failure()
with:
name: build_files
path: |
${{ github.workspace }}/test/build_*
!${{ github.workspace }}/test/build_*/Testing/output
- name: Archive output files from failed build
uses: actions/[email protected]
if: failure()
with:
name: output_files
path: |
${{ github.workspace }}/test/build_*/Testing/output
10 changes: 9 additions & 1 deletion .github/workflows/spack-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,18 @@ jobs:
with:
indexsize: ${{ matrix.indexsize }}
precision: ${{ matrix.precision }}
- name: Archive files from failed build
- name: Archive build files from failed build
uses: actions/[email protected]
if: failure()
with:
name: build_files
path: |
${{ github.workspace }}/test/build_*
!${{ github.workspace }}/test/build_*/Testing/output
- name: Archive output files from failed build
uses: actions/[email protected]
if: failure()
with:
name: output_files
path: |
${{ github.workspace }}/test/build_*/Testing/output

0 comments on commit f73f9a3

Please sign in to comment.