Skip to content

Commit 876b5ae

Browse files
committed
gh-actions: Build and deploy
Signed-off-by: Tobias Deiminger <tobias.deiminger@linutronix.de>
1 parent 5d590b3 commit 876b5ae

1 file changed

Lines changed: 44 additions & 4 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 44 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,57 @@
11
name: Kernel Requirements CI
22
on:
33
push:
4+
45
jobs:
6+
discover-llr:
7+
name: Find LLR candidates with coccinelle
8+
runs-on: ubuntu-24.04
9+
steps:
10+
- uses: actions/checkout@v3
11+
12+
- name: install coccinelle
13+
run: sudo apt install coccinelle
14+
15+
- name: Run coccinelle
16+
run: scripts/coccinelle/docs/find_doc_elements.sh | tee >(wc -l | xargs printf "We need to document %s elements.\n")
17+
518
build:
619
permissions:
720
contents: write
8-
name: Search for functions that need documentation
21+
name: Validate and render requirements
922
runs-on: ubuntu-24.04
1023
steps:
1124
- uses: actions/checkout@v3
25+
with:
26+
fetch-depth: 0 # fetch complete history for --generate-diff-git
27+
28+
- run: git branch lpc25_add_trace_events_enabled remotes/origin/lpc25_add_trace_events_enabled
1229

1330
- name: install StrictDoc
14-
run: sudo apt install coccinelle
31+
run: pipx install strictdoc
1532

16-
- name: Run coccinelle
17-
run: cocci/find_doc_elements.sh | tee >(wc -l | xargs printf "We need to document %s elements.\n")
33+
- name: strictdoc export
34+
run: strictdoc export . --generate-diff-git="lpc25..lpc25_add_trace_events_enabled"
35+
36+
- name: Upload static files as artifact
37+
id: deployment
38+
uses: actions/upload-pages-artifact@v3
39+
with:
40+
path: output/html
41+
42+
deploy:
43+
needs: build
44+
45+
permissions:
46+
pages: write
47+
id-token: write
48+
49+
environment:
50+
name: github-pages
51+
url: ${{ steps.deployment.outputs.page_url }}
52+
53+
runs-on: ubuntu-latest
54+
steps:
55+
- name: Deploy to GitHub Pages
56+
id: deployment
57+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)