Skip to content

MacOS precision matrix (#738) #60

MacOS precision matrix (#738)

MacOS precision matrix (#738) #60

Workflow file for this run

name: build-macos
on:
workflow_dispatch:
push:
pull_request:
jobs:
build:
strategy:
matrix:
prec: [float, double, float\;double]
os: [macos-13, macos-14]
runs-on: ${{matrix.os}}
steps:
- name: CPU Info
run: |
sysctl -n machdep.cpu.brand_string
sysctl -n machdep.cpu.features
(echo "Number of Cores:"; sysctl -n machdep.cpu.core_count) |tr '\n' '\t' && echo ''
- name: Git checkout
uses: actions/checkout@v4
- name: Makedir
working-directory: ${{runner.workspace}}/asgard
run: cmake -E make_directory build
- name: Configure Default
working-directory: ${{runner.workspace}}/asgard/build
run: cmake -DCMAKE_BUILD_TYPE=Release -DASGARD_RECOMMENDED_DEFAULTS=ON -DASGARD_USE_PCH=ON -DASGARD_PRECISIONS=${{matrix.prec}} ../
- name: Build
working-directory: ${{runner.workspace}}/asgard/build
run: make -j VERBOSE=1
- name: Test
working-directory: ${{runner.workspace}}/asgard/build
run: ctest --output-on-failure
- name: Show Log
if: failure()
working-directory: ${{runner.workspace}}/asgard/build/Testing/Temporary
run: cat LastTest.log