From c1d75dcdf59749e37b0df0b32aaa35c5e107ff2f Mon Sep 17 00:00:00 2001 From: Ansgar Wehrhahn <31626864+AWehrhahn@users.noreply.github.com> Date: Thu, 22 Jul 2021 12:39:19 +0200 Subject: [PATCH] fix workflow --- .github/workflows/make.yml | 16 +++++++++------- Makefile.am | 10 ++-------- Makefile_sequential.am => Makefile_parallel.am | 12 ++++++++---- 3 files changed, 19 insertions(+), 19 deletions(-) rename Makefile_sequential.am => Makefile_parallel.am (82%) diff --git a/.github/workflows/make.yml b/.github/workflows/make.yml index d8a92ac..1f4310f 100644 --- a/.github/workflows/make.yml +++ b/.github/workflows/make.yml @@ -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: @@ -128,10 +128,12 @@ 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 @@ -139,6 +141,7 @@ jobs: 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 @@ -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 @@ -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 diff --git a/Makefile.am b/Makefile.am index 0f3fd8e..c38853e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 \ diff --git a/Makefile_sequential.am b/Makefile_parallel.am similarity index 82% rename from Makefile_sequential.am rename to Makefile_parallel.am index a200bbc..0f3fd8e 100644 --- a/Makefile_sequential.am +++ b/Makefile_parallel.am @@ -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 \