bachelor-thesis/.github/workflows/main.yml

50 lines
1.1 KiB
YAML
Raw Normal View History

2021-04-05 21:01:40 +00:00
name: CI
on:
push:
branches: [ master ]
2021-04-05 21:01:40 +00:00
pull_request:
branches: [ master ]
2021-04-05 21:01:40 +00:00
workflow_dispatch:
jobs:
prereq:
2025-02-12 07:26:11 +00:00
name: Install prerequisites
runs-on: ubuntu-latest
steps:
2025-02-12 07:37:23 +00:00
- uses: actions/checkout@v3
- uses: actions/setup-node@v4
2025-02-12 07:26:11 +00:00
with:
node-version: 18
2021-04-05 21:01:40 +00:00
build:
2022-05-08 11:23:15 +00:00
name: Build thesis PDFs
2021-04-05 21:01:40 +00:00
runs-on: ubuntu-latest
2025-02-11 21:34:10 +00:00
needs: prereq
2021-04-06 06:00:06 +00:00
container: { image: 'aergus/latex' }
2021-04-05 21:01:40 +00:00
steps:
- uses: actions/checkout@v3
2021-04-05 21:01:40 +00:00
- name: Build the thesis
2021-04-06 06:00:06 +00:00
run: latexmk thesis && latexmk abstract-cz && latexmk abstract-en
2021-04-05 21:01:40 +00:00
- name: Upload artifacts
2022-05-08 11:27:12 +00:00
uses: actions/upload-artifact@v3
2021-04-05 21:01:40 +00:00
with:
name: Thesis
path: |
*.pdf
2022-05-08 09:03:59 +00:00
verify:
name: Verify PDF/A
runs-on: ubuntu-latest
needs: build
container: { image: 'ghcr.io/mff-cuni-cz/cuni-thesis-validator' }
2022-05-08 09:03:59 +00:00
steps:
2022-05-08 11:27:12 +00:00
- name: Get PDFs
uses: actions/download-artifact@v3
2022-05-08 11:23:15 +00:00
- name: Run VeraPDF
run: verify Thesis/*.pdf | tee /dev/stderr | grep -qE 'nonCompliant="0" failedJobs="0"'