Skip to content

Commit 0b47439

Browse files
committed
gh-actions: Build and deploy
Signed-off-by: Tobias Deiminger <tobias.deiminger@linutronix.de>
1 parent ab4df19 commit 0b47439

1 file changed

Lines changed: 51 additions & 5 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 51 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,63 @@
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 "Found %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:
11-
- uses: actions/checkout@v3
24+
- uses: actions/checkout@v4
1225

1326
- name: install StrictDoc
14-
run: sudo apt install coccinelle
27+
run: pipx install strictdoc
1528

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

0 commit comments

Comments
 (0)