-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (40 loc) · 1.06 KB
/
macos-unit.yml
File metadata and controls
50 lines (40 loc) · 1.06 KB
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
42
43
44
45
46
47
48
49
50
name: "Unit tests: macOS"
on:
push:
branches:
- main
pull_request:
branches:
- '**'
workflow_dispatch:
jobs:
build-and-test:
name: Unit tests on macOS
runs-on: ${{ matrix.os }}
if: ${{ github.event_name == 'pull_request' || github.repository == 'PalamaraLab/ASMC' }}
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
include:
- os: macos-15
steps:
- name: checkout repo & submodules
uses: actions/checkout@v5
with:
submodules: true
fetch-depth: 0
- name: install dependencies
run: |
brew install boost zlib
- name: make build directory
run: mkdir -p build_dir
- name: cmake configure
run: cmake ..
working-directory: build_dir
- name: cmake build
run: cmake --build . --parallel 3 --target ASMC_unit_tests
working-directory: build_dir
- name: cmake test
run: ctest -j2 -R Asmc_unit_tests --output-on-failure
working-directory: build_dir