|
1 | 1 | # A workflow to create the Cyphal Specification PDF |
2 | 2 |
|
3 | 3 | name: CI |
4 | | -on: [ push, pull_request ] |
| 4 | +on: push |
5 | 5 |
|
6 | 6 | jobs: |
7 | 7 | build: |
8 | 8 | runs-on: ubuntu-latest |
9 | 9 | name: Build PDF file using LaTeX |
10 | | - if: github.event_name == 'pull_request' || contains(github.ref, '/master') || contains(github.ref, '/dev') |
11 | 10 |
|
12 | 11 | steps: |
13 | | - # Checks-out the repository under $GITHUB_WORKSPACE |
14 | 12 | - name: Checkout |
15 | | - uses: actions/checkout@v2 |
| 13 | + uses: actions/checkout@v3 |
16 | 14 | with: |
17 | 15 | submodules: recursive |
18 | 16 |
|
19 | | - # Compile the Cyphal specification with texer DockerHub container |
20 | 17 | - name: Run texer container |
21 | | - uses: docker://uavcan/texer:ubuntu-18.04 |
| 18 | + uses: docker://ghcr.io/opencyphal/texer:te22.4.1 |
22 | 19 | with: |
23 | 20 | entrypoint: /bin/bash |
24 | | - args: -c "pip install -U setuptools && pip install -r requirements.txt && ./compile.sh" |
| 21 | + args: > |
| 22 | + -c " |
| 23 | + git config --global --add safe.directory '*' && |
| 24 | + pip install -U setuptools && |
| 25 | + pip install -r requirements.txt && |
| 26 | + ./compile.sh |
| 27 | + " |
25 | 28 |
|
26 | | - # Upload artifact |
27 | 29 | - name: Upload pdf as an artifact |
28 | | - uses: actions/upload-artifact@v2 |
| 30 | + uses: actions/upload-artifact@v3 |
29 | 31 | with: |
30 | 32 | name: Cyphal Specification |
31 | 33 | path: specification/Cyphal_Specification.pdf |
| 34 | + if-no-files-found: error |
| 35 | + |
| 36 | + - name: Upload diagnostic snapshot |
| 37 | + uses: actions/upload-artifact@v3 |
| 38 | + if: always() |
| 39 | + with: |
| 40 | + name: workspace-${{github.job}} |
| 41 | + path: '*' |
| 42 | + retention-days: 3 |
0 commit comments