-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 1.14 KB
/
pr-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Pull Request Test
on:
pull_request:
branches: ["main"] # Listen for PRs targeting the main branch
jobs:
build-and-test:
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Build
run: |
xcodebuild clean build \
-project MacMusicPlayer.xcodeproj \
-scheme MacMusicPlayer \
-configuration Release \
CODE_SIGN_IDENTITY="" \
CODE_SIGNING_REQUIRED=NO \
ONLY_ACTIVE_ARCH=NO \
ARCHS="x86_64 arm64"
- name: Verify Architectures
run: |
# Find the path of the application.
APP_PATH=$(find $PWD -name MacMusicPlayer.app -type d | head -n 1)
echo "App Path: $APP_PATH"
# Find the path of the executable file.
EXECUTABLE_PATH="$APP_PATH/Contents/MacOS/MacMusicPlayer"
echo "Executable Path: $EXECUTABLE_PATH"
# Display the architecture information
lipo -info "$EXECUTABLE_PATH"