-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (48 loc) · 1.41 KB
/
linux_gnu.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
name: Linux GNU
# triggered events (push, pull_request) for the master branch
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
ubuntu_build:
name: Ubuntu GNU Build
# Run on ubuntu-latest
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout repository
uses: actions/checkout@v2
# Install OpenMPI
- name: Install OpenMPI
run: sudo apt-get install openmpi-bin libopenmpi-dev -y
# Test debug mode
- name: Build gf debug
run: |
cd ref
rm -rf build
mkdir build
cd build
#export OMP_NUM_THREADS=4
export CC=gcc
export FC=gfortran
cmake -DCMAKE_BUILD_TYPE=debug -DENABLE_GPU=off ..
make
ctest --output-on-failure
# Test release mode
- name: Build gf release
run: |
cd ref
rm -rf build
mkdir build
cd build
#export OMP_NUM_THREADS=4
export CC=gcc
export FC=gfortran
cmake -DCMAKE_BUILD_TYPE=release -DENABLE_GPU=off ..
make
ctest --output-on-failure