-
Notifications
You must be signed in to change notification settings - Fork 16
67 lines (59 loc) · 1.61 KB
/
test.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
name: CI tests
on:
- push
- pull_request
jobs:
build:
name: clasp tests on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
build_threads: ['On']
build_type: ['Debug']
include:
- os: 'ubuntu-latest'
build_threads: 'On'
generator: 'Ninja'
- os: 'macos-latest'
generator: 'Ninja'
- os: 'windows-latest'
generator: 'Visual Studio 17 2022'
- os: 'ubuntu-latest'
build_threads: 'Off'
generator: 'Ninja'
build_type: 'Debug'
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: setup (ubuntu)
if: ${{ matrix.os == 'ubuntu-latest' }}
run:
sudo apt install ninja-build
- name: setup (macos)
if: ${{ matrix.os == 'macos-latest' }}
run: |
brew update
brew install ninja
- name: Configure
run: >
cmake
-G "${{ matrix.generator }}"
-B "${{github.workspace}}/build"
-DCMAKE_BUILD_TYPE="${{matrix.build_type}}"
-DCLASP_BUILD_TESTS="On"
-DCLASP_BUILD_WITH_THREADS="${{matrix.build_threads}}"
-DLIB_POTASSCO_BUILD_TESTS="On"
-DCMAKE_CXX_STANDARD="14"
- 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}}"