Skip to content

write entire environment during set up #8

write entire environment during set up

write entire environment during set up #8

on: push
jobs:
intel-autotools:
runs-on: self-hosted
#strategy:
#matrix:
# io-flag: ["--disable-deprecated-io", "--enable-deprecated-io"]
# compilers: [ "intel", "intel-classic", "intel-oneapi"]
# target: [ "PROD", "DEBUG" ]
env:
NC_VERSION: 4.7.0
INTEL_VERSION: 2022.1.2
TEST_VERBOSE: 1
steps:
- name: checkout
uses: actions/checkout@v2
- 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" # set everything else currently set by lmod
# 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
- name: Compile
run: make -j || make
- name: Run test suite
run: make check TEST_VERBOSE=1