-
Notifications
You must be signed in to change notification settings - Fork 9
41 lines (34 loc) · 860 Bytes
/
macos.yml
File metadata and controls
41 lines (34 loc) · 860 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: 🍎 MacOS
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
build:
name: ${{ matrix.config.name }} - Build and test
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- { name: "MacOS Latest", os: macos-latest, build_type: "Release" }
steps:
- name: Checkout atta
uses: actions/checkout@v4
- name: Install dependencies on macos
if: startsWith(matrix.config.os, 'macos')
run: |
brew install cmake
cmake --version
- name: Configure
run: |
mkdir build
cd build
cmake ..
- name: Build
run: cmake --build build --parallel --config ${{ matrix.config.build_type }}
- name: Test
run: ctest
working-directory: build