From 14ab40cc69bf51255c97020b1f38a5c48e494713 Mon Sep 17 00:00:00 2001 From: Enrico Seiler Date: Thu, 10 Aug 2023 15:48:35 +0200 Subject: [PATCH] Faster via apt? --- .github/workflows/ci_intel.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci_intel.yml b/.github/workflows/ci_intel.yml index 6f7845d4..21343f69 100644 --- a/.github/workflows/ci_intel.yml +++ b/.github/workflows/ci_intel.yml @@ -24,10 +24,10 @@ jobs: build: name: IntelLLVM runs-on: ubuntu-22.04 - container: - image: intel/oneapi-basekit - volumes: - - /home/runner/work/_actions/seqan/actions/main:/home/runner/work/_actions/seqan/actions/main + # container: + # image: intel/oneapi-basekit + # volumes: + # - /home/runner/work/_actions/seqan/actions/main:/home/runner/work/_actions/seqan/actions/main timeout-minutes: 120 if: github.repository_owner == 'seqan' || github.event_name == 'workflow_dispatch' || github.event.label.name == 'lint' steps: @@ -37,6 +37,13 @@ jobs: fetch-depth: 1 submodules: true + - name: Install Compiler + run: | + 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 + 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 update + sudo apt install --yes intel-oneapi-dpcpp-cpp-2023.2.1 + # - name: Setup toolchain # uses: seqan/actions/setup-toolchain@main # with: @@ -60,6 +67,7 @@ jobs: CC: icx CXX: icpx run: | + source /opt/intel/oneapi/setvars.sh mkdir build cd build cmake ../test/unit -DCMAKE_BUILD_TYPE=Release \ @@ -69,6 +77,7 @@ jobs: - name: Build tests run: | + source /opt/intel/oneapi/setvars.sh cd build make -k -j2