Skip to content

Commit

Permalink
Create macos.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
KRM7 committed Dec 25, 2023
1 parent 23b0b4c commit cac77fe
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: macos

on: [push, pull_request]

jobs:
build:
runs-on: macos-13
strategy:
fail-fast: false
matrix:
build-type: [ Release, RelWithDebInfo ]
compiler: [
{ cxx: g++-12, pkgs: gcc@12 },
{ cxx: g++-13, pkgs: gcc@13 },
{ cxx: clang++, pkgs: llvm@15 }
]

defaults:
run:
working-directory: ${{ github.workspace }}/build

name: ${{ matrix.compiler.cxx }}, ${{ matrix.build-type }}

steps:
- name: checkout-repo
uses: actions/checkout@v3

- name: setup-compiler
run: brew install cmake ${{ matrix.compiler.pkgs }}

- name: setup-catch
env:
CXX: ${{ matrix.compiler.cxx }}
run: sudo bash ./install_catch.sh

- name: setup-build
env:
CXX: ${{ matrix.compiler.cxx }}
run: cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} -DBUILD_SHARED_LIBS=OFF

- name: build
run: cmake --build . --parallel 8

- name: run-tests
run: ctest --output-on-failure --schedule-random

- name: install
run: sudo cmake --install .

0 comments on commit cac77fe

Please sign in to comment.