Support macOS universal thirdparty library builds

This commit is contained in:
Twarit Waikar
2021-10-12 02:56:19 +05:30
parent b0b3eba3ee
commit 84fa17720c
5 changed files with 32 additions and 2 deletions

View File

@@ -12,6 +12,7 @@ jobs:
git submodule update --init --recursive
pip3 install --user scons
scons platform=linux target=release bits=64 godot_cpp=yes generate_bindings=yes use_custom_api_file=yes custom_api_file=api.ci.json -j $(nproc)
ldd demo/addons/godot-git-plugin/linux/libgitapi.so
- uses: actions/upload-artifact@v2
with:
name: godot-git-plugin-linux-release-${{ github.sha }}
@@ -33,6 +34,7 @@ jobs:
git submodule update --init --recursive
pip3 install --user scons
scons platform=windows target=release bits=64 godot_cpp=yes generate_bindings=yes use_custom_api_file=yes custom_api_file=api.ci.json -j $env:NUMBER_OF_PROCESSORS
dumpbin /dependents .\demo\addons\godot-git-plugin\win64\libgitapi.dll
- uses: actions/upload-artifact@v2
with:
name: godot-git-plugin-windows-release-${{ github.sha }}
@@ -47,8 +49,9 @@ jobs:
- name: build-macos-release
run: |
git submodule update --init --recursive
brew install scons
brew install scons openssl@1.1
scons platform=osx target=release bits=64 godot_cpp=yes generate_bindings=yes use_custom_api_file=yes custom_api_file=api.ci.json macos_arch=universal use_llvm=yes -j $(sysctl -n hw.logicalcpu)
otool -L demo/addons/godot-git-plugin/osx/libgitapi.so
- uses: actions/upload-artifact@v2
with:
name: godot-git-plugin-macos-release-${{ github.sha }}