0.9.x Updates 2024-04-18 to 04-22 by SGT #492
Workflow file for this run
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-CI' | |
on: | |
push: | |
pull_request: | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Build | |
runs-on: ${{ matrix.os }} | |
continue-on-error: true | |
defaults: | |
run: | |
shell: bash | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
#- macos-11 | |
- macos-12 | |
compiler: | |
- clang | |
- gcc | |
homebrew-gl: | |
- true | |
# - false | |
homebrew-al: | |
- true | |
- false | |
steps: | |
# The following dependencies are already present within macos-* images: | |
# - clang (llvm) | |
# - cmake | |
# - expat | |
# - gcc | |
# - git | |
# - jpeg | |
# - libpng | |
# - libvorbis | |
# - python | |
- name: Install dependencies using homebrew | |
run: brew install boost-python3 gtk+3 gtkglext sdl | |
# The following Apple-provided libraries are deprecated: | |
# * OpenGL as of macOS 10.14 | |
# * GLUT as of macOS 10.9 | |
- name: Optionally install homebrewed OpenGL and GLUT | |
if: ${{ matrix.homebrew-gl }} | |
run: | | |
brew install mesa mesa-glu freeglut | |
ln -s /usr/local/include/GL /usr/local/include/OpenGL | |
ln -s /usr/local/include/GL /usr/local/include/GLUT | |
# ln -s /usr/local/lib/libGL.dylib /usr/local/lib/libOpenGL.dylib | |
# find /usr/local/lib/ -iname '*gl*.dylib' | |
# The Apple-provided OpenAL is deprecated as of macOS 10.15 | |
- name: Optionally install homebrewed OpenAL | |
if: ${{ matrix.homebrew-al }} | |
run: brew install openal-soft | |
- name: Check out repository | |
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f #v4.1.3 | |
with: | |
fetch-depth: 2 | |
submodules: false | |
# Ensure PRs are built against the PR Head as opposed to the merge commit | |
- name: Conditionally relocate to PR HEAD | |
if: github.event.pull_request | |
run: git checkout HEAD^2 | |
- name: Build it | |
env: | |
MY_OS_NAME: macos | |
COMPILER: ${{ matrix.compiler }} | |
FLAGS: -DCMAKE_FIND_FRAMEWORK=LAST | |
OPENALDIR: "/usr/local/opt/openal-soft" | |
run: script/cibuild $FLAGS | |
- name: Test | |
working-directory: ${{github.workspace}}/build | |
env: | |
GTEST_OUTPUT: xml | |
GTEST_COLOR: 1 | |
run: ctest -V | |
- name: Upload test results | |
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 #v4.3.3 | |
if: failure() | |
with: | |
name: test_results_xml | |
path: ${{github.workspace}}/build/test-results/**/*.xml |