From 558b34c7b5dbeec66b15799523cef2651be77456 Mon Sep 17 00:00:00 2001 From: Lourens Veen Date: Wed, 27 Sep 2023 15:21:19 +0200 Subject: [PATCH] Add Ubuntu 23.04 to the native compatibility CI --- .github/workflows/ci_ubuntu23.04.yaml | 20 ++++++++++++++++++++ .github/workflows/ci_ubuntu23.04_clang.yaml | 20 ++++++++++++++++++++ .github/workflows/ci_ubuntu23.04_intel.yaml | 21 +++++++++++++++++++++ 3 files changed, 61 insertions(+) create mode 100644 .github/workflows/ci_ubuntu23.04.yaml create mode 100644 .github/workflows/ci_ubuntu23.04_clang.yaml create mode 100644 .github/workflows/ci_ubuntu23.04_intel.yaml diff --git a/.github/workflows/ci_ubuntu23.04.yaml b/.github/workflows/ci_ubuntu23.04.yaml new file mode 100644 index 00000000..5113acf9 --- /dev/null +++ b/.github/workflows/ci_ubuntu23.04.yaml @@ -0,0 +1,20 @@ +# Run Continuous Integration for the latest Ubuntu release +# This mainly checks for issues/regressions in the native build +name: native_compatibility_ubuntu23.04 +on: + schedule: + - cron: '30 7 * * 6' + push: + branches: + - 'release-*' + - fix_native_compatibility_ci +jobs: + build: + runs-on: ubuntu-latest + timeout-minutes: 10 + + steps: + - uses: actions/checkout@v4 + + - name: Run tests on Ubuntu 23.04 + run: docker run -v "${GITHUB_WORKSPACE}:/workspace" --env LC_ALL=C.UTF-8 --env LANG=C.UTF-8 --env DEBIAN_FRONTEND=noninteractive ubuntu:23.04 /bin/bash -c 'apt-get update && apt-get -y dist-upgrade && apt-get -y install build-essential cmake gfortran git valgrind libopenmpi-dev pkg-config python3 python3-pip python3-venv curl && apt-get -y remove libssl-dev && useradd -m -d /home/muscle3 muscle3 && su muscle3 -c -- "cp -r --preserve=mode /workspace /home/muscle3/muscle3" && su muscle3 -c -- "cd /home/muscle3/muscle3 && make test_examples"' diff --git a/.github/workflows/ci_ubuntu23.04_clang.yaml b/.github/workflows/ci_ubuntu23.04_clang.yaml new file mode 100644 index 00000000..922edf5d --- /dev/null +++ b/.github/workflows/ci_ubuntu23.04_clang.yaml @@ -0,0 +1,20 @@ +# Run Continuous Integration for the latest Ubuntu release +# This mainly checks for issues/regressions in the native build +name: native_compatibility_ubuntu23.04_clang +on: + schedule: + - cron: '30 6 * * 6' + push: + branches: + - 'release-*' + - fix_native_compatibility_ci +jobs: + build: + runs-on: ubuntu-latest + timeout-minutes: 10 + + steps: + - uses: actions/checkout@v4 + + - name: Run tests on Ubuntu 23.04 with Clang + run: docker run -v "${GITHUB_WORKSPACE}:/workspace" --env LC_ALL=C.UTF-8 --env LANG=C.UTF-8 --env DEBIAN_FRONTEND=noninteractive ubuntu:23.04 /bin/bash -c 'apt-get update && apt-get -y dist-upgrade && apt-get -y install build-essential clang cmake gfortran git valgrind libopenmpi-dev pkg-config python3 python3-pip python3-venv curl && apt-get -y remove libssl-dev && useradd -m -d /home/muscle3 muscle3 && su muscle3 -c -- "cp -r --preserve=mode /workspace /home/muscle3/muscle3" && su muscle3 -c -- "cd /home/muscle3/muscle3 && CXXFLAGS=-fPIE OMPI_CXX=clang++ CXX=clang++ make test_examples"' diff --git a/.github/workflows/ci_ubuntu23.04_intel.yaml b/.github/workflows/ci_ubuntu23.04_intel.yaml new file mode 100644 index 00000000..8b6051c9 --- /dev/null +++ b/.github/workflows/ci_ubuntu23.04_intel.yaml @@ -0,0 +1,21 @@ +# Run Continuous Integration for the latest Ubuntu release +# This mainly checks for issues/regressions in the native build +name: native_compatibility_ubuntu23.04_intel +on: + schedule: + - cron: '0 7 * * 6' + push: + branches: + - 'release-*' + - fix_native_compatibility_ci + - issue-25-intel-compiler-support +jobs: + build: + runs-on: ubuntu-latest + timeout-minutes: 10 + + steps: + - uses: actions/checkout@v4 + + - name: Run tests on Ubuntu 23.04 with the Intel compiler + run: docker run -v "${GITHUB_WORKSPACE}:/workspace" --env LC_ALL=C.UTF-8 --env LANG=C.UTF-8 --env DEBIAN_FRONTEND=noninteractive ubuntu:23.04 /bin/bash -c 'apt-get update && apt-get -y install wget && wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB && mv GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB /etc/apt/trusted.gpg.d/intel-sw-products.asc && echo "deb https://apt.repos.intel.com/oneapi all main" >/etc/apt/sources.list.d/oneAPI.list && apt-get update && apt-get -y dist-upgrade && apt-get -y install build-essential cmake git valgrind pkg-config python3 python3-pip python3-venv curl intel-oneapi-compiler-dpcpp-cpp intel-oneapi-compiler-fortran intel-oneapi-mpi-devel && apt-get -y remove libssl-dev && useradd -m -d /home/muscle3 muscle3 && su muscle3 -c -- "cp -r --preserve=mode /workspace /home/muscle3/muscle3" && su muscle3 -c -- "cd /home/muscle3/muscle3 && . /opt/intel/oneapi/setvars.sh && MPICXX=\"mpiicpc -cxx=icpx\" CXX=icpx MPIFC=\"mpiifort -fc=ifx\" FC=ifx make test_examples"'