Skip to content

Commit 748a482

Browse files
committed
Add xcode selection to other workflows.
1 parent 2aaf7d8 commit 748a482

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/desktop.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66

77
env:
88
CCACHE_DIR: ${{ github.workspace }}/ccache_dir
9+
# Xcode version 11.7 is the version we build the SDK with.
10+
# Our MacOS runners will use the version in /Applications/Xcode_${xcodeVersion}.app
11+
xcodeVersion: "11.7"
912

1013
jobs:
1114
build:
@@ -40,6 +43,10 @@ jobs:
4043
msvc_runtime: "dynamic"
4144

4245
steps:
46+
- name: setup Xcode version (macos)
47+
if: runner.os == 'macOS'
48+
run: sudo xcode-select -s /Applications/Xcode_${{ env.xcodeVersion }}.app/Contents/Developer
49+
4350
- uses: actions/checkout@v2
4451
with:
4552
submodules: true

.github/workflows/ios.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ on:
44
pull_request:
55
types: [opened, reopened, synchronize]
66

7+
env:
8+
# Xcode version 11.7 is the version we build the SDK with.
9+
# Our MacOS runners will use the version in /Applications/Xcode_${xcodeVersion}.app
10+
xcodeVersion: "11.7"
11+
712
jobs:
813
build:
914
name: ios-macos-latest
@@ -12,6 +17,10 @@ jobs:
1217
fail-fast: false
1318

1419
steps:
20+
- name: setup Xcode version (macos)
21+
if: runner.os == 'macOS'
22+
run: sudo xcode-select -s /Applications/Xcode_${{ env.xcodeVersion }}.app/Contents/Developer
23+
1524
- uses: actions/checkout@v2
1625
with:
1726
submodules: true

0 commit comments

Comments
 (0)