[CI] Make OSX universal build instead 2 builds.

pull/634/head
Fabio Alessandrelli 2021-09-29 22:31:49 +02:00
parent 67f9109d1f
commit 480ad9ffed
1 changed files with 3 additions and 37 deletions

View File

@ -97,8 +97,8 @@ jobs:
if-no-files-found: error if-no-files-found: error
macos: macos:
name: Build (macOS, Clang) name: Build (macOS, Clang, universal / x86_64 + arm64)
runs-on: macos-10.15 runs-on: macos-11
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
@ -116,41 +116,7 @@ jobs:
- name: Build godot-cpp - name: Build godot-cpp
run: | run: |
scons target=release generate_bindings=yes macos_arch=x86_64 -j $(sysctl -n hw.logicalcpu) scons target=release generate_bindings=yes -j $(sysctl -n hw.logicalcpu)
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: godot-cpp-macos-x86_64-release
path: bin/libgodot-cpp.osx.release.x86_64.a
if-no-files-found: error
macos-arm64:
name: Build (macOS, Clang, cross-compile arm64)
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up Python (for SCons)
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install scons
- name: Build godot-cpp
run: |
# The default SDK in github the actions environemnt seems to have problems compiling for arm64.
# Use the latest 11.x SDK.
SDK_BASE=/Library/Developer/CommandLineTools/SDKs
SDK_VER=$(ls $SDK_BASE | grep "MacOSX11." | sort -r | head -n1)
echo $SDK_BASE/$SDK_VER/
scons target=release generate_bindings=yes macos_arch=arm64 macos_deployment_target=10.15 macos_sdk_path="$SDK_BASE/$SDK_VER/" -j $(sysctl -n hw.logicalcpu)
static-checks: static-checks:
name: Static Checks (clang-format) name: Static Checks (clang-format)