-
Notifications
You must be signed in to change notification settings - Fork 50
52 lines (46 loc) · 1.04 KB
/
actions.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
name: actions
on:
push:
branches:
- master
pull_request:
branches:
- master
schedule:
- cron: '0 6 * * *'
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# windows-latest is disabled due to cmake failure:
# https://github.com/awvwgk/setup-fortran/issues/6
os: [ubuntu-22.04, macos-12]
gcc_version: [11, 12]
compiler: ['make', 'cmake']
steps:
- uses: actions/checkout@v3
- uses: awvwgk/setup-fortran@main
id: setup-fortran
with:
compiler: gcc
version: ${{ matrix.gcc_version }}
- name: Compile using make
if: matrix.compiler == 'make'
run: |
./configure
make
shell: bash
- name: Compile using cmake
if: matrix.compiler == 'cmake'
run: |
cmake ./ && cmake --build ./
shell: bash
- name: Run
run: |
cd testing
../packmol < water_box.inp
../packmol < ieee_signaling.inp
cd ..
shell: bash