Skip to content

Commit

Permalink
workflows: use configuration for artifact upload
Browse files Browse the repository at this point in the history
Access the build directory programmatically via the configuration
name set in the environment of the current workflow in the matrix.
No wildcards necessary.

Also prepend the name of the current configuration
to the name of the uploaded artifact. This enables
the upload of all artifacts generated by the entire
build matrix since they'll all have different names.
  • Loading branch information
matheusmoreira committed Sep 21, 2024
1 parent 3fa90f6 commit 16f5e73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ jobs:
- name: Upload lone executable artifact
uses: actions/upload-artifact@v4
with:
name: lone
path: build/*/lone
name: ${{ job.env.CONFIGURATION }}-lone
path: build/${{ job.env.CONFIGURATION }}/lone
compression-level: 9
overwrite: false

Expand Down

0 comments on commit 16f5e73

Please sign in to comment.