Skip to content

Commit

Permalink
Update make.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
AWehrhahn authored Dec 2, 2020
1 parent c007189 commit bf25177
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/make.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,13 @@ jobs:
packages: automake libtool
cxx: gcc-9
f77: gfortran-9
outouts: lib share
outputs: lib share
- name: macos-f2c
runs_on: macos-latest
packages: automake libtool
cxx: gcc-9
outputs: lib share

# The CMake configure and build commands are platform agnostic and should work equally
# well on Windows or Mac. You can convert this to a matrix build if you need
# cross-platform coverage.
Expand All @@ -84,20 +90,20 @@ jobs:
if: matrix.runs_on == 'macos-latest'
run: brew install ${{ matrix.packages }}

- name: Install F2C
if: matrix.name == 'macos-f2c'
run: brew tap opm/opm libf2c

- name: Run F2C
if: matrix.name == 'ubuntu-f2c' || matrix.name == 'windows-f2c'
if: matrix.name == 'ubuntu-f2c' || matrix.name == 'windows-f2c' || matrix.name == 'macos-f2c'
run: f2c -w -a -C++ -Nn1604 -Nq1200 -dsrc/eos/ src/eos/*.f & f2c -w -a -C++ -dsrc/sme/ src/sme/*.f

- name: Replace Makefile.am
if: matrix.name == 'ubuntu-f2c' || matrix.name == 'windows-f2c'
if: matrix.name == 'ubuntu-f2c' || matrix.name == 'windows-f2c' || matrix.name == 'macos-f2c'
run: rm Makefile.am && mv Makefile_f2c.am Makefile.am

- name: Echo site details
if: matrix.name == 'windows-gfortran'
run: export LDFLAGS=-L$(x86_64-w64-mingw32-gfortran --print-file-name=)

- name: Copy F2C headers
if: matrix.name == 'windows-f2c'
if: matrix.name == 'windows-f2c'
run: cp /usr/include/f2c.h src/eos/ & cp /usr/include/f2c.h src/sme/

- name: Run Bootstrap and Configure
Expand Down

0 comments on commit bf25177

Please sign in to comment.