correct version number #21
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: tests | |
on: | |
push: | |
branches: [ master, amrvac3.2 ] | |
pull_request: | |
branches: [ master, amrvac3.2 ] | |
jobs: | |
COMPILE: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
compiler: [gfortran-9, gfortran-10, gfortran-11] | |
include: | |
- os: ubuntu-20.04 | |
compiler: gfortran-8 # not longer supported for ubuntu-22 | |
- os: macos-11 | |
compiler: gfortran-11 | |
gcc_name: gcc@11 | |
- os: macos-12 | |
compiler: gfortran-11 | |
gcc_name: gcc@11 | |
env: | |
FC: ${{ matrix.compiler }} | |
AMRVAC_DIR: ${GITHUB_WORKSPACE} | |
runs-on: ${{ matrix.os }} | |
name: compile / ${{ matrix.os }} / ${{ matrix.compiler }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: install dependencies | |
run: | | |
if [[ $RUNNER_OS == "Linux" ]]; then | |
sudo apt-get update | |
sudo apt-get install ${{ matrix.compiler }} | |
sudo apt-get install openmpi-bin libopenmpi-dev | |
else | |
brew install ${{ matrix.gcc_name }} | |
brew install open-mpi | |
ln -s /usr/local/bin/${{ matrix.compiler }} /usr/local/bin/gfortran | |
fi | |
- name: check compiler versions | |
run: | | |
whereis ${FC} | |
${FC} --version | |
gfortran --version | |
mpirun --version | |
mpif90 --version | |
- name: check code dependencies | |
run: | | |
cd src | |
bash update_dependencies.sh --verbose || exit 1 | |
- name: compile 1D | |
run: | | |
cd lib | |
make 1d ARCH=debug -j 4 || exit 1 | |
- name: run 1D rho test | |
run: | | |
cd tests | |
bash test_runner.sh rho/auto_1d | |
GNU: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
FC_compiler: [gfortran-9] | |
CC_compiler: [gcc-9] | |
suite: [rho, hd, rhd, mhd, rd, ard, mg, twofl] | |
env: | |
CC: ${{ matrix.CC_compiler }} | |
FC: ${{ matrix.FC_compiler }} | |
AMRVAC_DIR: ${GITHUB_WORKSPACE} | |
runs-on: ${{ matrix.os }} | |
needs: COMPILE | |
name: ${{ matrix.suite }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install openmpi-bin libopenmpi-dev | |
- name: check compiler versions | |
run: | | |
${FC} --version | |
${CC} --version | |
mpirun --version | |
- name: check code dependencies | |
run: | | |
cd src | |
bash update_dependencies.sh --verbose || exit 1 | |
- name: compile | |
run: | | |
cd lib | |
make clean | |
make -j 2 || exit 1 | |
- name: run tests | |
run: | | |
cd tests | |
bash test_runner.sh ${{ matrix.suite }} | |
INTEL: | |
runs-on: ubuntu-latest | |
name: compile / Intel | |
env: | |
FC: ifort | |
CC: icc | |
AMRVAC_DIR: ${GITHUB_WORKSPACE} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: setup for Intel oneAPI | |
# see https://www.intel.com/content/www/us/en/develop/documentation/installation-guide-for-intel-oneapi-toolkits-linux | |
run: | | |
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | |
sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | |
rm GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | |
sudo add-apt-repository -y "deb https://apt.repos.intel.com/oneapi all main" | |
- name: install Intel oneAPI | |
run: | | |
sudo apt update | |
sudo apt-get -y upgrade | |
sudo apt-get install intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic | |
#sudo apt-get install intel-oneapi-dpcpp-cpp | |
sudo apt-get install intel-oneapi-compiler-fortran | |
sudo apt-get install intel-oneapi-mpi | |
sudo apt-get install intel-oneapi-mpi-devel | |
source /opt/intel/oneapi/setvars.sh | |
printenv >> $GITHUB_ENV | |
- name: check compiler versions | |
run: | | |
${FC} --version | |
#${CC} --version | |
mpirun --version | |
mpiifx --version | |
- name: check code dependencies | |
run: | | |
cd src | |
bash update_dependencies.sh --verbose || exit 1 | |
- name: compile 1D | |
run: | | |
cd lib | |
make 1d -j 4 ARCH=inteldebug | |
- name: compile 2D | |
run: | | |
cd lib | |
make 2d -j 4 ARCH=inteldebug | |
- name: compile 3D | |
run: | | |
cd lib | |
make 3d -j 4 ARCH=inteldebug |