mirror of
https://github.com/red0124/ssp.git
synced 2025-01-23 13:05:20 +01:00
try icc win ci
This commit is contained in:
parent
4e1321b491
commit
902f37bc8c
2
.github/workflows/ubuntu-latest-icc.yml
vendored
2
.github/workflows/ubuntu-latest-icc.yml
vendored
@ -21,7 +21,7 @@ env:
|
|||||||
https://registrationcenter-download.intel.com/akdlm/irc_nas/17427/l_HPCKit_p_2021.1.0.2684_offline.sh
|
https://registrationcenter-download.intel.com/akdlm/irc_nas/17427/l_HPCKit_p_2021.1.0.2684_offline.sh
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_linux_cpp:
|
icc_tests:
|
||||||
if: >-
|
if: >-
|
||||||
! contains(toJSON(github.event.commits.*.message), '[skip ci]') &&
|
! contains(toJSON(github.event.commits.*.message), '[skip ci]') &&
|
||||||
! contains(toJSON(github.event.commits.*.message), '[skip github]')
|
! contains(toJSON(github.event.commits.*.message), '[skip github]')
|
||||||
|
22
.github/workflows/win-icc.yml
vendored
22
.github/workflows/win-icc.yml
vendored
@ -20,7 +20,7 @@ env:
|
|||||||
WINDOWS_HPCKIT_URL: https://registrationcenter-download.intel.com/akdlm/irc_nas/17392/w_HPCKit_p_2021.1.0.2682_offline.exe
|
WINDOWS_HPCKIT_URL: https://registrationcenter-download.intel.com/akdlm/irc_nas/17392/w_HPCKit_p_2021.1.0.2682_offline.exe
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_linux_cpp:
|
icc_tests:
|
||||||
if: >-
|
if: >-
|
||||||
! contains(toJSON(github.event.commits.*.message), '[skip ci]') &&
|
! contains(toJSON(github.event.commits.*.message), '[skip ci]') &&
|
||||||
! contains(toJSON(github.event.commits.*.message), '[skip github]')
|
! contains(toJSON(github.event.commits.*.message), '[skip github]')
|
||||||
@ -37,10 +37,15 @@ jobs:
|
|||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: C:\Program Files (x86)\Intel\oneAPI\compiler
|
path: C:\Program Files (x86)\Intel\oneAPI\compiler
|
||||||
key: install-${{ env.WINDOWS_HPCKIT_URL }}-${{ env.WINDOWS_CPP_COMPONENTS }}-compiler-${{ hashFiles('**/script/cache_exclude_windows.sh') }}
|
key: >-
|
||||||
|
install-${{ env.WINDOWS_HPCKIT_URL }}-
|
||||||
|
${{ env.WINDOWS_CPP_COMPONENTS }}-
|
||||||
|
compiler-${{ hashFiles('**/script/cache_exclude_windows.sh') }}
|
||||||
|
|
||||||
- name: Install icc
|
- name: Install icc
|
||||||
run: script/ci_install_icc.bat $WINDOWS_HPCKIT_URL $WINDOWS_CPP_COMPONENTS
|
run: >-
|
||||||
|
script/ci_win_install_icc.bat $WINDOWS_HPCKIT_URL
|
||||||
|
$WINDOWS_CPP_COMPONENTS
|
||||||
|
|
||||||
- name: CMake
|
- name: CMake
|
||||||
run: echo "/host_usr_local/bin" >> $GITHUB_PATH
|
run: echo "/host_usr_local/bin" >> $GITHUB_PATH
|
||||||
@ -48,15 +53,14 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: script/ci_install_deps.sh
|
run: script/ci_install_deps.sh
|
||||||
|
|
||||||
|
- name: Setup icc
|
||||||
|
script/ci_win_setup_icc.bat
|
||||||
|
|
||||||
- name: Configure
|
- name: Configure
|
||||||
run: >-
|
run: CXX=dpcpp && cmake -S test -B build -D CMAKE_BUILD_TYPE=Debug
|
||||||
source script/ci_setup_icc.sh &&
|
|
||||||
cmake -S test -B build -D CMAKE_BUILD_TYPE=Debug
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: >-
|
run: CXX=dpcpp && cmake --build build -j ${{ steps.cores.outputs.count }}
|
||||||
source script/ci_setup_icc.sh &&
|
|
||||||
cmake --build build -j ${{ steps.cores.outputs.count }}
|
|
||||||
|
|
||||||
- name: Run
|
- name: Run
|
||||||
working-directory: build
|
working-directory: build
|
||||||
|
6
script/ci_win_setup_icc.bat
Executable file
6
script/ci_win_setup_icc.bat
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
REM SPDX-FileCopyrightText: 2020 Intel Corporation
|
||||||
|
REM
|
||||||
|
REM SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
for /f "tokens=* usebackq" %%f in (`dir /b "C:\Program Files (x86)\Intel\oneAPI\compiler\" ^| findstr /V latest ^| sort`) do @set "LATEST_VERSION=%%f"
|
||||||
|
@call "C:\Program Files (x86)\Intel\oneAPI\compiler\%LATEST_VERSION%\env\vars.bat"
|
Loading…
Reference in New Issue
Block a user