Skip to content

Commit eabcf9e

Browse files
try older xcode
1 parent 43af0b4 commit eabcf9e

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ jobs:
5757
build-libcxx32:
5858
runs-on: macos-13
5959
steps:
60+
- name: Select Xcode
61+
run: sudo xcode-select -switch /Applications/Xcode_14.2.app
6062
- name: Check Cache libcxx32
6163
id: libcxx32-llvm
6264
uses: ChristopherHX/check-cache@main
@@ -363,6 +365,8 @@ jobs:
363365
build-protobuf:
364366
runs-on: macos-13
365367
steps:
368+
- name: Select Xcode
369+
run: sudo xcode-select -switch /Applications/Xcode_14.2.app
366370
- uses: actions/cache/restore@v3
367371
id: cache
368372
with:
@@ -405,9 +409,10 @@ jobs:
405409
if: steps.cache.outputs.cache-hit != 'true'
406410
run: |
407411
mkdir -p "$GITHUB_WORKSPACE/protobuf-build"
408-
cmake . -DCMAKE_BUILD_TYPE=Release -Dprotobuf_BUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX="$GITHUB_WORKSPACE/protobuf-build"
409-
cmake --build . --parallel
410-
cmake --build . --target install
412+
./autogen.sh
413+
./configure --prefix="$GITHUB_WORKSPACE/protobuf-build"
414+
make -j8
415+
make install -j8
411416
working-directory: protobuf
412417
- uses: actions/cache/save@v3
413418
if: steps.cache.outputs.cache-hit != 'true'
@@ -458,6 +463,8 @@ jobs:
458463
QT_PACKAGE_SUFFIX: clang_64
459464
QT_PREBUILT_SUFFIX: -MacOS-MacOS_10_13-Clang-MacOS-MacOS_10_13-X86_64
460465
steps:
466+
- name: Select Xcode
467+
run: sudo xcode-select -switch /Applications/Xcode_14.2.app
461468
- name: Setup Vars
462469
id: setup-vars
463470
uses: actions/github-script@v6

0 commit comments

Comments
 (0)