feat: ensure macosx64 is built for x86_64

This commit is contained in:
Cyrix126 2024-12-09 17:52:37 +01:00
parent c4f6cc0c84
commit 55b39cf2c3

View file

@ -38,6 +38,7 @@ jobs:
elif [ "$RUNNER_OS" == "macOS" ]; then elif [ "$RUNNER_OS" == "macOS" ]; then
cargo install cargo-bundle cargo install cargo-bundle
rustup target install aarch64-apple-darwin rustup target install aarch64-apple-darwin
rustup target install x86_64-apple-darwin
fi fi
shell: bash shell: bash
@ -45,11 +46,11 @@ jobs:
- name: Build - name: Build
run: | run: |
if [ "$RUNNER_OS" == "macOS" ]; then if [ "$RUNNER_OS" == "macOS" ]; then
cargo bundle --release cargo bundle --release --target x86_64-apple-darwin
cargo bundle --release --target aarch64-apple-darwin cargo bundle --release --target aarch64-apple-darwin
mv target/release/bundle/osx/Gupaxx.app Gupaxx-macos-x64.app mv target/x86_64-apple-darwin/release/bundle/osx/Gupaxx.app Gupaxx-macos-x64.app
mv target/aarch64-apple-darwin/release/bundle/osx/Gupaxx.app Gupaxx-macos-arm64.app mv target/aarch64-apple-darwin/release/bundle/osx/Gupaxx.app Gupaxx-macos-arm64.app
cargo bundle --release --features=bundle cargo bundle --release --target x86_64-apple-darwin --features=bundle
cargo bundle --release --target aarch64-apple-darwin --features=bundle cargo bundle --release --target aarch64-apple-darwin --features=bundle
mv target/release/bundle/osx/Gupaxx.app Gupaxx-macos-x64.app_b mv target/release/bundle/osx/Gupaxx.app Gupaxx-macos-x64.app_b
mv target/aarch64-apple-darwin/release/bundle/osx/Gupaxx.app Gupaxx-macos-arm64.app_b mv target/aarch64-apple-darwin/release/bundle/osx/Gupaxx.app Gupaxx-macos-arm64.app_b