mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-04-21 21:52:04 +02:00
GitHub Actions: zip Windows artifact before uploading
This commit is contained in:
parent
1462dc9623
commit
6ca7d063ae
1 changed files with 11 additions and 7 deletions
18
.github/workflows/autobuild.yml
vendored
18
.github/workflows/autobuild.yml
vendored
|
@ -22,6 +22,7 @@ jobs:
|
||||||
- uses: msys2/setup-msys2@v2
|
- uses: msys2/setup-msys2@v2
|
||||||
with:
|
with:
|
||||||
msystem: mingw64
|
msystem: mingw64
|
||||||
|
# zip is just used for artifact compression at the end.
|
||||||
install: >-
|
install: >-
|
||||||
base-devel
|
base-devel
|
||||||
git
|
git
|
||||||
|
@ -31,6 +32,7 @@ jobs:
|
||||||
mingw-w64-x86_64-meson
|
mingw-w64-x86_64-meson
|
||||||
mingw-w64-x86_64-autotools
|
mingw-w64-x86_64-autotools
|
||||||
mingw-w64-x86_64-gcc
|
mingw-w64-x86_64-gcc
|
||||||
|
zip
|
||||||
|
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
|
@ -71,17 +73,16 @@ jobs:
|
||||||
cp ../../mkxp.json .
|
cp ../../mkxp.json .
|
||||||
cp -r ../../scripts .
|
cp -r ../../scripts .
|
||||||
cp ../../assets/LICENSE.mkxp-z-with-https.txt .
|
cp ../../assets/LICENSE.mkxp-z-with-https.txt .
|
||||||
|
cd ..
|
||||||
|
# Zipping before uploading decreases the upload time considerably.
|
||||||
|
# Unfortunately this results in double-zipping; tracked at:
|
||||||
|
# https://github.com/actions/upload-artifact/issues/426
|
||||||
|
zip -r artifact.zip artifact
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: mkxp-z.windows.${{github.event_name == 'pull_request' && format('PR{0}', github.event.number) || github.ref_name}}-${{steps.short-sha.outputs.sha}}
|
name: mkxp-z.windows.${{github.event_name == 'pull_request' && format('PR{0}', github.event.number) || github.ref_name}}-${{steps.short-sha.outputs.sha}}
|
||||||
path: |
|
path: build/artifact.zip
|
||||||
build/artifact/*.dll
|
|
||||||
build/artifact/*.exe
|
|
||||||
build/artifact/mkxp.json
|
|
||||||
build/artifact/LICENSE.mkxp-z-with-https.txt
|
|
||||||
build/artifact/scripts/
|
|
||||||
build/artifact/stdlib/
|
|
||||||
|
|
||||||
build-linux-native:
|
build-linux-native:
|
||||||
name: Ubuntu 22.04 x86_64
|
name: Ubuntu 22.04 x86_64
|
||||||
|
@ -129,6 +130,9 @@ jobs:
|
||||||
cp -r ../../scripts .
|
cp -r ../../scripts .
|
||||||
cp ../../assets/LICENSE.mkxp-z-with-https.txt .
|
cp ../../assets/LICENSE.mkxp-z-with-https.txt .
|
||||||
cd ..
|
cd ..
|
||||||
|
# Zipping before uploading preserves +x permissions.
|
||||||
|
# Unfortunately this results in double-zipping; tracked at:
|
||||||
|
# https://github.com/actions/upload-artifact/issues/426
|
||||||
zip -r local.zip local
|
zip -r local.zip local
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
|
|
Loading…
Add table
Reference in a new issue