mirror of
https://github.com/red0124/ssp.git
synced 2025-01-23 04:55:20 +01:00
try ubuntu icc pipeline
This commit is contained in:
parent
dc3f0925fa
commit
4aefdca6a4
65
.github/workflows/ubuntu-latest-icc.yml
vendored
65
.github/workflows/ubuntu-latest-icc.yml
vendored
@ -15,43 +15,46 @@ on:
|
|||||||
- improvement/**
|
- improvement/**
|
||||||
- bugfix/**
|
- bugfix/**
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
gcc_tests:
|
build_linux_cpp:
|
||||||
if: >-
|
|
||||||
! contains(toJSON(github.event.commits.*.message), '[skip ci]') &&
|
|
||||||
! contains(toJSON(github.event.commits.*.message), '[skip github]')
|
|
||||||
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
version: [10, 9, 8]
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
defaults:
|
||||||
name: GCC ${{ matrix.version }}
|
run:
|
||||||
|
shell: bash
|
||||||
container:
|
|
||||||
image: gcc:${{ matrix.version }}
|
|
||||||
|
|
||||||
options: -v /usr/local:/host_usr_local
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- uses: friendlyanon/fetch-core-count@v1
|
env:
|
||||||
id: cores
|
CXX: dpcpp
|
||||||
|
|
||||||
- name: CMake
|
- name: cache install
|
||||||
run: echo "/host_usr_local/bin" >> $GITHUB_PATH
|
id: cache-install
|
||||||
|
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') }}
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install icc
|
||||||
run: script/ci_install_deps.sh
|
run: scripts/ci_install_icc.sh $LINUX_HPCKIT_URL $LINUX_CPP_COMPONENTS_WEB
|
||||||
|
|
||||||
- name: Configure
|
- name: Install dependencies
|
||||||
run: cmake -S test -B build -D CMAKE_BUILD_TYPE=Debug
|
run: script/ci_install_deps.sh
|
||||||
|
|
||||||
- name: Build
|
- name: CMake
|
||||||
run: cmake --build build -j ${{ steps.cores.outputs.count }}
|
run: echo "/host_usr_local/bin" >> $GITHUB_PATH
|
||||||
|
|
||||||
- name: Run
|
- name: Configure
|
||||||
working-directory: build
|
run: cmake -S test -B build -D CMAKE_BUILD_TYPE=Debug
|
||||||
run: ctest --output-on-failure -j ${{ steps.cores.outputs.count }}
|
|
||||||
|
- 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 }}
|
||||||
|
8
.github/workflows/win-msys2-clang.yml
vendored
8
.github/workflows/win-msys2-clang.yml
vendored
@ -17,6 +17,10 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
windows-mingw:
|
windows-mingw:
|
||||||
|
if: >-
|
||||||
|
! contains(toJSON(github.event.commits.*.message), '[skip ci]') &&
|
||||||
|
! contains(toJSON(github.event.commits.*.message), '[skip github]')
|
||||||
|
|
||||||
name: ${{ matrix.msystem }}
|
name: ${{ matrix.msystem }}
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
defaults:
|
defaults:
|
||||||
@ -61,7 +65,9 @@ jobs:
|
|||||||
run: script/ci_install_deps.sh
|
run: script/ci_install_deps.sh
|
||||||
|
|
||||||
- name: Configure
|
- name: Configure
|
||||||
run: cmake -DCMAKE_CXX_COMPILER=clang++ -S test -B build -DCMAKE_BUILD_TYPE=Debug
|
run: >-
|
||||||
|
cmake -DCMAKE_CXX_COMPILER=clang++ -S test -B build
|
||||||
|
-DCMAKE_BUILD_TYPE=Debug
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cmake --build build -j ${{ steps.cores.outputs.count }}
|
run: cmake --build build -j ${{ steps.cores.outputs.count }}
|
||||||
|
4
.github/workflows/win-msys2-gcc.yml
vendored
4
.github/workflows/win-msys2-gcc.yml
vendored
@ -17,6 +17,10 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
windows-mingw:
|
windows-mingw:
|
||||||
|
if: >-
|
||||||
|
! contains(toJSON(github.event.commits.*.message), '[skip ci]') &&
|
||||||
|
! contains(toJSON(github.event.commits.*.message), '[skip github]')
|
||||||
|
|
||||||
name: ${{ matrix.msystem }}
|
name: ${{ matrix.msystem }}
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
defaults:
|
defaults:
|
||||||
|
23
script/ci_install_icc.sh
Executable file
23
script/ci_install_icc.sh
Executable file
@ -0,0 +1,23 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# SPDX-FileCopyrightText: 2020 Intel Corporation
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
URL=$1
|
||||||
|
COMPONENTS=$2
|
||||||
|
|
||||||
|
curl --output webimage.sh --url "$URL" --retry 5 --retry-delay 5
|
||||||
|
chmod +x webimage.sh
|
||||||
|
./webimage.sh -x -f webimage_extracted --log extract.log
|
||||||
|
rm -rf webimage.sh
|
||||||
|
WEBIMAGE_NAME=$(ls -1 webimage_extracted/)
|
||||||
|
if [ -z "$COMPONENTS" ]; then
|
||||||
|
sudo webimage_extracted/"$WEBIMAGE_NAME"/bootstrapper -s --action install --eula=accept --continue-with-optional-error=yes --log-dir=.
|
||||||
|
installer_exit_code=$?
|
||||||
|
else
|
||||||
|
sudo webimage_extracted/"$WEBIMAGE_NAME"/bootstrapper -s --action install --components="$COMPONENTS" --eula=accept --continue-with-optional-error=yes --log-dir=.
|
||||||
|
installer_exit_code=$?
|
||||||
|
fi
|
||||||
|
rm -rf webimage_extracted
|
||||||
|
exit $installer_exit_code
|
Loading…
Reference in New Issue
Block a user