-
Notifications
You must be signed in to change notification settings - Fork 110
59 lines (58 loc) · 1.45 KB
/
infra.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# DO NOT EDIT - GENERATED FROM .github/workflows/infra.ys
name: infra
defaults:
run:
shell: bash -e -x {0}
'on':
workflow_dispatch: null
push:
branches:
- master
pull_request:
branches:
- master
env:
PROJ_PFX_TARGET: ryml-
PROJ_PFX_CMAKE: RYML_
CMAKE_FLAGS: -DRYML_TEST_SUITE=ON
NUM_JOBS_BUILD: null
jobs:
check_workflows:
if: |
${{
(
!contains(github.event.head_commit.message, '[skip all]')
&&
!contains(github.event.head_commit.message, '[skip infra]')
&&
!contains(github.event.head_commit.message, '[skip infra.check_workflows]')
)
||
contains(github.event.head_commit.message, '[only infra]')
||
contains(github.event.head_commit.message, '[only infra.check_workflows]')
}}
continue-on-error: false
runs-on: ubuntu-24.04
steps:
- name: checkout (action)
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- run: |
echo msg=${{github.event.head_commit.message}}
- name: install ys
run: make -C .github/workflows install-ys
- name: generate workflows
run: make -C .github/workflows build
- name: test workflows
run: |
wc --version
wc --help
make -C .github/workflows test
status=$?
if [ $status != 0 ] ; then
echo "ERROR: generated workflows are out of date"
fi
exit $status