Add new, more capable, EGL offscreen support (#4737) #95
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
name: macos-tests | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
build: | |
runs-on: macos-latest | |
name: macos-latest | |
# If it's not done in 60 minutes, something is wrong. | |
# Default is 6 hours, which is a bit long to wait. | |
timeout-minutes: 60 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.11 | |
- name: Install Homebrew packages | |
env: | |
HOMEBREW_NO_AUTO_UPDATE: 1 | |
run: | | |
./scripts/macosx-build-homebrew.sh | |
- name: Build OpenSCAD | |
run: | | |
mkdir build | |
cd build | |
cmake .. -DCMAKE_BUILD_TYPE=Release -DEXPERIMENTAL=ON -DSNAPSHOT=ON | |
export NUMCPU=$(($(sysctl -n hw.ncpu) * 3 / 2)) | |
make -j$NUMCPU | |
- name: Run Test Suite | |
run: | | |
cd build | |
export NUMCPU=$(($(sysctl -n hw.ncpu) * 3 / 2)) | |
ctest -j$NUMCPU | |
- name: Upload Test Result Report | |
uses: actions/upload-artifact@v3 | |
if: ${{ always() }} | |
with: | |
name: Test Result Report (MacOS) | |
path: | | |
build/Testing/Temporary/*_report.html | |
build/Testing/Temporary/LastTest.log |