[skip ci] Add single-header.yml

This commit is contained in:
ado 2023-08-07 17:28:53 +02:00
parent 9d7441b178
commit d37ec12bb5
3 changed files with 47 additions and 5 deletions

45
.github/workflows/single-header.yml vendored Normal file
View File

@ -0,0 +1,45 @@
name: single-header-ci
on:
push:
branches:
- master
- feature/**
- improvement/**
- bugfix/**
pull_request:
branches:
- master
- feature/**
- improvement/**
- bugfix/**
jobs:
clang_tests:
#if: >-
#! contains(toJSON(github.event.commits.*.message), '[skip ci]') &&
#! contains(toJSON(github.event.commits.*.message), '[skip github]')
runs-on: ubuntu-latest
name: "Single Header Test"
}
container:
image: gcc:latest
options: -v /usr/local:/host_usr_local
steps:
- uses: actions/checkout@v1
- uses: friendlyanon/fetch-core-count@v1
id: cores
- name: Install dependencies
run: |
apt-get update
apt-get install -y git
script/ci_install_deps.sh
- name: Single header update check
run: script/single_header_generator.py

View File

@ -25,8 +25,7 @@ jobs:
matrix: matrix:
# cmake clang12 is not able to compile a simple test program. # cmake clang12 is not able to compile a simple test program.
# /usr/bin/ld: cannot find -lunwind # /usr/bin/ld: cannot find -lunwind
version: version: ['latest', '15', '14', '13', '11', '10', '9', '8', '7']
['latest', '16', '15', '14', '13', '11', '10', '9', '8', '7']
type: [Release, Debug] type: [Release, Debug]
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -35,7 +34,6 @@ jobs:
container: container:
image: silkeh/clang:${{matrix.version}} image: silkeh/clang:${{matrix.version}}
options: -v /usr/local:/host_usr_local options: -v /usr/local:/host_usr_local
env: env:

View File

@ -23,7 +23,7 @@ jobs:
strategy: strategy:
matrix: matrix:
version: ['latest', '13', '12', '11', '10', '9', '8'] version: ['latest', '12', '11', '10', '9', '8']
type: [Release, Debug] type: [Release, Debug]
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -32,7 +32,6 @@ jobs:
container: container:
image: gcc:${{matrix.version}} image: gcc:${{matrix.version}}
options: -v /usr/local:/host_usr_local options: -v /usr/local:/host_usr_local
steps: steps: