Skip to content

Commit 1e0680f

Browse files
committed
Add Xcode version selection, with default 11.7, for packaging step.
1 parent 6321454 commit 1e0680f

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

.github/workflows/cpp-packaging.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,14 @@ on:
1919
env:
2020
# Packaging prerequisites
2121
# Binutils 2.35.1 released Sep 19, 2020
22-
binutilsVer: 2.35.1
22+
binutilsVer: "2.35.1"
2323
# Demumble 1.1.0 released Nov 13, 2018
24-
demumbleVer: 1.1.0
24+
demumbleVer: "1.1.0"
2525
# Use SHA256 for hashing files.
26-
hashCommand: sha256sum
26+
hashCommand: "sha256sum"
27+
# Xcode version 11.7 is the version we build the SDK with.
28+
# Our MacOS runners will use the version in /Applications/Xcode_${xcodeVersion}.app
29+
xcodeVersion: "11.7"
2730

2831
jobs:
2932
log_inputs:
@@ -64,6 +67,9 @@ jobs:
6467
- os: macos-latest
6568
tools_platform: darwin
6669
steps:
70+
- name: setup Xcode version (macos)
71+
if: runner.os == "macOS"
72+
run: sudo xcode-select -s /Applications/Xcode_${{ env.xcodeVersion }}.app/Contents/Developer
6773
- name: fetch and build binutils
6874
run: |
6975
set +e
@@ -247,6 +253,10 @@ jobs:
247253
build_type: "Debug"
248254

249255
steps:
256+
- name: setup Xcode version (macos)
257+
if: runner.os == "macOS"
258+
run: sudo xcode-select -s /Applications/Xcode_${{ env.xcodeVersion }}.app/Contents/Developer
259+
250260
- uses: actions/checkout@v2
251261
with:
252262
submodules: true
@@ -367,6 +377,10 @@ jobs:
367377
- sdk_platform: darwin
368378
runs_on_platform: ubuntu-latest
369379
steps:
380+
- name: setup Xcode version (macos)
381+
if: runner.os == "macOS"
382+
run: sudo xcode-select -s /Applications/Xcode_${{ env.xcodeVersion }}.app/Contents/Developer
383+
370384
- name: fetch SDK
371385
uses: actions/[email protected]
372386
with:
@@ -588,6 +602,10 @@ jobs:
588602
if: always()
589603
runs-on: ubuntu-latest
590604
steps:
605+
- name: setup Xcode version (macos)
606+
if: runner.os == "macOS"
607+
run: sudo xcode-select -s /Applications/Xcode_${{ env.xcodeVersion }}.app/Contents/Developer
608+
591609
- name: download SDK zip
592610
uses: actions/download-artifact@v2
593611
with:

0 commit comments

Comments
 (0)