-
Notifications
You must be signed in to change notification settings - Fork 7
40 lines (36 loc) · 1.18 KB
/
build.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
name: build
on: [push, pull_request]
jobs:
build-linux:
runs-on: Ubuntu-20.04
strategy:
matrix:
compiler: ['g++-10', 'g++-9']
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
- name: Install
run: sudo apt-get install libboost-test-dev
- name: Configure
run: |
mkdir build
cd build
cmake .. -DCMAKE_CXX_COMPILER=${{ matrix.compiler }} -DSEPARATE_BUILD=ON -DUSE_OPENMP=ON -DBUILD_INTEGRATION_TEST=OFF -DFIND_BOOST=ON
- name: Build
run: |
cd build && cmake --build .
- name: Test
run: |
cd build && ctest --output-on-failure
- name: Examples
run: |
./bin/mjolnir ./input/sh3_AICG2+.toml
./bin/mjolnir ./input/ProteinG.toml
./bin/mjolnir ./input/GBP_switch.toml
./bin/mjolnir ./input/GBP_mbasin.toml
./bin/mjolnir ./input/dna_3SPN2.toml
./bin/mjolnir ./input/lennard-jones/lennard-jones.toml
./bin/mjolnir ./input/excluded-volume/excluded-volume.toml
./bin/mjolnir ./input/sh3_AICG2+_periodic.toml