Skip to content

Maintenance: Updated Supported MacOS versions #683

Maintenance: Updated Supported MacOS versions

Maintenance: Updated Supported MacOS versions #683

Workflow file for this run

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-13
- macos-14
# M1 processor
compiler:
- clang
- gcc
steps:
# The following dependencies are already present within macos-* images:
# MacOS has a Developers Tools package from Apple that gets installed which
# provides some minimal functionality:
# XCode (which uses CLang/LLVM)
# git
- name: Install Base tooling via homebrew
run: brew install bash shtool
- name: Bootstrap MacOS
run: script/bootstrap-mac.sh
- name: Install dependencies using homebrew
run: brew install \
gcc \
cmake \
python3 \
boost-python3 \
jpeg \
libpng \
gtk+3 \
gtkglext \
sdl2 \
- name: Check out repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
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
# Note: it might be good to use a step to detect where OpenAL-Soft is
# installed and set it to a GHA variable that can be consumed below
- 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@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 #v3.1.3
if: failure()
with:
name: test_results_xml
path: ${{github.workspace}}/build/test-results/**/*.xml