|
1 | 1 | name: Kernel Requirements CI |
2 | 2 | on: |
3 | 3 | push: |
| 4 | + |
4 | 5 | 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 | + |
5 | 18 | build: |
6 | 19 | permissions: |
7 | 20 | contents: write |
8 | | - name: Search for functions that need documentation |
| 21 | + name: Validate and render requirements |
9 | 22 | runs-on: ubuntu-24.04 |
10 | 23 | steps: |
11 | | - - uses: actions/checkout@v3 |
| 24 | + - uses: actions/checkout@v4 |
12 | 25 |
|
13 | 26 | - name: install StrictDoc |
14 | | - run: sudo apt install coccinelle |
| 27 | + run: pipx install strictdoc |
15 | 28 |
|
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