This repository was archived by the owner on Jul 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (41 loc) · 1.24 KB
/
macos.yml
File metadata and controls
51 lines (41 loc) · 1.24 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
51
name: macOS
on:
push:
branches:
- master
- dev
- evilenzo_branch
pull_request:
branches:
- master
- dev
- evilenzo_branch
release:
types: [ published, created, edited ]
jobs:
Build:
strategy:
matrix:
compiler: [ g++, clang++ ]
BUILD_TYPE: [ Release, Debug ]
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Install boost
run: brew install boost
- name: CMake configure
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{ matrix.BUILD_TYPE }} -DCMAKE_CXX_COMPILER=${{ matrix.compiler }}
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{ matrix.BUILD_TYPE }}
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -C ${{ matrix.BUILD_TYPE }} -VV -j
- name: Install
working-directory: ${{github.workspace}}/build
run: sudo make install
- name: Test Installation
working-directory: ${{github.workspace}}/build/test/cmake
run: cmake ./
- name: Test README Example
working-directory: ${{github.workspace}}/build/test/example
run: cmake ./ && cmake --build ./ && ./MyProject