Skip to content

Commit

Permalink
Merge pull request #15 from samzong/fix/x86-64
Browse files Browse the repository at this point in the history
🐛 fix: Workflow
  • Loading branch information
samzong authored Oct 22, 2024
2 parents dfb6f71 + 2157786 commit 06dafb7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,20 @@ jobs:

- name: Build
run: |
xcodebuild clean archive \
-project MacMusicPlayer.xcodeproj \
-scheme MacMusicPlayer \
-archivePath $PWD/build/MacMusicPlayer.xcarchive \
-configuration Release
CODE_SIGN_IDENTITY="" \
CODE_SIGNING_REQUIRED=NO \
ONLY_ACTIVE_ARCH=NO \
ARCHS="arm64 x86_64"
xcodebuild clean build \
-project MacMusicPlayer.xcodeproj \
-scheme MacMusicPlayer \
-configuration Release \
-sdk macosx \
-destination 'generic/platform=macOS,name=Any Mac' \
CODE_SIGN_IDENTITY="" \
CODE_SIGNING_REQUIRED=NO \
ONLY_ACTIVE_ARCH=NO \
ARCHS="x86_64 arm64"
- name: Verify architecture
run: |
lipo -info dist/MacMusicPlayer.app/Contents/MacOS/MacMusicPlayer
- name: Create app
run: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pr-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 06dafb7

Please sign in to comment.