From eddeb8b695e778457343e4f7a34e136a87e84dc9 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Mon, 20 Nov 2023 23:58:34 +0100 Subject: [PATCH] use container with oneapi installation avoids long installation --- .github/workflows/Fortran.yml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/.github/workflows/Fortran.yml b/.github/workflows/Fortran.yml index ae28e1611..f329e4d53 100644 --- a/.github/workflows/Fortran.yml +++ b/.github/workflows/Fortran.yml @@ -88,7 +88,9 @@ jobs: intel: - runs-on: [ubuntu-22.04] + runs-on: ubuntu-22.04 + container: + image: intel/oneapi-hpckit:latest strategy: fail-fast: false @@ -98,16 +100,10 @@ jobs: - name: Intel - Install run: | - wget -q https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB - sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB - rm GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB - 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-basekit \ - intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic intel-oneapi-compiler-fortran \ - intel-oneapi-openmp intel-oneapi-mkl-devel - source /opt/intel/oneapi/setvars.sh + apt-get update --allow-insecure-repositories + apt-get install --allow-unauthenticated -y \ + cmake build-essential autoconf libtool \ + zlib1g-dev printenv >> $GITHUB_ENV - name: PETSc - Cache download