Skip to content

Commit b67f5cb

Browse files
committed
ci: Fix arguments passed to xcodebuild docbuild
1 parent fc2ae1d commit b67f5cb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/actions/compile-docs/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ runs:
3737
if: ${{ inputs.xcodebuild }}
3838
run: |
3939
if [ $DEVICE_TYPE -eq "Mac" ]; then
40-
destination=""
40+
destination="platform=OS X"
4141
else
42-
destination="destination=$(xcrun simctl list devices $devicetype available | grep -v -- -- | tail -n 1 | grep -oE '[0-9A-F\-]{36}')"
42+
destination="id=$(xcrun simctl list devices $devicetype available | grep -v -- -- | tail -n 1 | grep -oE '[0-9A-F\-]{36}')"
4343
fi
44-
xcodebuild -scheme "$TARGET" -destination "$(destination)" docbuild | xcbeautify --renderer github-actions
44+
xcodebuild -skipMacroValidation -scheme "$TARGET" -destination "$(destination)" docbuild | xcbeautify --renderer github-actions
4545
shell: bash
4646
env:
4747
TARGET: ${{ inputs.target }}

.github/workflows/build-test-and-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
set -e
7979
(
8080
buildtarget () {
81-
xcodebuild -scheme "$1" -destination "id=$deviceid" build | xcbeautify --renderer github-actions
81+
xcodebuild -skipMacroValidation -scheme "$1" -destination "id=$deviceid" build | xcbeautify --renderer github-actions
8282
}
8383
8484
buildtarget SwiftCrossUI

0 commit comments

Comments
 (0)