mirror of
https://github.com/Cyrix126/gupaxx.git
synced 2024-12-22 22:59:27 +00:00
ci: tar before zip
zip doesn't retain the executable bit, so macos/linux binaries can't be executed. this `tar`'s the binaries before uploading the artifact.
This commit is contained in:
parent
a357742172
commit
4acbd891d5
1 changed files with 9 additions and 13 deletions
22
.github/workflows/ci.yml
vendored
22
.github/workflows/ci.yml
vendored
|
@ -51,10 +51,13 @@ jobs:
|
|||
if [ "$RUNNER_OS" == "macOS" ]; then
|
||||
cargo bundle --all-features --release
|
||||
cargo bundle --all-features --release --target aarch64-apple-darwin
|
||||
chmod +x target/release/bundle/osx/Gupax.app/Contents/MacOS/gupax
|
||||
chmod +x target/aarch64-apple-darwin/release/bundle/osx/Gupax.app/Contents/MacOS/gupax
|
||||
mv target/release/bundle/osx/Gupax.app Gupax-macos-x64.app
|
||||
mv target/aarch64-apple-darwin/release/bundle/osx/Gupax.app Gupax-macos-arm64.app
|
||||
tar -cf macos.tar Gupax-macos-arm64.app Gupax-macos-x64.app
|
||||
elif [ "$RUNNER_OS" == "Linux" ]; then
|
||||
cargo build --all-features --release --target x86_64-unknown-linux-gnu
|
||||
mv target/x86_64-unknown-linux-gnu/release/gupax .
|
||||
tar -cf linux.tar gupax
|
||||
else
|
||||
cargo build --all-features --release
|
||||
fi
|
||||
|
@ -67,23 +70,16 @@ jobs:
|
|||
name: windows
|
||||
path: target/release/gupax.exe
|
||||
|
||||
- name: Archive (macOS-x64)
|
||||
- name: Archive
|
||||
if: ${{ runner.os == 'macOS' }}
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: macos-x64
|
||||
path: target/release/bundle/osx/Gupax.app
|
||||
|
||||
- name: Archive (macOS-arm64)
|
||||
if: ${{ runner.os == 'macOS' }}
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: macos-arm64
|
||||
path: target/aarch64-apple-darwin/release/bundle/osx/Gupax.app
|
||||
name: macos
|
||||
path: macos.tar
|
||||
|
||||
- name: Archive (Linux)
|
||||
if: ${{ runner.os == 'Linux' }}
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: linux
|
||||
path: target/x86_64-unknown-linux-gnu/release/gupax
|
||||
path: linux.tar
|
||||
|
|
Loading…
Reference in a new issue