mirror of
https://github.com/red0124/ssp.git
synced 2025-01-23 21:15:19 +01:00
71 lines
1.8 KiB
YAML
71 lines
1.8 KiB
YAML
name: win-icc-ci
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- feature/**
|
|
- improvement/**
|
|
- bugfix/**
|
|
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
- feature/**
|
|
- improvement/**
|
|
- bugfix/**
|
|
|
|
env:
|
|
WINDOWS_BASEKIT_URL: https://registrationcenter-download.intel.com/akdlm/irc_nas/17453/w_BaseKit_p_2021.1.0.2664_offline.exe
|
|
WINDOWS_HPCKIT_URL: https://registrationcenter-download.intel.com/akdlm/irc_nas/17392/w_HPCKit_p_2021.1.0.2682_offline.exe
|
|
|
|
jobs:
|
|
icc_tests:
|
|
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
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: cache install
|
|
id: cache-install
|
|
uses: actions/cache@v2
|
|
with:
|
|
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') }}
|
|
|
|
- name: Install icc
|
|
run: >-
|
|
script/ci_win_install_icc.bat $WINDOWS_HPCKIT_URL
|
|
$WINDOWS_CPP_COMPONENTS
|
|
|
|
- name: CMake
|
|
run: echo "/host_usr_local/bin" >> $GITHUB_PATH
|
|
|
|
- name: Install dependencies
|
|
run: script/ci_install_deps.sh
|
|
|
|
- name: Setup icc
|
|
run: script/ci_win_setup_icc.bat
|
|
|
|
- name: Configure
|
|
run: >-
|
|
cmake -DCMAKE_CXX_COMPILER=dpcpp -S test -B build
|
|
-DCMAKE_BUILD_TYPE=Debug
|
|
|
|
- name: Build
|
|
run: >-
|
|
cmake --build build -j ${{ steps.cores.outputs.count }}
|
|
|
|
- name: Run
|
|
working-directory: build
|
|
run: ctest --output-on-failure -j ${{ steps.cores.outputs.count }}
|