From 5513b86766dccc51c0d36a8031c92afd9461c76c Mon Sep 17 00:00:00 2001 From: Willem Deconinck Date: Mon, 27 Nov 2023 16:58:03 +0100 Subject: [PATCH] Fix github actions building with intel compilers --- .github/tools/install-intel-oneapi.sh | 14 +++++++------- .github/workflows/build.yml | 8 ++++---- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/tools/install-intel-oneapi.sh b/.github/tools/install-intel-oneapi.sh index 78af1aec0..b6db3853b 100755 --- a/.github/tools/install-intel-oneapi.sh +++ b/.github/tools/install-intel-oneapi.sh @@ -1,14 +1,14 @@ -#!/bin/sh +#!/usr/bin/env bash -KEY=GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB +version=2023.2.0 +KEY=GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB wget https://apt.repos.intel.com/intel-gpg-keys/$KEY sudo apt-key add $KEY rm $KEY echo "deb https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list sudo apt-get update sudo apt-get install \ - intel-oneapi-compiler-fortran \ - intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic \ - intel-oneapi-mpi \ - intel-oneapi-mpi-devel \ - intel-oneapi-mkl + intel-oneapi-compiler-fortran-$version \ + intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic-$version \ + intel-oneapi-mpi-devel-2021.10.0 \ + intel-oneapi-mkl-$version diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 792cc6d2f..151a1b84a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,7 +34,7 @@ jobs: - linux gnu-10 - linux clang-12 - linux nvhpc-21.9 - - linux intel + - linux intel-classic - macos include: @@ -77,9 +77,9 @@ jobs: ctest_options: -E memory caching: false - - name : linux intel + - name : linux intel-classic os: ubuntu-20.04 - compiler: intel-oneapi + compiler: intel-classic compiler_cc: icc compiler_cxx: icpc compiler_fc: ifort @@ -139,7 +139,7 @@ jobs: ${ECTRANS_TOOLS}/install-intel-oneapi.sh source /opt/intel/oneapi/setvars.sh printenv >> $GITHUB_ENV - echo "CACHE_SUFFIX=$(icc -dumpversion)" >> $GITHUB_ENV + echo "CACHE_SUFFIX=$CC-$($CC -dumpversion)" >> $GITHUB_ENV - name: Install MPI shell: bash -eux {0}