-
Notifications
You must be signed in to change notification settings - Fork 4
59 lines (57 loc) · 1.63 KB
/
ci-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
51
52
53
54
55
56
57
58
59
name: ci-macos
on:
push:
paths:
- '**'
- '!COPYING'
- '!COPYING-asm'
- '!INSTALL'
- '!**.md'
- '!.clang*'
- '!.gitignore'
- '!.gitattributes'
- '!.github/workflows/*'
- '.github/workflows/ci-macos.yml'
pull_request:
paths:
- '**'
- '!COPYING'
- '!COPYING-asm'
- '!INSTALL'
- '!**.md'
- '!.clang*'
- '!.gitignore'
- '!.gitattributes'
- '!.github/workflows/*'
- '.github/workflows/ci-macos.yml'
jobs:
ci-macos:
runs-on: macos-latest
strategy:
matrix:
generator: [make, ninja, xcode]
include:
- generator: make
cmake_generator: "Unix Makefiles"
- generator: ninja
cmake_generator: "Ninja"
- generator: xcode
cmake_generator: "Xcode"
steps:
- name: Install dependencies
run: |
brew install boost make ninja
- name: Checkout code
uses: actions/checkout@master
- name: Configure
run: |
export LDFLAGS="-L$(brew --prefix boost)/lib $LDFLAGS"
export CFLAGS="-I$(brew --prefix boost)/include $CFLAGS"
export CXXFLAGS="-I$(brew --prefix boost)/include $CXXFLAGS"
cmake -S . -B build -G "${{ matrix.cmake_generator }}"
- name: Build
run: |
export LDFLAGS="-L$(brew --prefix boost)/lib $LDFLAGS"
export CFLAGS="-I$(brew --prefix boost)/include $CFLAGS"
export CXXFLAGS="-I$(brew --prefix boost)/include $CXXFLAGS"
cmake --build build -j2