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 \