9797 if-no-files-found : error
9898
9999 macos :
100- name : Build (macOS, Clang)
101- runs-on : macos-10.15
100+ name : Build (macOS, Clang, universal / x86_64 + arm64 )
101+ runs-on : macos-11
102102 steps :
103103 - name : Checkout
104104 uses : actions/checkout@v2
@@ -116,41 +116,7 @@ jobs:
116116
117117 - name : Build godot-cpp
118118 run : |
119- scons target=release generate_bindings=yes macos_arch=x86_64 -j $(sysctl -n hw.logicalcpu)
120-
121- - name : Upload artifact
122- uses : actions/upload-artifact@v2
123- with :
124- name : godot-cpp-macos-x86_64-release
125- path : bin/libgodot-cpp.osx.release.x86_64.a
126- if-no-files-found : error
127-
128- macos-arm64 :
129- name : Build (macOS, Clang, cross-compile arm64)
130- runs-on : macos-latest
131- steps :
132- - name : Checkout
133- uses : actions/checkout@v2
134- with :
135- submodules : recursive
136-
137- - name : Set up Python (for SCons)
138- uses : actions/setup-python@v2
139- with :
140- python-version : ' 3.x'
141-
142- - name : Install dependencies
143- run : |
144- python -m pip install scons
145-
146- - name : Build godot-cpp
147- run : |
148- # The default SDK in github the actions environemnt seems to have problems compiling for arm64.
149- # Use the latest 11.x SDK.
150- SDK_BASE=/Library/Developer/CommandLineTools/SDKs
151- SDK_VER=$(ls $SDK_BASE | grep "MacOSX11." | sort -r | head -n1)
152- echo $SDK_BASE/$SDK_VER/
153- 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)
119+ scons target=release generate_bindings=yes -j $(sysctl -n hw.logicalcpu)
154120
155121 static-checks :
156122 name : Static Checks (clang-format)
0 commit comments