-
Notifications
You must be signed in to change notification settings - Fork 3
85 lines (77 loc) · 1.97 KB
/
build_cmake.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# Note differences between Unix variants and Windows shell when invoking
# multiple commands on one line - bash uses double ampersand, powershell
# uses semi-colon
#
# Currently there is duplication, specially for the dependency management,
# this should be refactored in the future
#
name: CMake Build Matrix
on:
push:
branches:
- master
- develop
jobs:
build-unixes:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- name: checkout
uses: actions/checkout@v2
with:
path: main
- name: checkout-utility-rack
uses: actions/checkout@v2
with:
repository: connectivecpp/utility-rack
path: utility-rack
- name: checkout-catch
uses: actions/checkout@v2
with:
repository: catchorg/Catch2
ref: master
path: Catch2
- name: checkout-asio
uses: actions/checkout@v2
with:
repository: chriskohlhoff/asio
ref: master
path: asio
- name: configure-cmake
run: mkdir build && cd build && cmake ../main
- name: build
run: cd build && cmake --build .
- name: unit-test
run: cd build && ctest
build-windows:
runs-on: windows-latest
steps:
- name: checkout
uses: actions/checkout@v2
with:
path: main
- name: checkout-utility-rack
uses: actions/checkout@v2
with:
repository: connectivecpp/utility-rack
path: utility-rack
- name: checkout-catch
uses: actions/checkout@v2
with:
repository: catchorg/Catch2
ref: master
path: Catch2
- name: checkout-asio
uses: actions/checkout@v2
with:
repository: chriskohlhoff/asio
ref: master
path: asio
- name: configure-cmake
run: mkdir build; cd build; cmake ../main
- name: build
run: cd build; cmake --build .
- name: unit-test
run: cd build; ctest -C "Debug"