Skip to content

Commit 9477115

Browse files
committed
chore: Build Test 변경
1 parent 10809fa commit 9477115

1 file changed

Lines changed: 11 additions & 29 deletions

File tree

.github/workflows/build.yml

Lines changed: 11 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
Build:
10-
runs-on: macos-15
10+
runs-on: macos-14
1111

1212
steps:
1313
# 저장소의 코드를 체크아웃
@@ -41,42 +41,24 @@ jobs:
4141
GOOGLE_SERVICE_INFO_PWD: ${{ secrets.GOOGLE_SERVICE_INFO_PWD }}
4242
DECRYPTED_GOOGLESERVICE_FILE_PATH: ${{ 'GimiFeedback/GimiFeedback/App/GoogleService-Info.plist' }}
4343

44-
- name: 🔨 set up xcode version
45-
run: |
46-
sudo xcode-select -s /Applications/Xcode_16.2.app
47-
48-
- name: ✅ check xcode version
49-
run: |
50-
sudo xcodebuild -version
51-
52-
- name: Download iOS Platform
53-
run: xcodebuild -downloadPlatform iOS
54-
55-
# - name: 🔍 Detect Latest iPhone Simulator
56-
# id: detect_latest_simulator
57-
# run: |
58-
# DEVICE=$(xcrun simctl list devices available | grep -Eo 'iPhone .* \([0-9A-F\-]+\)' | head -n 1)
59-
# UDID=$(echo "$DEVICE" | grep -Eo '[0-9A-F\-]{36}')
60-
# NAME=$(echo "$DEVICE" | cut -d '(' -f1 | xargs)
61-
# echo "Detected simulator: $NAME ($UDID)"
62-
# echo "sim_name=$NAME" >> "$GITHUB_OUTPUT"
63-
# echo "sim_udid=$UDID" >> "$GITHUB_OUTPUT"
64-
65-
# - name: 🔎 Show destinations (why none?)
66-
# run: |
67-
# xcodebuild -project GimiFeedback/GimiFeedback.xcodeproj -scheme GimiFeedback -showdestinations || true
44+
- name: Select Xcode
45+
uses: maxim-lobanov/setup-xcode@v1
46+
with:
47+
xcode-version: '16.2'
6848

69-
# - name: 🔎 Key build settings
70-
# run: |
71-
# xcodebuild -project GimiFeedback/GimiFeedback.xcodeproj -target GimiFeedback -configuration Debug -showBuildSettings \
72-
# | egrep 'SUPPORTED_PLATFORMS|EXCLUDED_ARCHS|TARGETED_DEVICE_FAMILY' || true
49+
- name: List simulators
50+
run: xcrun simctl list devices available
7351

7452
- name: 🛠 Start xcode build
53+
env:
54+
CI: 1
7555
run: |
56+
set -eo pipefail
7657
xcodebuild \
7758
-project GimiFeedback/GimiFeedback.xcodeproj \
7859
-scheme GimiFeedback \
7960
-sdk iphoneos \
8061
-destination 'generic/platform=iOS' \
8162
-skipPackagePluginValidation \
63+
-resultBundlePath TestResults.xcresult \
8264
clean build

0 commit comments

Comments
 (0)