-
Notifications
You must be signed in to change notification settings - Fork 9
39 lines (33 loc) · 850 Bytes
/
macos.yml
File metadata and controls
39 lines (33 loc) · 850 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
name: MacOS
on: [push, pull_request, release]
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@v2
- 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