Skip to content

Commit b4bc162

Browse files
authored
Update swift.yml
1 parent 2b1a444 commit b4bc162

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/swift.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,13 @@ jobs:
1010
build:
1111

1212
runs-on: macos-latest
13+
strategy:
14+
matrix:
15+
destination: ['platform=iOS Simulator,OS=18.1,name=iPhone 16 Pro']
1316

1417
steps:
1518
- uses: actions/checkout@v2
1619
- name: Build
17-
run: swift build -Xswiftc "-sdk" -Xswiftc "`xcrun --sdk iphonesimulator --show-sdk-path`" -Xswiftc "-target" -Xswiftc "x86_64-apple-ios16.2-simulator"
20+
run: xcodebuild build-for-testing -scheme "SwiftComponents-Package" -destination "${{ matrix.destination }}"
1821
- name: Run tests
19-
run: xcodebuild test -destination 'platform=iOS Simulator,OS=16.2,name=iPhone 14 Pro' -scheme 'SwiftComponents-Package'
22+
run: xcodebuild test -scheme "SwiftComponents-Package" -destination "${{ matrix.destination }}"

0 commit comments

Comments
 (0)