ssp/.github/workflows/win-icc.yml

72 lines
1.8 KiB
YAML
Raw Normal View History

2021-02-25 21:06:11 +01:00
name: win-icc-ci
2021-02-25 20:56:42 +01:00
on:
push:
branches:
- master
- feature/**
- improvement/**
- bugfix/**
pull_request:
branches:
- master
- feature/**
- improvement/**
- bugfix/**
env:
2021-02-25 21:01:34 +01:00
WINDOWS_BASEKIT_URL: https://registrationcenter-download.intel.com/akdlm/irc_nas/17453/w_BaseKit_p_2021.1.0.2664_offline.exe
2021-02-25 20:56:42 +01:00
WINDOWS_HPCKIT_URL: https://registrationcenter-download.intel.com/akdlm/irc_nas/17392/w_HPCKit_p_2021.1.0.2682_offline.exe
jobs:
2021-02-25 21:34:11 +01:00
icc_tests:
2021-02-25 20:56:42 +01:00
if: >-
! contains(toJSON(github.event.commits.*.message), '[skip ci]') &&
! contains(toJSON(github.event.commits.*.message), '[skip github]')
runs-on: windows-latest
defaults:
run:
shell: bash
2021-02-25 21:02:40 +01:00
steps:
2021-02-25 20:56:42 +01:00
- uses: actions/checkout@v2
- name: cache install
id: cache-install
uses: actions/cache@v2
with:
path: C:\Program Files (x86)\Intel\oneAPI\compiler
2021-02-25 21:34:11 +01:00
key: >-
install-${{ env.WINDOWS_HPCKIT_URL }}-
${{ env.WINDOWS_CPP_COMPONENTS }}-
compiler-${{ hashFiles('**/script/cache_exclude_windows.sh') }}
2021-02-25 20:56:42 +01:00
- name: Install icc
2021-02-25 21:34:11 +01:00
run: >-
script/ci_win_install_icc.bat $WINDOWS_HPCKIT_URL
$WINDOWS_CPP_COMPONENTS
2021-02-25 20:56:42 +01:00
- name: CMake
run: echo "/host_usr_local/bin" >> $GITHUB_PATH
- name: Install dependencies
run: script/ci_install_deps.sh
2021-02-25 21:34:11 +01:00
- name: Setup icc
2021-02-25 21:37:18 +01:00
run: script/ci_win_setup_icc.bat
2021-02-25 21:34:11 +01:00
2021-02-25 20:56:42 +01:00
- name: Configure
2021-02-25 21:48:52 +01:00
run: >-
cmake -S test -B build -D CMAKE_BUILD_TYPE=Debug
2021-02-25 21:57:36 +01:00
-G "dpcpp generator" -D CMAKE_CXX_COMPILER=dpcpp
2021-02-25 20:56:42 +01:00
- name: Build
2021-02-25 21:48:52 +01:00
run: >-
cmake --build build -j ${{ steps.cores.outputs.count }}
2021-02-25 21:57:36 +01:00
-G "dpcpp generator" -D CMAKE_CXX_COMPILER=dpcpp
2021-02-25 20:56:42 +01:00
- name: Run
working-directory: build
run: ctest --output-on-failure -j ${{ steps.cores.outputs.count }}