-
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: update actions/upload-artifact to v4 with merge (#1521)
- Loading branch information
Showing
1 changed file
with
26 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,10 +41,12 @@ jobs: | |
mv target/release/symsorter build/symsorter-Linux-x86_64 | ||
mv target/release/symbolicli build/symbolicli-Linux-x86_64 | ||
- uses: actions/[email protected] | ||
with: | ||
name: ${{ github.sha }} | ||
name: artifact-linux-${{ github.sha }} | ||
path: build/* | ||
if-no-files-found: 'error' | ||
# since this artifact will be merged, compression is not necessary | ||
compression-level: '0' | ||
|
||
mac: | ||
# Note: This doesn't use a build matrix, as it requires a last step to merge the x86 | ||
|
@@ -99,10 +101,13 @@ jobs: | |
cd target/x86_64-apple-darwin/release | ||
zip -r ../../../build/symbolicator-aarch64-apple-darwin-debug.zip symbolicator.dSYM | ||
- uses: actions/upload-artifact@v3.1.1 | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ github.sha }} | ||
name: artifact-mac-${{ github.sha }} | ||
path: build/* | ||
if-no-files-found: 'error' | ||
# since this artifact will be merged, compression is not necessary | ||
compression-level: '0' | ||
|
||
windows: | ||
name: Build Tools on Windows | ||
|
@@ -127,7 +132,22 @@ jobs: | |
mv symbolicli.exe symbolicli-Windows-x86_64.exe | ||
mv wasm-split.exe wasm-split-Windows-x86_64.exe | ||
- uses: actions/upload-artifact@v3.1.1 | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ github.sha }} | ||
name: artifact-windows-${{ github.sha }} | ||
path: target/release/*-Windows-x86_64.exe | ||
if-no-files-found: 'error' | ||
# since this artifact will be merged, compression is not necessary | ||
compression-level: '0' | ||
|
||
merge: | ||
name: Create Release Artifact | ||
runs-on: ubuntu-latest | ||
needs: [linux, mac, windows] | ||
steps: | ||
- uses: actions/upload-artifact/merge@v4 | ||
with: | ||
# Craft expects release assets from github to be a single artifact named after the sha. | ||
name: ${{ github.sha }} | ||
pattern: artifact-* | ||
delete-merged: true |