]> https://gitweb.dealii.org/ - dealii.git/commitdiff
github-actions: simply oneAPI setup with external action. 16363/head
authorMarc Fehling <mafehling.git@gmail.com>
Mon, 18 Dec 2023 03:30:27 +0000 (20:30 -0700)
committerMarc Fehling <mafehling.git@gmail.com>
Thu, 1 Feb 2024 00:21:06 +0000 (17:21 -0700)
.github/workflows/linux.yml

index 8331dc2c75f6f276335d0b0269ae9f4823b4a089..ba4e09867c699d57e7f02f73ece67d57fcbbc91c 100644 (file)
@@ -160,35 +160,13 @@ jobs:
 
     steps:
     - uses: actions/checkout@v4
-    - name: setup apt repo
-      run: |
-        # download the key to system keyring
-        wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | gpg --dearmor | sudo tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null
-        # add signed entry to apt sources and configure the APT client to use Intel repository:
-        echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
-        sudo apt-get update
-    - name: collect versioned dependencies of apt packages
-      run : |
-        # oneapi-ci/scripts/apt_depends.sh
-        apt-cache depends intel-oneapi-compiler-dpcpp-cpp \
-                          intel-oneapi-mpi-devel \
-                          intel-oneapi-mkl-devel \
-                          intel-oneapi-tbb-devel | tee dependencies.txt
-    - name: cache install
-      id: cache-install
-      uses: actions/cache@v4
+    - uses: rscohn2/setup-oneapi@v0
       with:
-        path: /opt/intel/oneapi
-        key: install-${{ hashFiles('**/dependencies.txt') }}
-    - name: install
-      if: steps.cache-install.outputs.cache-hit != 'true'
-      run: |
-        # oneapi-ci/scripts/install_linux_apt.sh
-        sudo apt-get install -y intel-oneapi-compiler-dpcpp-cpp \
-                                intel-oneapi-mpi-devel \
-                                intel-oneapi-mkl-devel \
-                                intel-oneapi-tbb-devel
-        sudo apt-get clean
+        components: |
+          icx
+          impi
+          mkl
+          tbb
     - name: info
       run: |
         source /opt/intel/oneapi/setvars.sh

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.