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

36 lines
793 B
YAML
Raw Normal View History

2021-04-05 21:01:40 +00:00
name: CI
on:
pull_request:
workflow_dispatch:
jobs:
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
2021-04-06 06:00:06 +00:00
container: { image: 'aergus/latex' }
2021-04-05 21:01:40 +00:00
steps:
- uses: actions/checkout@v2
- 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
2022-05-08 11:23:15 +00:00
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
2022-05-08 11:27:12 +00:00
run: verify Thesis/*.pdf | tee /dev/stderr | grep -qE 'nonCompliant="0"'