From d37ec12bb540a1dd5a4b7ea659842509f979296a Mon Sep 17 00:00:00 2001 From: ado Date: Mon, 7 Aug 2023 17:28:53 +0200 Subject: [PATCH] [skip ci] Add single-header.yml --- .github/workflows/single-header.yml | 45 +++++++++++++++++++++++ .github/workflows/ubuntu-latest-clang.yml | 4 +- .github/workflows/ubuntu-latest-gcc.yml | 3 +- 3 files changed, 47 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/single-header.yml diff --git a/.github/workflows/single-header.yml b/.github/workflows/single-header.yml new file mode 100644 index 0000000..1ad2ad4 --- /dev/null +++ b/.github/workflows/single-header.yml @@ -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 diff --git a/.github/workflows/ubuntu-latest-clang.yml b/.github/workflows/ubuntu-latest-clang.yml index df855ad..6785c36 100644 --- a/.github/workflows/ubuntu-latest-clang.yml +++ b/.github/workflows/ubuntu-latest-clang.yml @@ -25,8 +25,7 @@ jobs: matrix: # cmake clang12 is not able to compile a simple test program. # /usr/bin/ld: cannot find -lunwind - version: - ['latest', '16', '15', '14', '13', '11', '10', '9', '8', '7'] + version: ['latest', '15', '14', '13', '11', '10', '9', '8', '7'] type: [Release, Debug] runs-on: ubuntu-latest @@ -35,7 +34,6 @@ jobs: container: image: silkeh/clang:${{matrix.version}} - options: -v /usr/local:/host_usr_local env: diff --git a/.github/workflows/ubuntu-latest-gcc.yml b/.github/workflows/ubuntu-latest-gcc.yml index 8cc83f2..f5febd0 100644 --- a/.github/workflows/ubuntu-latest-gcc.yml +++ b/.github/workflows/ubuntu-latest-gcc.yml @@ -23,7 +23,7 @@ jobs: strategy: matrix: - version: ['latest', '13', '12', '11', '10', '9', '8'] + version: ['latest', '12', '11', '10', '9', '8'] type: [Release, Debug] runs-on: ubuntu-latest @@ -32,7 +32,6 @@ jobs: container: image: gcc:${{matrix.version}} - options: -v /usr/local:/host_usr_local steps: