Skip to content

Commit

Permalink
CI: adjust the artifact names according to the job
Browse files Browse the repository at this point in the history
Multiple artifacts with the same name only work if they're in the same
job. We use a matrix here, so our resulting artifact is simply whichever
job finished last.

Signed-off-by: Peter Hutterer <[email protected]>
  • Loading branch information
whot committed Aug 4, 2022
1 parent c9c23e5 commit 3fbe577
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,16 @@ jobs:
- uses: actions/upload-artifact@v2
if: ${{ always() }} # even if we fail
with:
name: meson test logs
name: meson test logs-${{matrix.compiler}} ${{matrix.meson_options}}
path: |
builddir/meson-logs/testlog*.txt
builddir/meson-logs/meson-log.txt
# move the tarball to the top level
- name: move tarballs to top level
run: mv builddir/meson-dist/libwacom-*tar.xz .
# We only need one tarball for the build-from-tarball job
- uses: actions/upload-artifact@v2
if: ${{ matrix.compiler == 'gcc' && matrix.meson_options == '' }}
with:
name: tarball
path: libwacom-*tar.xz
Expand Down Expand Up @@ -84,7 +86,7 @@ jobs:
- uses: actions/upload-artifact@v2
if: ${{ always() }} # even if we fail
with:
name: meson test logs
name: meson test logs-valgrind
path: |
builddir/meson-logs/testlog*.txt
builddir/meson-logs/meson-log.txt
Expand Down

0 comments on commit 3fbe577

Please sign in to comment.