Update from https://github.com/fortuno-repos/fortuno/commit/186c91596… #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
workflow_dispatch: | |
env: | |
INTERFACE: mpi | |
jobs: | |
# | |
# Test Fortuno in various system configurations | |
# | |
fortuno-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check-out code | |
uses: actions/checkout@v4 | |
- name: Setup Intel compiler | |
uses: rscohn2/setup-oneapi@v0 | |
with: | |
# Restricting to 2024 as fpm fails to build MPI-programs with oneAPI 2025.0 | |
components: | | |
ifx@2024.2.1 | |
icx@2024.2.1 | |
impi@2021.13.1 | |
- name: Setup Intel environment | |
run: | | |
source /opt/intel/oneapi/setvars.sh | |
printenv >> ${GITHUB_ENV} | |
echo "FPM_FC=ifx" >> ${GITHUB_ENV} | |
# Overriding default FPM_FFLAGS as default setting contains '-standard-semantics' | |
# which is incompatible with intel MPI. | |
echo "FPM_FFLAGS='-warn all -check all,nouninit -error-limit 1 -O0 -g -stand f18 -traceback'" >> ${GITHUB_ENV} | |
- name: Setup build tools | |
run: | | |
pip install fpm | |
- name: Test fpm export | |
run: | | |
fpm run -C test/export/${INTERFACE} --runner 'mpirun -n 2' testapp testapp_fpp |