-
-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (34 loc) · 1.21 KB
/
macos.yml
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
name: macos
on: [push]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ !(startsWith(github.ref, 'release/') || github.ref == 'develop')}}
jobs:
build:
strategy:
fail-fast: false
matrix:
target: [macos]
compiler: [clang]
include:
- benchmarks: OFF
tests: ON
arch: x86_64
name: build
runs-on: macos-12
steps:
- uses: actions/checkout@v1
with:
submodules: recursive
- uses: SimenB/github-actions-cpu-cores@v1
id: cpu-cores
- name: setup dependencies
run: python3 tools/generate_project_info.py
- name: initialize
run: cmake --preset=${{ matrix.target }}-release -DPE_BENCHMARKS=${{ matrix.benchmarks }} -DPE_TESTS=${{ matrix.tests }} -DCMAKE_C_COMPILER=$(brew --prefix llvm@15)/bin/clang -DCMAKE_CXX_COMPILER=$(brew --prefix llvm@15)/bin/clang++
- name: compile
run: cmake --build --preset=${{ matrix.target }}-release -j ${{ steps.cpu-cores.outputs.count }}
- name: test
if: ${{ matrix.tests == 'ON' }}
run: ./builds/${{ matrix.target }}/${{ matrix.arch }}/default/bin/tests --formatter compact --no-source
timeout-minutes: 20