Skip to content

Commit

Permalink
add distinct build directory
Browse files Browse the repository at this point in the history
  • Loading branch information
rem1776 authored Nov 6, 2023
1 parent 16b425c commit 0af01e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/parallelworks_autotools_intel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ 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 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
Expand All @@ -25,13 +23,15 @@ jobs:
echo "FCFLAGS=`nf-config --fflags`" >> "$GITHUB_ENV"
echo "CFLAGS=`nc-config --cflags`" >> "$GITHUB_ENV"
echo "LDFLAGS=`nc-config --libs`" >> "$GITHUB_ENV"
# TODO env cmd doesn't work, workaround is to module load every step
# env >> "$GITHUB_ENV"
# env:
# CC: mpifc -fc=${{ matrix.compilers == 'intel-classic' && 'icc' || 'icx'}}
# FC: mpifc -fc=${{ matrix.compilers != 'intel-oneapi' && 'ifort' || 'ifx'}}
- name: Configure
run: |
module load intel/${INTEL_VERSION} impi/${INTEL_VERSION} netcdf/${NC_VERSION} hdf5
autoreconf -if ./configure.ac && ./configure
autoreconf -if ./configure.ac && mkdir build && cd build && ../configure
- name: Compile
run: |
module load intel/${INTEL_VERSION} impi/${INTEL_VERSION} netcdf/${NC_VERSION} hdf5
Expand Down

0 comments on commit 0af01e7

Please sign in to comment.