-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (30 loc) · 936 Bytes
/
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
name: Test
on:
push:
branches:
- 'master'
permissions:
contents: write
env:
BUILD_TYPE: Release
jobs:
test_linux_x86-64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Packages
run: sudo apt install -y libboost-dev libeigen3-dev
- name: Build Libint
run: ./script/libint.sh
- name: Configure Acorn
run: cmake -B build -DBUILD_TESTING=ON -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_CXX_COMPILER=g++
- name: Generate the Header Only Library
run: ./script/headeronly.sh > bin/acorn.h
- name: Build Acorn
run: |
export CPLUS_INCLUDE_PATH="$PWD/libint/install/include:$CPLUS_INCLUDE_PATH"
export LIBRARY_PATH="$PWD/libint/install/lib:$LIBRARY_PATH"
cmake --build build --parallel 2
- name: Run Tests
working-directory: build
run: ctest --verbose