ssp/.github/workflows/ubuntu-latest-icc.yml

78 lines
1.8 KiB
YAML
Raw Normal View History

2021-02-24 17:24:48 +01:00
name: ubuntu-latest-icc-ci
2021-02-24 17:35:56 +01:00
on:
2023-08-07 18:48:21 +02:00
workflow_dispatch:
2021-02-24 17:35:56 +01:00
push:
branches:
- master
- feature/**
- improvement/**
- bugfix/**
pull_request:
2021-02-24 17:24:48 +01:00
branches:
- master
- feature/**
- improvement/**
- bugfix/**
2021-02-24 18:06:09 +01:00
env:
2023-08-07 01:49:49 +02:00
LINUX_BASEKIT_URL: https://registrationcenter-download.intel.com/akdlm/irc_nas/17431/l_BaseKit_p_2021.1.0.2659_offline.sh
LINUX_HPCKIT_URL:
https://registrationcenter-download.intel.com/akdlm/irc_nas/17427/l_HPCKit_p_2021.1.0.2684_offline.sh
2021-02-24 17:24:48 +01:00
2021-02-24 18:06:09 +01:00
jobs:
2021-02-25 21:34:11 +01:00
icc_tests:
2021-02-24 22:23:51 +01:00
if: >-
! contains(toJSON(github.event.commits.*.message), '[skip ci]') &&
! contains(toJSON(github.event.commits.*.message), '[skip github]')
2021-02-24 17:24:48 +01:00
runs-on: ubuntu-latest
2023-08-07 01:09:37 +02:00
2021-02-24 18:06:09 +01:00
defaults:
run:
shell: bash
2021-02-24 17:24:48 +01:00
2021-02-24 21:19:23 +01:00
container:
2021-02-24 21:26:49 +01:00
image: gcc:10
2021-02-24 21:19:23 +01:00
options: -v /usr/local:/host_usr_local
2021-02-24 18:09:13 +01:00
steps:
2023-08-07 01:09:37 +02:00
- uses: actions/checkout@v2
2021-02-24 18:09:13 +01:00
2023-08-07 01:09:37 +02:00
- name: cache install
id: cache-install
uses: actions/cache@v2
with:
path: |
/opt/intel/oneapi/compiler
key: >-
2023-08-07 01:49:49 +02:00
install-${{env.LINUX_HPCKIT_URL}}-
2023-08-07 01:09:37 +02:00
${{env.LINUX_CPP_COMPONENTS_WEB}}-
compiler-${{hashFiles('**/scripts/cache_exclude_linux.sh')}}
2021-02-24 17:24:48 +01:00
2023-08-07 01:09:37 +02:00
- name: Install icc
run: >-
2023-08-07 01:49:49 +02:00
script/ci_install_icc.sh $LINUX_HPCKIT_URL $LINUX_CPP_COMPONENTS_WEB
2021-02-24 17:24:48 +01:00
2023-08-07 01:09:37 +02:00
- name: CMake
run: echo "/host_usr_local/bin" >> $GITHUB_PATH
2021-02-24 20:14:30 +01:00
2023-08-07 01:09:37 +02:00
- name: Install dependencies
run: script/ci_install_deps.sh
2021-02-24 21:39:40 +01:00
2023-08-07 01:09:37 +02:00
- name: Configure
run: >-
source script/ci_setup_icc.sh &&
cmake -S test -B build -D CMAKE_BUILD_TYPE=Debug
2021-02-24 17:24:48 +01:00
2023-08-07 01:09:37 +02:00
- name: Build
run: >-
source script/ci_setup_icc.sh &&
cmake --build build -j ${{steps.cores.outputs.count}}
2021-02-24 17:24:48 +01:00
2023-08-07 01:09:37 +02:00
- name: Run
working-directory: build
2024-02-18 14:12:10 +01:00
run: ctest --output-on-failure