test multiple XIOS versions #4
Workflow file for this run
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: build-test-XIOS | |
on: [push, pull_request] | |
jobs: | |
build_test: | |
name: build XIOS and run tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
version: [XIOS/trunk@2252, XIOS2/trunk, XIOS3/trunk] | |
steps: | |
# Check out repository branch | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
sudo apt update | |
sudo apt -yq install subversion | |
sudo apt -yq install $(<dependencies) | |
- name: clone and build XIOS | |
run: | | |
svn co http://forge.ipsl.jussieu.fr/ioserver/svn/${{ matrix.version }} XIOS | |
cp arch/* XIOS/arch/ | |
cd XIOS | |
if [ ${{ matrix.version }} == 'XIOS3/trunk' ]; then | |
patch -p0 < ../patches/xios3/revert_svn2517_transport.patch | |
sed -i 's/<variable_group id="parameters" >/<variable_group id="parameters" > <variable id="transport_protocol" type="string" >p2p<\/variable>/g' generic_testcase/iodef.xml | |
cat generic_testcase/iodef.xml | |
fi | |
./make_xios --job 2 --arch GCC_LINUX_APT | |
cd .. | |
shell: bash | |
- name: run generic | |
run: | | |
cd XIOS/generic_testcase | |
ln -s ../bin/generic_testcase.exe | |
ln -s ../bin/xios_server.exe | |
sed -i 's/nb_proc_atm=4/nb_proc_atm=1/g' param.def | |
mpiexec -n 1 ./generic_testcase.exe : -n 1 ./xios_server.exe | |
cd ../.. |