From 55b39cf2c34534bb3e7f69528d6954a49723662f Mon Sep 17 00:00:00 2001 From: Cyrix126 Date: Mon, 9 Dec 2024 17:52:37 +0100 Subject: [PATCH] feat: ensure macosx64 is built for x86_64 --- .github/workflows/ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 621d768..5d1f6fa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,6 +38,7 @@ jobs: elif [ "$RUNNER_OS" == "macOS" ]; then cargo install cargo-bundle rustup target install aarch64-apple-darwin + rustup target install x86_64-apple-darwin fi shell: bash @@ -45,11 +46,11 @@ jobs: - name: Build run: | if [ "$RUNNER_OS" == "macOS" ]; then - cargo bundle --release + cargo bundle --release --target x86_64-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 - cargo bundle --release --features=bundle + cargo bundle --release --target x86_64-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/aarch64-apple-darwin/release/bundle/osx/Gupaxx.app Gupaxx-macos-arm64.app_b