Skip to content

Commit

Permalink
fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
AWehrhahn committed Jul 22, 2021
1 parent 27fef97 commit c1d75dc
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/make.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ jobs:
- name: gfortran
container: manylinux2014_x86_64
compiler: gfortran
makefile: Makefile_sequential.am
makefile: Makefile.am
- name: gfortran-parallel
container: manylinux2014_x86_64
compiler: gfortran
makefile: Makefile.am
makefile: Makefile_parallel.am
# F2C fails the test on manylinux for some reason , f2c]

container:
Expand Down Expand Up @@ -128,17 +128,20 @@ jobs:
runs_on: ubuntu-latest
packages: gfortran python3-dev
outputs: lib share
makefile: Makefile.am
- name: ubuntu-f2c
runs_on: ubuntu-latest
packages: f2c
outputs: lib share python3-dev
makefile: Makefile_f2c.am
- name: windows-gfortran
runs_on: ubuntu-latest
packages: gfortran mingw-w64 mingw-w64-tools mingw-w64-common gfortran-mingw-w64 gfortran-mingw-w64-x86-64 gcc-mingw-w64 gcc-mingw-w64-x86-64 g++-mingw-w64 g++-mingw-w64-x86-64 python3-dev
cxx: x86_64-w64-mingw32-gcc
f77: x86_64-w64-mingw32-gfortran
config_flags: --build=x86_64-pc-linux-gnu --host=x86_64-w64-mingw32
outputs: bin share
makefile: Makefile.am
# F2C doesn't work for Windows, use gfortran instead
# will figure this out when possible
# - name: windows-f2c
Expand All @@ -153,6 +156,7 @@ jobs:
cxx: gcc-9
f77: gfortran-9
outputs: lib share
makefile: Makefile_mac.am
# F2C also fails on MacOSX, because the F2C library is difficult to install
#- name: macos-f2c
# runs_on: macos-latest
Expand Down Expand Up @@ -187,13 +191,11 @@ jobs:
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.makefile != 'Makefile.am'
run: |
rm Makefile.am
mv Makefile_f2c.am Makefile.am
rm cython/setup.py
mv cython/setup-f2c.py cython/setup.py
mv ${{ matrix.makefile }} Makefile.am
- name: Replace Makefile.am
if: matrix.name == 'macos-f2c'
run: rm Makefile.am && mv Makefile_mac.am Makefile.am
Expand Down
10 changes: 2 additions & 8 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,8 @@ CXXLD = $(F77)
lib_LTLIBRARIES = libsme.la
libsme_la_SOURCES = \
src/sme/platform.h \
src/sme/sme_synth_parallel.h \
src/sme/sme_synth_parallel.cpp \
src/sme/sme_idl_interface.h \
src/sme/sme_idl_interface.cpp \
src/sme/sme_cython_interface.h \
src/sme/sme_cython_interface.cpp \
src/sme/sme_parallel_interface.h \
src/sme/sme_parallel_interface.cpp \
src/sme/sme_synth_faster.h \
src/sme/sme_synth_faster.cpp \
src/eos/eos.f \
src/eos/eos_eqns.f \
src/eos/eos_math_special.f \
Expand Down
12 changes: 8 additions & 4 deletions Makefile_sequential.am → Makefile_parallel.am
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@ CXXLD = $(F77)
lib_LTLIBRARIES = libsme.la
libsme_la_SOURCES = \
src/sme/platform.h \
src/sme/sme_synth_faster.h \
src/sme/sme_synth_faster.cpp \
src/sme/sme_python_bridge.h \
src/sme/sme_python_bridge.cpp \
src/sme/sme_synth_parallel.h \
src/sme/sme_synth_parallel.cpp \
src/sme/sme_idl_interface.h \
src/sme/sme_idl_interface.cpp \
src/sme/sme_cython_interface.h \
src/sme/sme_cython_interface.cpp \
src/sme/sme_parallel_interface.h \
src/sme/sme_parallel_interface.cpp \
src/eos/eos.f \
src/eos/eos_eqns.f \
src/eos/eos_math_special.f \
Expand Down

0 comments on commit c1d75dc

Please sign in to comment.