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

67 lines
1.6 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:
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:
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:
build_linux_cpp:
2021-02-24 17:24:48 +01:00
runs-on: ubuntu-latest
2021-02-24 18:06:09 +01:00
defaults:
run:
shell: bash
2021-02-24 17:24:48 +01:00
2021-02-24 19:18:22 +01:00
container:
image: gcc:10
options: -v /usr/local:/host_usr_local
2021-02-24 18:09:13 +01:00
steps:
- uses: actions/checkout@v2
2021-02-24 18:06:09 +01:00
- name: cache install
id: cache-install
2021-02-24 19:18:22 +01:00
2021-02-24 18:06:09 +01:00
uses: actions/cache@v2
with:
path: |
/opt/intel/oneapi/compiler
key:
install-${{ env.LINUX_HPCKIT_URL }}-${{ env.LINUX_CPP_COMPONENTS_WEB }}-compiler-${{ hashFiles('**/scripts/cache_exclude_linux.sh') }}
2021-02-24 17:24:48 +01:00
2021-02-24 19:09:01 +01:00
- name: Install dependencies
run: script/ci_install_deps.sh
2021-02-24 18:06:09 +01:00
- name: Install icc
2021-02-24 18:10:47 +01:00
run: script/ci_install_icc.sh $LINUX_HPCKIT_URL $LINUX_CPP_COMPONENTS_WEB
2021-02-24 17:24:48 +01:00
2021-02-24 18:59:55 +01:00
- name: Setup icc
run: source script/ci_setup_icc.sh
2021-02-24 18:06:09 +01:00
- name: CMake
run: echo "/host_usr_local/bin" >> $GITHUB_PATH
2021-02-24 17:24:48 +01:00
2021-02-24 18:06:09 +01:00
- name: Configure
run: cmake -S test -B build -D CMAKE_BUILD_TYPE=Debug
2021-02-24 17:24:48 +01:00
2021-02-24 18:06:09 +01:00
- name: Build
run: cmake --build build -j ${{ steps.cores.outputs.count }}
2021-02-24 17:24:48 +01:00
2021-02-24 18:06:09 +01:00
- name: Run
working-directory: build
run: ctest --output-on-failure -j ${{ steps.cores.outputs.count }}