mirror of
https://github.com/red0124/ssp.git
synced 2025-02-02 16:51:12 +01:00
Update ci workflows
This commit is contained in:
parent
236b5da9c2
commit
07373ea043
13
.github/workflows/ubuntu-latest-clang.yml
vendored
13
.github/workflows/ubuntu-latest-clang.yml
vendored
@ -25,13 +25,14 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
version:
|
version:
|
||||||
['latest', '16', '15', '14', '13', '12', '11', '10', '9', '8', '7']
|
['latest', '16', '15', '14', '13', '12', '11', '10', '9', '8', '7']
|
||||||
|
type: [Release, Debug]
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
name: Clang ${{ matrix.version }}
|
name: Clang "${{matrix.version}}:${{matrix.type}}"
|
||||||
|
|
||||||
container:
|
container:
|
||||||
image: teeks99/clang-ubuntu:${{ matrix.version }}
|
image: teeks99/clang-ubuntu:${{matrix.version}}
|
||||||
|
|
||||||
options: -v /usr/local:/host_usr_local
|
options: -v /usr/local:/host_usr_local
|
||||||
|
|
||||||
@ -51,11 +52,13 @@ jobs:
|
|||||||
script/ci_install_deps.sh
|
script/ci_install_deps.sh
|
||||||
|
|
||||||
- name: Configure
|
- name: Configure
|
||||||
run: cmake -S test -B build -D CMAKE_BUILD_TYPE=Debug
|
run: >-
|
||||||
|
cmake -DCMAKE_CXX_COMPILER=clang++ -S test -B build
|
||||||
|
-DCMAKE_BUILD_TYPE=${{matrix.type}}
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cmake --build build -j ${{ steps.cores.outputs.count }}
|
run: cmake --build build -j ${{steps.cores.outputs.count}}
|
||||||
|
|
||||||
- name: Run
|
- name: Run
|
||||||
working-directory: build
|
working-directory: build
|
||||||
run: ctest --output-on-failure -j ${{ steps.cores.outputs.count }}
|
run: ctest --output-on-failure -j ${{steps.cores.outputs.count}}
|
||||||
|
11
.github/workflows/ubuntu-latest-gcc.yml
vendored
11
.github/workflows/ubuntu-latest-gcc.yml
vendored
@ -24,13 +24,14 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
version: ['latest', '13', '12', '11', '10', '9', '8']
|
version: ['latest', '13', '12', '11', '10', '9', '8']
|
||||||
|
type: [Release, Debug]
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
name: GCC ${{ matrix.version }}
|
name: GCC "${{matrix.version}}:${{matrix.type}}"
|
||||||
|
|
||||||
container:
|
container:
|
||||||
image: gcc:${{ matrix.version }}
|
image: gcc:${{matrix.version}}
|
||||||
|
|
||||||
options: -v /usr/local:/host_usr_local
|
options: -v /usr/local:/host_usr_local
|
||||||
|
|
||||||
@ -47,11 +48,11 @@ jobs:
|
|||||||
run: script/ci_install_deps.sh
|
run: script/ci_install_deps.sh
|
||||||
|
|
||||||
- name: Configure
|
- name: Configure
|
||||||
run: cmake -S test -B build -D CMAKE_BUILD_TYPE=Debug
|
run: cmake -S test -B build -D CMAKE_BUILD_TYPE=${{matrix.type}}
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cmake --build build -j ${{ steps.cores.outputs.count }}
|
run: cmake --build build -j ${{steps.cores.outputs.count}}
|
||||||
|
|
||||||
- name: Run
|
- name: Run
|
||||||
working-directory: build
|
working-directory: build
|
||||||
run: ctest --output-on-failure -j ${{ steps.cores.outputs.count }}
|
run: ctest --output-on-failure -j ${{steps.cores.outputs.count}}
|
||||||
|
64
.github/workflows/ubuntu-latest-icc.yml
vendored
64
.github/workflows/ubuntu-latest-icc.yml
vendored
@ -16,9 +16,9 @@ on:
|
|||||||
- bugfix/**
|
- bugfix/**
|
||||||
|
|
||||||
env:
|
env:
|
||||||
LINUX_BASEKIT_URL: https://registrationcenter-download.intel.com/akdlm/irc_nas/17431/l_BaseKit_p_2021.1.0.2659_offline.sh
|
URL_BASE: https://registrationcenter-download.intel.com/akdlm/irc_nas/17431
|
||||||
LINUX_HPCKIT_URL:
|
LINUX_BASEKIT_URL: ${URL_BASE}/l_BaseKit_p_2021.1.0.2659_offline.sh
|
||||||
https://registrationcenter-download.intel.com/akdlm/irc_nas/17427/l_HPCKit_p_2021.1.0.2684_offline.sh
|
LINUX_HPCKIT_URL: ${URL_BASE}/l_HPCKit_p_2021.1.0.2684_offline.sh
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
icc_tests:
|
icc_tests:
|
||||||
@ -27,6 +27,7 @@ jobs:
|
|||||||
! contains(toJSON(github.event.commits.*.message), '[skip github]')
|
! contains(toJSON(github.event.commits.*.message), '[skip github]')
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
@ -36,38 +37,39 @@ jobs:
|
|||||||
options: -v /usr/local:/host_usr_local
|
options: -v /usr/local:/host_usr_local
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: cache install
|
- name: cache install
|
||||||
id: cache-install
|
id: cache-install
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
/opt/intel/oneapi/compiler
|
/opt/intel/oneapi/compiler
|
||||||
key: >-
|
key: >-
|
||||||
install-${{ env.LINUX_HPCKIT_URL }}-
|
install-${{env.LINUX_HPCKIT_URL}}-
|
||||||
${{ env.LINUX_CPP_COMPONENTS_WEB }}-
|
${{env.LINUX_CPP_COMPONENTS_WEB}}-
|
||||||
compiler-${{ hashFiles('**/scripts/cache_exclude_linux.sh') }}
|
compiler-${{hashFiles('**/scripts/cache_exclude_linux.sh')}}
|
||||||
|
|
||||||
- name: Install icc
|
- name: Install icc
|
||||||
run: script/ci_install_icc.sh $LINUX_HPCKIT_URL $LINUX_CPP_COMPONENTS_WEB
|
run: >-
|
||||||
|
script/ci_install_icc.sh $LINUX_HPCKIT_URL $LINUX_CPP_COMPONENTS_WEB
|
||||||
|
|
||||||
- name: CMake
|
- name: CMake
|
||||||
run: echo "/host_usr_local/bin" >> $GITHUB_PATH
|
run: echo "/host_usr_local/bin" >> $GITHUB_PATH
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: script/ci_install_deps.sh
|
run: script/ci_install_deps.sh
|
||||||
|
|
||||||
- name: Configure
|
- name: Configure
|
||||||
run: >-
|
run: >-
|
||||||
source script/ci_setup_icc.sh &&
|
source script/ci_setup_icc.sh &&
|
||||||
cmake -S test -B build -D CMAKE_BUILD_TYPE=Debug
|
cmake -S test -B build -D CMAKE_BUILD_TYPE=Debug
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: >-
|
run: >-
|
||||||
source script/ci_setup_icc.sh &&
|
source script/ci_setup_icc.sh &&
|
||||||
cmake --build build -j ${{ steps.cores.outputs.count }}
|
cmake --build build -j ${{steps.cores.outputs.count}}
|
||||||
|
|
||||||
- name: Run
|
- name: Run
|
||||||
working-directory: build
|
working-directory: build
|
||||||
run: ctest --output-on-failure -j ${{ steps.cores.outputs.count }}
|
run: ctest --output-on-failure -j ${{steps.cores.outputs.count}}
|
||||||
|
2
.github/workflows/win-msvc.yml
vendored
2
.github/workflows/win-msvc.yml
vendored
@ -25,7 +25,7 @@ jobs:
|
|||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
runs-on: ${{ matrix.config.os }}
|
runs-on: ${{matrix.config.os}}
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
3
.github/workflows/win-msys2-clang.yml
vendored
3
.github/workflows/win-msys2-clang.yml
vendored
@ -51,12 +51,13 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- uses: msys2/setup-msys2@v2
|
- uses: msys2/setup-msys2@v2
|
||||||
|
|
||||||
with:
|
with:
|
||||||
update: true
|
update: true
|
||||||
msystem: ${{matrix.msystem}}
|
msystem: ${{matrix.msystem}}
|
||||||
install: ${{ matrix.install}}
|
install: ${{matrix.install}}
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: script/ci_install_deps.sh
|
run: script/ci_install_deps.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user