Skip to content

Commit 482f7f0

Browse files
committed
Add xcrun to swift commands
1 parent 2209c35 commit 482f7f0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/pull_request.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ jobs:
4848
macos_build_command: |
4949
mkdir MyPackage
5050
cd MyPackage
51-
swift package init --type library
52-
swift build
51+
xcrun swift package init --type library
52+
xcrun swift build
5353
5454
soundness:
5555
name: Soundness

.github/workflows/swift_package_test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ on:
4646
macos_build_command:
4747
type: string
4848
description: "macOS command to build and test the package"
49-
default: "swift test"
49+
default: "xcrun swift test"
5050
linux_build_command:
5151
type: string
5252
description: "Linux command to build and test the package"
@@ -121,7 +121,7 @@ jobs:
121121
done
122122
echo "DEVELOPER_DIR=/Applications/Xcode_${{ matrix.xcode_version }}.app" >> $GITHUB_ENV
123123
- name: Swift version
124-
run: swift --version
124+
run: xcrun swift --version
125125
- name: Pre-build
126126
run: ${{ inputs.macos_pre_build_command }}
127127
- name: Build / Test

0 commit comments

Comments
 (0)