mirror of
https://github.com/Cyrix126/gupaxx.git
synced 2025-01-09 07:29:25 +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
|
if [ "$RUNNER_OS" == "macOS" ]; then
|
||||||
cargo bundle --all-features --release
|
cargo bundle --all-features --release
|
||||||
cargo bundle --all-features --release --target aarch64-apple-darwin
|
cargo bundle --all-features --release --target aarch64-apple-darwin
|
||||||
chmod +x target/release/bundle/osx/Gupax.app/Contents/MacOS/gupax
|
mv target/release/bundle/osx/Gupax.app Gupax-macos-x64.app
|
||||||
chmod +x target/aarch64-apple-darwin/release/bundle/osx/Gupax.app/Contents/MacOS/gupax
|
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
|
elif [ "$RUNNER_OS" == "Linux" ]; then
|
||||||
cargo build --all-features --release --target x86_64-unknown-linux-gnu
|
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
|
else
|
||||||
cargo build --all-features --release
|
cargo build --all-features --release
|
||||||
fi
|
fi
|
||||||
|
@ -67,23 +70,16 @@ jobs:
|
||||||
name: windows
|
name: windows
|
||||||
path: target/release/gupax.exe
|
path: target/release/gupax.exe
|
||||||
|
|
||||||
- name: Archive (macOS-x64)
|
- name: Archive
|
||||||
if: ${{ runner.os == 'macOS' }}
|
if: ${{ runner.os == 'macOS' }}
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: macos-x64
|
name: macos
|
||||||
path: target/release/bundle/osx/Gupax.app
|
path: macos.tar
|
||||||
|
|
||||||
- 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: Archive (Linux)
|
- name: Archive (Linux)
|
||||||
if: ${{ runner.os == 'Linux' }}
|
if: ${{ runner.os == 'Linux' }}
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: linux
|
name: linux
|
||||||
path: target/x86_64-unknown-linux-gnu/release/gupax
|
path: linux.tar
|
||||||
|
|
Loading…
Reference in a new issue