Update ci workflows

This commit is contained in:
ado 2023-08-07 01:09:37 +02:00
parent 236b5da9c2
commit 07373ea043
5 changed files with 50 additions and 43 deletions

View File

@ -25,13 +25,14 @@ jobs:
matrix:
version:
['latest', '16', '15', '14', '13', '12', '11', '10', '9', '8', '7']
type: [Release, Debug]
runs-on: ubuntu-latest
name: Clang ${{ matrix.version }}
name: Clang "${{matrix.version}}:${{matrix.type}}"
container:
image: teeks99/clang-ubuntu:${{ matrix.version }}
image: teeks99/clang-ubuntu:${{matrix.version}}
options: -v /usr/local:/host_usr_local
@ -51,11 +52,13 @@ jobs:
script/ci_install_deps.sh
- 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
run: cmake --build build -j ${{ steps.cores.outputs.count }}
run: cmake --build build -j ${{steps.cores.outputs.count}}
- name: Run
working-directory: build
run: ctest --output-on-failure -j ${{ steps.cores.outputs.count }}
run: ctest --output-on-failure -j ${{steps.cores.outputs.count}}

View File

@ -24,13 +24,14 @@ jobs:
strategy:
matrix:
version: ['latest', '13', '12', '11', '10', '9', '8']
type: [Release, Debug]
runs-on: ubuntu-latest
name: GCC ${{ matrix.version }}
name: GCC "${{matrix.version}}:${{matrix.type}}"
container:
image: gcc:${{ matrix.version }}
image: gcc:${{matrix.version}}
options: -v /usr/local:/host_usr_local
@ -47,11 +48,11 @@ jobs:
run: script/ci_install_deps.sh
- 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
run: cmake --build build -j ${{ steps.cores.outputs.count }}
run: cmake --build build -j ${{steps.cores.outputs.count}}
- name: Run
working-directory: build
run: ctest --output-on-failure -j ${{ steps.cores.outputs.count }}
run: ctest --output-on-failure -j ${{steps.cores.outputs.count}}

View File

@ -16,9 +16,9 @@ on:
- 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
URL_BASE: https://registrationcenter-download.intel.com/akdlm/irc_nas/17431
LINUX_BASEKIT_URL: ${URL_BASE}/l_BaseKit_p_2021.1.0.2659_offline.sh
LINUX_HPCKIT_URL: ${URL_BASE}/l_HPCKit_p_2021.1.0.2684_offline.sh
jobs:
icc_tests:
@ -27,6 +27,7 @@ jobs:
! contains(toJSON(github.event.commits.*.message), '[skip github]')
runs-on: ubuntu-latest
defaults:
run:
shell: bash
@ -45,12 +46,13 @@ jobs:
path: |
/opt/intel/oneapi/compiler
key: >-
install-${{ env.LINUX_HPCKIT_URL }}-
${{ env.LINUX_CPP_COMPONENTS_WEB }}-
compiler-${{ hashFiles('**/scripts/cache_exclude_linux.sh') }}
install-${{env.LINUX_HPCKIT_URL}}-
${{env.LINUX_CPP_COMPONENTS_WEB}}-
compiler-${{hashFiles('**/scripts/cache_exclude_linux.sh')}}
- 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
run: echo "/host_usr_local/bin" >> $GITHUB_PATH
@ -66,8 +68,8 @@ jobs:
- name: Build
run: >-
source script/ci_setup_icc.sh &&
cmake --build build -j ${{ steps.cores.outputs.count }}
cmake --build build -j ${{steps.cores.outputs.count}}
- name: Run
working-directory: build
run: ctest --output-on-failure -j ${{ steps.cores.outputs.count }}
run: ctest --output-on-failure -j ${{steps.cores.outputs.count}}

View File

@ -25,7 +25,7 @@ jobs:
run:
shell: bash
runs-on: ${{ matrix.config.os }}
runs-on: ${{matrix.config.os}}
strategy:
fail-fast: false

View File

@ -51,12 +51,13 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: msys2/setup-msys2@v2
with:
update: true
msystem: ${{matrix.msystem}}
install: ${{ matrix.install}}
install: ${{matrix.install}}
- name: Install dependencies
run: script/ci_install_deps.sh