-
Notifications
You must be signed in to change notification settings - Fork 28
42 lines (35 loc) · 978 Bytes
/
tests.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
name: Run Tests
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure CMake ADOL-C
run: >
cmake
-DCMAKE_CXX_COMPILER=g++
-DCMAKE_C_COMPILER=gcc
-DCMAKE_BUILD_TYPE=Release
-S ${{ github.workspace }}
-DCMAKE_INSTALL_PREFIX=${{ github.workspace }}
- name: Build ADOLC
run: |
make
make install
- name: Install Boost
shell: bash
run: |
sudo apt-get install libboost-all-dev
- name: Build and Run Boost-Test
shell: bash
run: |
cd ADOL-C/boost-test
mkdir build && cd build
cmake ../ -DADOLC_BASE=${{ github.workspace }}
make
./boost-test-adolc