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

59 lines
1.3 KiB
YAML
Raw Normal View History

2021-02-21 22:48:08 +01:00
name: ubuntu-latest-gcc-ci
2021-01-06 03:00:24 +01:00
on:
push:
branches:
- master
2021-01-21 02:05:05 +01:00
- feature/**
2021-02-21 10:21:50 +01:00
- improvement/**
- bugfix/**
2021-01-06 03:00:24 +01:00
pull_request:
branches:
- master
2021-01-21 02:05:05 +01:00
- feature/**
2021-02-21 10:21:50 +01:00
- improvement/**
- bugfix/**
2021-01-06 03:00:24 +01:00
jobs:
gcc_tests:
if: >-
! contains(toJSON(github.event.commits.*.message), '[skip ci]') &&
! contains(toJSON(github.event.commits.*.message), '[skip github]')
strategy:
matrix:
2023-08-06 23:23:32 +02:00
version: ['latest', '13', '12', '11', '10', '9', '8']
2023-08-07 01:09:37 +02:00
type: [Release, Debug]
2021-01-06 03:00:24 +01:00
runs-on: ubuntu-latest
2023-08-07 01:09:37 +02:00
name: GCC "${{matrix.version}}:${{matrix.type}}"
2021-01-06 03:00:24 +01:00
container:
2023-08-07 01:09:37 +02:00
image: gcc:${{matrix.version}}
2021-01-06 03:00:24 +01:00
options: -v /usr/local:/host_usr_local
steps:
- uses: actions/checkout@v1
- uses: friendlyanon/fetch-core-count@v1
id: cores
- name: CMake
run: echo "/host_usr_local/bin" >> $GITHUB_PATH
- name: Install dependencies
run: script/ci_install_deps.sh
- name: Configure
2023-08-07 01:09:37 +02:00
run: cmake -S test -B build -D CMAKE_BUILD_TYPE=${{matrix.type}}
2021-01-06 03:00:24 +01:00
- name: Build
2023-08-07 01:09:37 +02:00
run: cmake --build build -j ${{steps.cores.outputs.count}}
2021-01-06 03:00:24 +01:00
- name: Run
working-directory: build
2023-08-07 01:09:37 +02:00
run: ctest --output-on-failure -j ${{steps.cores.outputs.count}}