Skip to content

Commit 0108545

Browse files
committed
CI/CD: more use workflow_call, add checkers
1 parent 15eb0ee commit 0108545

5 files changed

Lines changed: 37 additions & 4 deletions

File tree

‎.github/workflows/ccpp.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: C/C++ CI
22

3-
on: [workflow_dispatch]
3+
on: [workflow_call]
44

55
jobs:
66
build:

‎.github/workflows/checkers.yml‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Pre-merge checkers
2+
3+
on: [pull_request, push]
4+
5+
jobs:
6+
check-backends:
7+
name: Check backends
8+
uses: ./.github/workflows/ccpp.yml
9+
10+
check-docs:
11+
name: Check documentation
12+
uses: ./.github/workflows/docs.yml
13+
14+
check-webver:
15+
name: Check web version
16+
uses: ./.github/workflows/webver.yml

‎.github/workflows/deploy.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,13 @@ on:
77
jobs:
88
build-docs:
99
uses: ./.github/workflows/docs.yml
10+
with:
11+
publish: true
1012

1113
build-webver:
1214
uses: ./.github/workflows/webver.yml
15+
with:
16+
publish: true
1317

1418
deploy-ghpages:
1519
needs: [build-docs, build-webver]

‎.github/workflows/docs.yml‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: Build documentation
22

3-
on: [push, pull_request, workflow_call]
3+
on:
4+
workflow_call:
5+
inputs:
6+
publish:
7+
type: boolean
8+
required: false
9+
default: false
410

511
jobs:
612
build-documentation:
@@ -15,6 +21,7 @@ jobs:
1521
- name: build doc
1622
run: make docs
1723
- name: Upload docs artifact
24+
if: inputs.publish
1825
uses: actions/upload-artifact@v4
1926
with:
2027
name: doc

‎.github/workflows/webver.yml‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: Build Web Version
22

3-
on: [push, pull_request, workflow_call]
3+
on:
4+
workflow_call:
5+
inputs:
6+
publish:
7+
type: boolean
8+
required: false
9+
default: false
410

511
jobs:
612
build-webver:
@@ -24,10 +30,10 @@ jobs:
2430
run: embuilder build sdl3
2531

2632
- name: Build web demo
27-
#working-directory: demo/sdl3_renderer
2833
run: make webver
2934

3035
- name: Upload webversion artifact
36+
if: inputs.publish
3137
uses: actions/upload-artifact@v4
3238
with:
3339
name: web

0 commit comments

Comments
 (0)