Add runtime scripts etc. for checking MacOS SDK version etc. #4361
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [push] | |
env: | |
OSC_BUILD_ID: "GITHUB_${{ github.run_id }}.${{ github.run_number }}" | |
jobs: | |
windows2022msvc: | |
name: Windows 2022 (x86_64, MSVC) | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
path: osc | |
submodules: 'recursive' | |
- name: run build_windows.py | |
run: | | |
cd $env:GITHUB_WORKSPACE\osc | |
python scripts\\build_windows.py -j2 || exit /b | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: OpenSimCreator_Win64.zip | |
path: osc/osc-build/*win64.exe | |
if-no-files-found: error | |
ubuntu2004clang: | |
name: Ubuntu 20.04 (x86_64, clang) | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
path: osc | |
submodules: 'recursive' | |
- name: run build script | |
run: | | |
cd $GITHUB_WORKSPACE/osc | |
sudo apt-get install xvfb # virtual desktop, for tests | |
export OSC_BUILD_CONCURRENCY=$(nproc) | |
export CC=clang | |
export CXX=clang++ | |
xvfb-run ./scripts/build_debian-buster.sh | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: OpenSimCreator_Deb.zip | |
path: osc/osc-build/*.deb | |
if-no-files-found: error | |
macos11clang: | |
name: MacOS 13 (x86_64, XCode 15.2, targeting 14.2) | |
runs-on: macos-13 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
- name: run build script | |
run: | | |
cd $GITHUB_WORKSPACE | |
OSC_CMAKE_CONFIG_EXTRA="-Werror=dev -DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk -DCMAKE_OSX_DEPLOYMENT_TARGET=14 -DCMAKE_OSX_ARCHITECTURES=x86_64" | |
export OSC_BUILD_CONCURRENCY=$(sysctl -n hw.physicalcpu) | |
./scripts/build_mac.sh | |
./scripts/macos_check-dependencies.py osc-build/osc/osc | |
./scripts/macos_check-sdk.py 14.shouldfail osc-build/osc/osc | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: OpenSimCreator_MacOSX.zip | |
path: osc-build/*.dmg | |
if-no-files-found: error | |
ubuntu2204gcc: | |
name: Ubuntu 22.04 (x86_64, gcc-12) | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
path: osc | |
submodules: 'recursive' | |
- name: run build script | |
run: | | |
cd $GITHUB_WORKSPACE/osc | |
sudo apt-get install xvfb # virtual desktop, for tests | |
export OSC_BUILD_CONCURRENCY=$(nproc) | |
export CC=gcc-12 | |
export CXX=g++-12 | |
xvfb-run ./scripts/build_debian-buster.sh | |