Skip to content

Commit ae0afea

Browse files
committed
Update build.yml
1 parent 2f68ab3 commit ae0afea

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ jobs:
133133
# 예시: 시뮬레이터 대상으로 빌드/테스트 시 destination에서 OS 지정
134134
mkdir -p build/test-results
135135
set -o pipefail
136+
set +e
136137
xcodebuild \
137138
-scheme "$SCHEME" \
138139
-configuration Debug \
@@ -141,11 +142,18 @@ jobs:
141142
-skipMacroValidation \
142143
-showBuildTimingSummary \
143144
build \
144-
| tee build.log \
145-
| xcpretty -r junit -o build/test-results/junit.xml
145+
| tee build.log
146+
XC_STATUS=${PIPESTATUS[0]}
147+
set -e
148+
149+
if [ -f build.log ]; then
150+
xcpretty -r junit -o build/test-results/junit.xml < build.log || true
151+
fi
152+
153+
exit $XC_STATUS
146154
147155
- name: Comment build failure on PR
148156
uses: mikepenz/action-junit-report@v4
149157
if: always()
150158
with:
151-
report_paths: 'build/test-results/junit.xml'
159+
report_paths: 'build/test-results/junit.xml'

0 commit comments

Comments
 (0)