-
Notifications
You must be signed in to change notification settings - Fork 39
50 lines (40 loc) · 1.08 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
38
39
40
41
42
43
44
45
46
47
48
49
50
#
# macOS Workflow
#
# https://github.com/filipdutescu/modern-cpp-template/blob/master/.github/workflows
name: macOS
on:
push:
branches: [ release, next ]
pull_request:
branches: [ release, next ]
jobs:
build:
strategy:
fail-fast: false
matrix:
cxx_compiler:
- clang++
install_location:
- .local
runs-on: macos-latest
if: "!contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[skip ci macos]')"
steps:
- uses: actions/checkout@v3
- uses: lukka/get-cmake@latest
- name: Setup Cache
uses: actions/cache@v3
id: cache
with:
path: |
${{github.workspace}}/${{matrix.install_location}}
${{github.workspace}}/build/out
key: ${{runner.os}}-dependencies
- name: Build
run: |
export CXX="$(which "${{matrix.cxx_compiler}}")"
tool/build --verbose --no-run
- name: Test
run: |
export VERBOSE=1
tool/build --verbose --no-build