Skip to content

Commit cb29f36

Browse files
authored
Merge pull request #187 from firebase/feature/js-fix-include-path-in-package
Switch Mac build to Xcode 11.7, and fix final C++ package include path.
2 parents 7e1d453 + 748a482 commit cb29f36

File tree

4 files changed

+44
-5
lines changed

4 files changed

+44
-5
lines changed

.github/workflows/cpp-packaging.yml

Lines changed: 26 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,10 @@ 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
73+
6774
- name: fetch and build binutils
6875
run: |
6976
set +e
@@ -120,6 +127,10 @@ jobs:
120127
runs-on: macos-latest
121128
if: ${{ github.event.inputs.downloadPublicVersion == '' && github.event.inputs.downloadPreviousRun == '' }}
122129
steps:
130+
- name: setup Xcode version (macos)
131+
if: runner.os == 'macOS'
132+
run: sudo xcode-select -s /Applications/Xcode_${{ env.xcodeVersion }}.app/Contents/Developer
133+
123134
- name: fetch SDK
124135
uses: actions/[email protected]
125136
with:
@@ -247,6 +258,10 @@ jobs:
247258
build_type: "Debug"
248259

249260
steps:
261+
- name: setup Xcode version (macos)
262+
if: runner.os == 'macOS'
263+
run: sudo xcode-select -s /Applications/Xcode_${{ env.xcodeVersion }}.app/Contents/Developer
264+
250265
- uses: actions/checkout@v2
251266
with:
252267
submodules: true
@@ -367,6 +382,10 @@ jobs:
367382
- sdk_platform: darwin
368383
runs_on_platform: ubuntu-latest
369384
steps:
385+
- name: setup Xcode version (macos)
386+
if: runner.os == 'macOS'
387+
run: sudo xcode-select -s /Applications/Xcode_${{ env.xcodeVersion }}.app/Contents/Developer
388+
370389
- name: fetch SDK
371390
uses: actions/[email protected]
372391
with:
@@ -588,6 +607,10 @@ jobs:
588607
if: always()
589608
runs-on: ubuntu-latest
590609
steps:
610+
- name: setup Xcode version (macos)
611+
if: runner.os == 'macOS'
612+
run: sudo xcode-select -s /Applications/Xcode_${{ env.xcodeVersion }}.app/Contents/Developer
613+
591614
- name: download SDK zip
592615
uses: actions/download-artifact@v2
593616
with:

.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

build_scripts/other/package.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ cd "${origpath}"
2727
# Copy headers to packaged SDK.
2828
mkdir -p "${destpath}/include"
2929
cd "${sdkpath}"
30-
for incdir in */src/include/; do
31-
cp -af "${incdir}" "${destpath}/include/"
30+
for incdir in */src/include; do
31+
cp -af "${incdir}" "${destpath}/"
3232
done
3333
cd "${origpath}"
3434

0 commit comments

Comments
 (0)