-
Notifications
You must be signed in to change notification settings - Fork 250
53 lines (40 loc) · 1.42 KB
/
mcfost.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
name: mcfost
# Trigger on pull request, but only for the master branch
on:
pull_request:
branches: [ master ]
paths-ignore:
- 'docs/**'
- 'README.md'
env:
PREFIX: /opt/homebrew
MCFOST_GIT: 1
SYSTEM: gfortran
HOMEBREW_NO_INSTALL_CLEANUP: 1
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
mcfost:
# The type of runner that the job will run on
runs-on: macos-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: install gfortran compiler
uses: fortran-lang/setup-fortran@v1
with:
compiler: gcc
- name: Check gfortran version
run: gfortran --version
- name: tap the homebrew repo
run: brew tap danieljprice/all
- name: install mcfost with homebrew
run: brew install mcfost
- name: "Clone phantom"
uses: actions/checkout@v4
- name: "Compile phantom and link with mcfost"
run: make SETUP=disc MCFOST=yes PREFIX=${PREFIX} LIBCXX=-lc++
- name: "Compile phantomsetup and link with mcfost"
run: make SETUP=disc MCFOST=yes PREFIX=${PREFIX} LIBCXX=-lc++ setup
- name: "Compile phantomanalysis and link with mcfost"
run: make SETUP=disc MCFOST=yes PREFIX=${PREFIX} LIBCXX=-lc++ analysis
- name: "Compile phantommoddump and link with mcfost"
run: make SETUP=disc MCFOST=yes PREFIX=${PREFIX} LIBCXX=-lc++ moddump