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 c09a3ce commit edefa15
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/make.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ jobs:
f77: x86_64-w64-mingw32-gfortran
config_flags: --build=x86_64-pc-linux-gnu --host=x86_64-w64-mingw32
outputs: bin share
- name: windows-f2c
runs_on: ubuntu-latest
packages: f2c mingw-w64 mingw-w64-tools mingw-w64-common gcc-mingw-w64 gcc-mingw-w64-x86-64 g++-mingw-w64 g++-mingw-w64-x86-64
cxx: x86_64-w64-mingw32-gcc
config_flags: --build=x86_64-pc-linux-gnu --host=x86_64-w64-mingw32
outputs: bin 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
Expand All @@ -69,11 +75,11 @@ jobs:
run: sudo apt-get install -y ${{ matrix.packages }}

- name: Run F2C
if: matrix.name == 'ubuntu-f2c'
if: matrix.name == 'ubuntu-f2c' || matrix.name == 'windows-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'
if: matrix.name == 'ubuntu-f2c' || matrix.name == 'windows-f2c'
run: rm Makefile.am && mv Makefile_f2c.am Makefile.am

- name: Echo site details
Expand Down

0 comments on commit edefa15

Please sign in to comment.