try ubuntu icc pipeline

This commit is contained in:
ado 2021-02-24 18:59:55 +01:00
parent 0b8b1dda22
commit b4f00b42a2
2 changed files with 14 additions and 3 deletions

View File

@ -26,9 +26,6 @@ jobs:
run: run:
shell: bash shell: bash
env:
CXX: dpcpp
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -44,6 +41,9 @@ jobs:
- name: Install icc - name: Install icc
run: script/ci_install_icc.sh $LINUX_HPCKIT_URL $LINUX_CPP_COMPONENTS_WEB run: script/ci_install_icc.sh $LINUX_HPCKIT_URL $LINUX_CPP_COMPONENTS_WEB
- name: Setup icc
run: source script/ci_setup_icc.sh
- name: Install dependencies - name: Install dependencies
run: script/ci_install_deps.sh run: script/ci_install_deps.sh

11
script/ci_setup_icc.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash
# SPDX-FileCopyrightText: 2020 Intel Corporation
#
# SPDX-License-Identifier: MIT
#shellcheck disable=SC2010
LATEST_VERSION=$(ls -1 /opt/intel/oneapi/compiler/ | grep -v latest | sort | tail -1)
# shellcheck source=/dev/null
source /opt/intel/oneapi/compiler/"$LATEST_VERSION"/env/vars.sh
CXX=dpcpp