From f6914eb0e40e0712f4b86b9854e0f5dabdc17933 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=BCtzel?= Date: Wed, 22 Jan 2025 16:40:01 +0100 Subject: [PATCH] CI: Add runner with Ubuntu on ARM64 GitHub started hosting runners with Ubuntu on ARM64 processors for open source projects for free: https://github.blog/changelog/2025-01-16-linux-arm64-hosted-runners-now-available-for-free-in-public-repositories-public-preview/ Add one configuration that is using these runners to the build matrix. --- .github/workflows/build.yaml | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 41c3f42d6d..2a322eb642 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -17,40 +17,54 @@ jobs: ubuntu: # For available GitHub-hosted runners, see: # https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners - runs-on: ubuntu-24.04 + runs-on: ${{ matrix.os }} - name: ubuntu (${{ matrix.compiler }} ${{ matrix.mpi }} MPI ${{ matrix.openmp }} OpenMP) + name: ${{ matrix.os }} (${{ matrix.compiler }} ${{ matrix.mpi }} MPI ${{ matrix.openmp }} OpenMP) strategy: # Allow other runners in the matrix to continue if some fail fail-fast: false matrix: + os: [ubuntu-24.04] compiler: [gcc] mpi: [with] openmp: [with] include: - - compiler: gcc + - os: ubuntu-24.04 + compiler: gcc compiler-pkgs: "g++ gcc" cc: "gcc" cxx: "g++" + mpi: with + openmp: with + openmp-cmake-flags: "-DWITH_OpenMP=ON" + - os: ubuntu-24.04-arm + compiler: gcc + compiler-pkgs: "g++ gcc" + cc: "gcc" + cxx: "g++" + mpi: with openmp: with openmp-cmake-flags: "-DWITH_OpenMP=ON" - - compiler: gcc + - os: ubuntu-24.04 + compiler: gcc compiler-pkgs: "g++ gcc" cc: "gcc" cxx: "g++" mpi: without openmp: with openmp-cmake-flags: "-DWITH_OpenMP=ON" - - compiler: gcc + - os: ubuntu-24.04 + compiler: gcc compiler-pkgs: "g++ gcc" cc: "gcc" cxx: "g++" mpi: with openmp: without openmp-cmake-flags: "-DWITH_OpenMP=OFF" - - compiler: clang + - os: ubuntu-24.04 + compiler: clang compiler-pkgs: "clang" cc: "clang" cxx: "clang++" @@ -98,7 +112,7 @@ jobs: run: | # work around error in the rocALUTION CMake config file distributed by Ubuntu if [ "${{ matrix.compiler }}" == "gcc" ] && [ "${{ matrix.mpi }}" == "with" ]; then - sudo sed -i '/find_dependency(HIP)/d' /usr/lib/x86_64-linux-gnu/cmake/rocalution/rocalution-config.cmake + sudo sed -i '/find_dependency(HIP)/d' /usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)/cmake/rocalution/rocalution-config.cmake fi mkdir ${GITHUB_WORKSPACE}/build cd ${GITHUB_WORKSPACE}/build