-
Notifications
You must be signed in to change notification settings - Fork 15
86 lines (81 loc) · 2.17 KB
/
build2.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
86
name: build2
on: [push]
jobs:
# Job for building on Ubuntu
Ubuntu:
name: ${{matrix.config.name}}
runs-on: ${{matrix.config.os}}
strategy:
matrix:
config:
- name: Ubuntu gcc Debug
os: ubuntu-latest
build_type: Debug
compiler_cc: gcc
compiler_cxx: g++
- name: Ubuntu gcc Release
os: ubuntu-latest
build_type: Release
compiler_cc: gcc
compiler_cxx: g++
- name: Ubuntu clang Debug
os: ubuntu-latest
build_type: Debug
compiler_cc: clang
compiler_cxx: clang++
- name: Ubuntu clang Release
os: ubuntu-latest
build_type: Release
compiler_cc: clang
compiler_cxx: clang++
steps:
- uses: actions/checkout@v2
- uses: build2/setup-build2-github-action@master
- name: Configure
run: bdep init -C @${{ matrix.config.compiler_cc }} cc config.cxx=${{ matrix.config.compiler_cxx }}
- name: Build
run: b
- name: Test
run: b test
MacOS:
name: ${{matrix.config.name}}
runs-on: ${{matrix.config.os}}
strategy:
matrix:
config:
- name: MacOS clang Debug
os: macos-latest
build_type: Debug
- name: MacOS clang Release
os: macos-latest
build_type: Release
steps:
- uses: actions/checkout@v2
- uses: build2/setup-build2-github-action@master
- name: Configure
run: bdep init -C @clang
- name: Build
run: b
- name: Test
run: b test
Windows:
name: ${{matrix.config.name}}
runs-on: ${{matrix.config.os}}
strategy:
matrix:
config:
- name: Windows vc++ Debug
os: windows-latest
build_type: Debug
- name: Windows vc++ Release
os: windows-latest
build_type: Release
steps:
- uses: actions/checkout@v2
- uses: build2/setup-build2-github-action@master
- name: Configure
run: bdep init -C ../least-squares-cpp-msvc @msvc
- name: Build
run: b
- name: Test
run: b test