2023-08-07 17:28:53 +02:00
|
|
|
name: single-header-ci
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- feature/**
|
|
|
|
- improvement/**
|
|
|
|
- bugfix/**
|
|
|
|
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- feature/**
|
|
|
|
- improvement/**
|
|
|
|
- bugfix/**
|
|
|
|
|
2023-08-07 18:37:58 +02:00
|
|
|
workflow_dispatch:
|
2023-08-07 18:36:38 +02:00
|
|
|
|
2023-08-07 17:28:53 +02:00
|
|
|
jobs:
|
2023-08-07 17:34:28 +02:00
|
|
|
single_header_tests:
|
2023-08-07 17:46:20 +02:00
|
|
|
if: >-
|
|
|
|
! contains(toJSON(github.event.commits.*.message), '[skip ci]') &&
|
|
|
|
! contains(toJSON(github.event.commits.*.message), '[skip github]')
|
2023-08-07 17:28:53 +02:00
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
name: "Single Header Test"
|
2023-08-07 17:40:14 +02:00
|
|
|
|
2023-08-07 17:28:53 +02:00
|
|
|
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
|
|
|
|
|
|
|
|
- name: Single header update check
|
2023-08-07 17:57:26 +02:00
|
|
|
run: |
|
|
|
|
script/single_header_generator.py > tmp.hpp
|
2023-08-07 18:00:28 +02:00
|
|
|
diff ssp.hpp tmp.hpp
|
2023-08-07 17:57:26 +02:00
|
|
|
|
|
|
|
- name: Single header compile check
|
|
|
|
run: ./test/test_single_header.sh
|