From 244ee62ba22cb7386cb6dddd843961350f63e87b Mon Sep 17 00:00:00 2001 From: samzong Date: Tue, 22 Oct 2024 13:04:01 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20Workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-and-release.yml | 9 ++++++--- .github/workflows/pr-test.yml | 2 ++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml index 6b9b87a..030a257 100644 --- a/.github/workflows/build-and-release.yml +++ b/.github/workflows/build-and-release.yml @@ -9,7 +9,8 @@ jobs: runs-on: macos-latest steps: - - uses: actions/checkout@v4 + - name: Checkout code + uses: actions/checkout@v4 - name: Set up Xcode uses: maxim-lobanov/setup-xcode@v1 @@ -27,13 +28,15 @@ jobs: CODE_SIGNING_REQUIRED=NO \ ONLY_ACTIVE_ARCH=NO \ ARCHS="arm64 x86_64" - + - name: Create app run: | xcodebuild -exportArchive \ -archivePath $PWD/build/MacMusicPlayer.xcarchive \ -exportOptionsPlist exportOptions.plist \ - -exportPath $PWD/build/export + -exportPath $PWD/build/export \ + ONLY_ACTIVE_ARCH=NO \ + ARCHS="arm64 x86_64" - name: Prepare for DMG run: | diff --git a/.github/workflows/pr-test.yml b/.github/workflows/pr-test.yml index d0f028d..3464a62 100644 --- a/.github/workflows/pr-test.yml +++ b/.github/workflows/pr-test.yml @@ -23,6 +23,8 @@ jobs: -project MacMusicPlayer.xcodeproj \ -scheme MacMusicPlayer \ -configuration Release \ + -sdk macosx \ + -destination 'generic/platform=macOS,name=Any Mac' \ -derivedDataPath build \ CODE_SIGN_IDENTITY="" \ CODE_SIGNING_REQUIRED=NO \