From 8ab1fff70a787050d197323c3cd228c92a223a53 Mon Sep 17 00:00:00 2001 From: Andre Vehreschild Date: Wed, 12 Feb 2025 08:53:03 +0100 Subject: [PATCH] Add CI for ubuntu-22.04. --- .github/workflows/ci-ubuntu-22.04.yml | 41 +++++++++++++++++++ .../{ci.yml => ci-ubuntu-latest.yml} | 1 - 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci-ubuntu-22.04.yml rename .github/workflows/{ci.yml => ci-ubuntu-latest.yml} (96%) diff --git a/.github/workflows/ci-ubuntu-22.04.yml b/.github/workflows/ci-ubuntu-22.04.yml new file mode 100644 index 00000000..a055cbb6 --- /dev/null +++ b/.github/workflows/ci-ubuntu-22.04.yml @@ -0,0 +1,41 @@ +name: CI + +on: push + +jobs: + Build: + runs-on: ubuntu-22.04 + strategy: + fail-fast: true + matrix: + mpi: [ 'mpich', 'openmpi', 'impi' ] + + env: + FC: gfortran + GCC_V: 11 + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Install Dependencies + run: | + sudo apt install -y gfortran-${GCC_V} cmake + sudo update-alternatives --install /usr/bin/gfortran gfortran /usr/bin/gfortran-${GCC_V} 100 + + - name: Setup MPI ${{ matrix.mpi }} + uses: mpi4py/setup-mpi@v1 + with: + mpi: ${{ matrix.mpi }} + + - name: Build and Test + run: | + mpirun --version + mkdir build + cmake -S . -B build -Wdev -DCMAKE_INSTALL_PREFIX:PATH="${HOME}/OpenCoarrays" -DCMAKE_BUILD_TYPE:STRING="Debug" .. + cmake --build build -j $(nproc) + cmake --build build -t install -j $(nproc) || echo "installation failed" + ctest --test-dir build --output-on-failure --schedule-random --repeat-until-fail 1 --timeout 200 + cd build + make uninstall + echo "Ran with mpi: ${{ matrix.mpi }}" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci-ubuntu-latest.yml similarity index 96% rename from .github/workflows/ci.yml rename to .github/workflows/ci-ubuntu-latest.yml index 4c3b8fb2..317a4ee0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci-ubuntu-latest.yml @@ -9,7 +9,6 @@ jobs: fail-fast: true matrix: mpi: [ 'impi' ] -# mpi: [ 'mpich', 'openmpi', 'impi' ] # mpich is borken on ubuntu-24.04LTS and 24.10 see https://bugs.launchpad.net/ubuntu/+source/mpich/+bug/2072338 # openmpi is borken on ubuntu-24.04LTS and 24.10 see https://github.com/open-mpi/ompi/issues/10726 # ubuntu 24.10 is not available as github runner, so we are left with Intel's mpi for now.