ssp/.github/workflows/single-header.yml

52 lines
1.0 KiB
YAML
Raw Permalink Normal View History

2023-08-07 17:28:53 +02:00
name: single-header-ci
on:
2023-08-07 18:48:21 +02:00
workflow_dispatch:
2023-08-07 17:28:53 +02:00
push:
branches:
- master
- feature/**
- improvement/**
- bugfix/**
pull_request:
branches:
- master
- feature/**
- improvement/**
- bugfix/**
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