Skip to content

mascos-12 is deprecated and macos-15 has been added. #3032

mascos-12 is deprecated and macos-15 has been added.

mascos-12 is deprecated and macos-15 has been added. #3032

Workflow file for this run

name: macOS CI
on:
push:
pull_request:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
strategy:
matrix:
os: [macos-13, macos-14, macos-15]
runs-on: ${{ matrix.os }}
steps:
- name: Make sure Xcode 15.2 is used on macOS 13 as the default /Application/Xcode.app
shell: bash
run: |
sudo mv /Applications/Xcode.app /Applications/Xcode.app-
sudo ln -s /Applications/Xcode_15.2.app /Applications/Xcode.app
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
if: matrix.os == 'macos-13'
#- name: Make sure Xcode 16.2 is used on macOS 14 as the default /Application/Xcode.app
# shell: bash
# run: |
# sudo mv /Applications/Xcode.app /Applications/Xcode.app-
# sudo ln -s /Applications/Xcode_16.2.app /Applications/Xcode.app
# sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
# if: matrix.os == 'macos-14'
- name: Install dependencies
run: |
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
brew install libomp open-mpi [email protected] wget cmake ninja qt@5 libgit2
- name: Checkout BioDynaMo
uses: actions/checkout@v4
with:
fetch-depth: 0
# - name: Cache Third Party Packages
# uses: actions/cache@v4
# with:
# path: build/third_party
# key: ${{ runner.os }}-third-party-${{ hashFiles('cmake/external/SHA256Digests.cmake') }}
- name: Build BioDynaMo
shell: bash
run: |
cmake -G Ninja \
-Dopencl=OFF \
-Dparaview=ON \
-Dbenchmark=ON \
-Dlibgit2=ON \
-DCMAKE_BUILD_TYPE=Release \
-B build
cmake --build build --parallel --config Release
- name: Unit tests BioDynaMo
shell: bash
working-directory: build
run: |
. bin/thisbdm.sh
root --version
root -config
bdm config
ninja run-unit-tests