Skip to content

Commit 9c45140

Browse files
Explicitly select SDKROOT by Xcode
1 parent 886919d commit 9c45140

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ jobs:
1010
matrix:
1111
entry:
1212
# Ensure that all host can install toolchain, build project, and run tests
13-
- { os: macos-10.15, toolchain: wasm-5.6.0-RELEASE, wasi-backend: Node }
14-
- { os: macos-11, toolchain: wasm-5.6.0-RELEASE, wasi-backend: Node }
15-
- { os: macos-12, toolchain: wasm-5.6.0-RELEASE, wasi-backend: Node }
13+
- { os: macos-10.15, toolchain: wasm-5.6.0-RELEASE, wasi-backend: Node, xcode: Xcode_12.4.app }
14+
- { os: macos-11, toolchain: wasm-5.6.0-RELEASE, wasi-backend: Node, xcode: Xcode_13.2.1.app }
15+
- { os: macos-12, toolchain: wasm-5.6.0-RELEASE, wasi-backend: Node, xcode: Xcode_13.4.1.app }
1616
- { os: ubuntu-18.04, toolchain: wasm-5.6.0-RELEASE, wasi-backend: Node }
1717

1818
# Ensure that test succeeds with all toolchains and wasi backend combinations
@@ -33,6 +33,9 @@ jobs:
3333
uses: actions/checkout@master
3434
with:
3535
fetch-depth: 1
36+
- name: Select SDKROOT
37+
if: ${{ matrix.entry.xcode }}
38+
run: sudo xcode-select -s /Applications/${{ matrix.entry.xcode }}
3639
- uses: swiftwasm/setup-swiftwasm@v1
3740
with:
3841
swift-version: ${{ matrix.entry.toolchain }}

0 commit comments

Comments
 (0)