forked from njoy/NJOY2016
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 1.03 KB
/
ContinuousIntegration.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
# GitHub workflow to enable continuous integratoin
name: Continuous Integration
# This workflow is triggered on pushes and pull requests to the repository.
# This workflow will also run each Monday on the default branch (i.e. master)
on:
schedule:
- cron: '0 0 * * 1'
push:
branches: '**'
pull_request:
branches:
- 'master'
- 'develop'
jobs:
build:
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ ubuntu-20.04, macos-11 ]
build_type: [ Debug, Release ]
vFortran: [ gfortran-9 ]
steps:
- name: which gfortran
run: |
which ${{matrix.vFortran}}
${{matrix.vFortran}} --version
- uses: actions/checkout@v2
- name: mkdir bin
run: mkdir bin
- name: cmake
run: cmake -D CMAKE_Fortran_COMPILER=`which ${{matrix.vFortran}}` -D CMAKE_BUILD_TYPE=${{matrix.build_type}} ..
working-directory: ./bin
- name: make
run: make -j2
working-directory: ./bin
- name: ctest
run: ctest -j2
working-directory: ./bin