MUL-137: Remove pymultio #247
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: old-ci | |
# Controls when the workflow will run | |
on: | |
# Trigger the workflow on all pushes, except on tag creation | |
push: | |
branches: | |
- '**' | |
tags-ignore: | |
- '**' | |
# Trigger the workflow on all pull requests | |
pull_request: ~ | |
# Allow workflow to be dispatched on demand | |
workflow_dispatch: ~ | |
env: | |
INSTALL_TOOLS: ${{ github.workspace }}/install-tools | |
CTEST_PARALLEL_LEVEL: 1 | |
CACHE_SUFFIX: v1 | |
jobs: | |
old-ci: | |
name: old-ci | |
strategy: | |
fail-fast: false # false: try to complete all jobs | |
matrix: | |
build_type: [Release] | |
name: | |
- linux gnu-10 | |
- linux gnu-12 | |
- linux clang-14 | |
include: | |
- name: linux gnu-10 | |
os: ubuntu-20.04 | |
compiler: gnu-10 | |
compiler_cc: gcc-10 | |
compiler_cxx: g++-10 | |
compiler_fc: gfortran-10 | |
caching: true | |
- name: linux gnu-12 | |
os: ubuntu-22.04 | |
compiler: gnu-12 | |
compiler_cc: gcc-12 | |
compiler_cxx: g++-12 | |
compiler_fc: gfortran-12 | |
caching: true | |
cmake_options: -DENABLE_OMP_CXX=OFF | |
- name: linux clang-14 | |
os: ubuntu-22.04 | |
compiler: clang-14 | |
compiler_cc: clang-14 | |
compiler_cxx: clang++-14 | |
compiler_fc: gfortran-12 | |
caching: true | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Set up Homebrew | |
id: set-up-homebrew | |
uses: Homebrew/actions/setup-homebrew@master | |
- name: Environment | |
run: | | |
echo "DEPS_DIR=${{ runner.temp }}/deps" >> $GITHUB_ENV | |
echo "CC=${{ matrix.compiler_cc }}" >> $GITHUB_ENV | |
echo "CXX=${{ matrix.compiler_cxx }}" >> $GITHUB_ENV | |
echo "FC=${{ matrix.compiler_fc }}" >> $GITHUB_ENV | |
if [[ "${{ matrix.os }}" =~ ^macos ]]; then | |
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 | |
export HOMEBREW_NO_AUTO_UPDATE=1 | |
export HOMEBREW_NO_INSTALL_CLEANUP=1 | |
echo "HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1" >> $GITHUB_ENV | |
echo "HOMEBREW_NO_AUTO_UPDATE=1" >> $GITHUB_ENV | |
echo "HOMEBREW_NO_INSTALL_CLEANUP=1" >> $GITHUB_ENV | |
brew install ninja | |
else | |
sudo apt-get update | |
sudo apt-get install ninja-build | |
fi | |
printenv | |
- name: Cache Dependencies | |
# There seems to be a problem with cached NVHPC dependencies, leading to SIGILL perhaps due to slightly different architectures | |
if: matrix.caching | |
id: deps-cache | |
uses: pat-s/[email protected] | |
with: | |
path: ${{ env.DEPS_DIR }} | |
key: deps-${{ matrix.os }}-${{ matrix.compiler }}-v1 | |
- name: Install Intel oneAPI compiler | |
if: contains( matrix.compiler, 'intel' ) | |
run: | | |
${INSTALL_TOOLS}/install-intel-oneapi.sh | |
source /opt/intel/oneapi/setvars.sh | |
printenv >> $GITHUB_ENV | |
echo "CACHE_SUFFIX=$(icc -dumpversion)" >> $GITHUB_ENV | |
- name: Install MPI | |
shell: bash -eux {0} | |
run: | | |
FCFLAGS=-fPIC CFLAGS=-fPIC FFLAGS=-fPIC ${INSTALL_TOOLS}/install-mpi.sh --mpi openmpi --prefix ${DEPS_DIR}/openmpi | |
[ -f ${DEPS_DIR}/openmpi/env.sh ] && source ${DEPS_DIR}/openmpi/env.sh | |
[ -z ${MPI_HOME+x} ] || echo "MPI_HOME=${MPI_HOME}" >> $GITHUB_ENV | |
- name: Install FFTW | |
shell: bash -eux {0} | |
run: | | |
${INSTALL_TOOLS}/install-fftw.sh --version 3.3.10 --prefix ${DEPS_DIR}/fftw | |
echo "FFTW_ROOT=${DEPS_DIR}/fftw" >> $GITHUB_ENV | |
- name: Set Build & Test Environment | |
run: | | |
# Only add --oversubscribe arg for openmpi | |
[ -z ${I_MPI_ROOT+x} ] && echo "MPI_ARGS=--oversubscribe" >> $GITHUB_ENV | |
# Add mpirun to path for testing | |
[ -z ${MPI_HOME+x} ] || echo "${MPI_HOME}/bin" >> $GITHUB_PATH | |
- name: Build & Test | |
id: build-test | |
uses: ecmwf-actions/build-package@v2 | |
with: | |
# lcov fails for gcc-12, re-enable self_coverage later | |
self_coverage: false | |
force_build: true | |
cache_suffix: '${{ matrix.build_type }}-${{ env.CACHE_SUFFIX }}' | |
recreate_cache: ${{ matrix.caching == false }} | |
dependencies: | | |
ecmwf/ecbuild | |
ecmwf/eckit | |
ecmwf/fckit | |
MathisRosenhauer/libaec@master | |
ecmwf/eccodes | |
ecmwf/metkit | |
ecmwf/fdb | |
ecmwf/atlas | |
ecmwf/atlas-orca | |
dependency_branch: develop | |
dependency_cmake_options: | | |
ecmwf/eckit: "-G Ninja -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DENABLE_TESTS=OFF -DENABLE_ECKIT_SQL=OFF" | |
ecmwf/fckit: "-G Ninja -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DENABLE_TESTS=OFF" | |
ecmwf/atlas: "-G Ninja -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DENABLE_TESTS=OFF -DATLAS_BITS_LOCAL=32 ${{ matrix.cmake_options }}" | |
cmake_options: '-G Ninja -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DENABLE_LEGACY_IFSIO=ON ${{ matrix.cmake_options }}' | |
ctest_options: '${{ matrix.ctest_options }}' |