-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (40 loc) · 1.12 KB
/
continuous-integration.yml
File metadata and controls
45 lines (40 loc) · 1.12 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
name: Build & test
on: [push]
jobs:
build-ubuntu:
name: Ubuntu build
runs-on: ubuntu-latest
strategy:
matrix:
shared: ['ON', 'OFF']
buildtype: ['Debug', 'Release']
steps:
- uses: actions/checkout@v1
- name: Prepare
run: mkdir build
- name: Configure
working-directory: build
run: cmake ${GITHUB_WORKSPACE} -DBUILD_SHARED_LIBS=${{ matrix.shared }} -DCMAKE_BUILD_TYPE=${{ matrix.buildtype }} -DBUILD_TESTING=ON
- name: Build
working-directory: build
run: cmake --build .
- name: Test
working-directory: build
run: ctest
build-windows:
name: Windows build
runs-on: windows-latest
strategy:
matrix:
shared: ['ON', 'OFF']
buildtype: ['Debug', 'Release']
steps:
- uses: actions/checkout@v1
- name: Prepare
run: mkdir build
- name: Configure
working-directory: build
run: cmake $env:GITHUB_WORKSPACE -DBUILD_SHARED_LIBS=${{ matrix.shared }} -DBUILD_TESTING=ON
- name: Build
working-directory: build
run: cmake --build . --config ${{ matrix.buildtype }}