-
Notifications
You must be signed in to change notification settings - Fork 15
57 lines (47 loc) · 1.78 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
# SPDX-FileCopyrightText: 2021 Philipp Basler, Margarete Mühlleitner and Jonas Müller
#
# SPDX-License-Identifier: GPL-3.0-or-later
name: Ubuntu unit tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master, develop ]
workflow_dispatch:
jobs:
ubuntu-tests-fullSetup:
runs-on: ubuntu-20.04
if: "!contains(github.event.head_commit.message, 'skip-ci')"
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name : installPackages
run : sudo apt-get update && sudo apt-get install --no-install-recommends --yes libgsl-dev libeigen3-dev libnlopt-dev libnlopt-cxx-dev libboost-all-dev
- name: Get number of CPU cores
uses: SimenB/github-actions-cpu-cores@v2
id: cpu-cores
- name: cmake
run: mkdir build && cd build && cmake ..
- name: make
run: cd build && cmake --build . -j${{ steps.cpu-cores.outputs.count }}
- name: Test
run: cd build && ctest -j${{ steps.cpu-cores.outputs.count }} --output-on-failure
ubuntu-tests-NoNLopt:
runs-on: ubuntu-20.04
if: "!contains(github.event.head_commit.message, 'skip-ci')"
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name : installPackages
run : sudo apt-get update && sudo apt-get install --no-install-recommends --yes libgsl-dev libeigen3-dev libboost-all-dev
- name: Get number of CPU cores
uses: SimenB/github-actions-cpu-cores@v2
id: cpu-cores
- name: cmake
run: mkdir buildNoNLOPT && cd buildNoNLOPT && cmake ..
- name: make
run: cd buildNoNLOPT && cmake --build . -j${{ steps.cpu-cores.outputs.count }}
- name: Test
run: cd buildNoNLOPT && ctest -j${{ steps.cpu-cores.outputs.count }} --output-on-failure