-
Notifications
You must be signed in to change notification settings - Fork 1.8k
42 lines (42 loc) · 1.25 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
name: Mac OS build
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: [macos-11]
shortname: default-11
- os: [macos-12]
shortname: default-12
- os: [macos-13]
shortname: default-13
steps:
- uses: actions/checkout@v3
- name: Setup
run: |
brew install automake boost ccache
- name: Cache
uses: hendrikmuhs/[email protected]
with:
key: macos-ci-build-${{ matrix.shortname }}-${{ github.ref }}
restore-keys: |
macos-ci-build-${{ matrix.shortname }}-${{ github.ref }}
macos-ci-build-${{ matrix.shortname }}-refs/heads/master
macos-ci-build-${{ matrix.shortname }}-
- name: Compiler version
run: |
clang --version
- name: Build
run: |
./autogen.sh
./configure --disable-shared ${{ matrix.configureflags }} CC="ccache clang" CXX="ccache clang++" CXXFLAGS="-O2 -g0 -Wall -Werror ${{ matrix.cxxflags }}"
make -j 3
- name: Run tests
run: |
./test-suite/quantlib-test-suite --log_level=message
- name: Run examples
run: |
make -C Examples check-examples