Skip to content

Commit

Permalink
remove broken env command, add module loads to other steps
Browse files Browse the repository at this point in the history
  • Loading branch information
rem1776 authored Oct 30, 2023
1 parent cd27b5b commit 3a28fe4
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/parallelworks_autotools_intel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,29 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v2
# TODO env command doesn't seem to work in the runner
# if it was we'd be able not not module load every step
- name: Set up enviroment
run: | # writes env variables onto file to allow them to persist across steps
module load intel/${INTEL_VERSION} impi/${INTEL_VERSION} netcdf/${NC_VERSION} hdf5
echo "FC=`which mpiifort`" >> "$GITHUB_ENV"
echo "CC=`which mpiicc`" >> "$GITHUB_ENV"
echo "FCFLAGS=`nf-config --fflags`" >> "$GITHUB_ENV"
echo "CFLAGS=`nc-config --cflags`" >> "$GITHUB_ENV"
env >> "$GITHUB_ENV"
# env:
# CC: mpifc -fc=${{ matrix.compilers == 'intel-classic' && 'icc' || 'icx'}}
# FC: mpifc -fc=${{ matrix.compilers != 'intel-oneapi' && 'ifort' || 'ifx'}}
echo "LDFLAGS=`nc-config --libs`" >> "$GITHUB_ENV"
# env:
# CC: mpifc -fc=${{ matrix.compilers == 'intel-classic' && 'icc' || 'icx'}}
# FC: mpifc -fc=${{ matrix.compilers != 'intel-oneapi' && 'ifort' || 'ifx'}}
- name: Configure
run: autoreconf -if ./configure.ac && ./configure
run: |
module load intel/${INTEL_VERSION} impi/${INTEL_VERSION} netcdf/${NC_VERSION} hdf5
autoreconf -if ./configure.ac && ./configure
- name: Compile
run: make -j || make
run: |
module load intel/${INTEL_VERSION} impi/${INTEL_VERSION} netcdf/${NC_VERSION} hdf5
make -j || make
- name: Run test suite
run: make check TEST_VERBOSE=1
run: |
module load intel/${INTEL_VERSION} impi/${INTEL_VERSION} netcdf/${NC_VERSION} hdf5
make check TEST_VERBOSE=1

0 comments on commit 3a28fe4

Please sign in to comment.