2021-04-05 21:01:40 +00:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on:
|
2022-05-09 18:58:22 +00:00
|
|
|
push:
|
|
|
|
branches: [ master ]
|
2021-04-05 21:01:40 +00:00
|
|
|
pull_request:
|
2022-05-09 18:58:22 +00:00
|
|
|
branches: [ master ]
|
2021-04-05 21:01:40 +00:00
|
|
|
|
|
|
|
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:
|
2025-02-11 21:30:38 +00:00
|
|
|
- name: Install nodejs
|
|
|
|
run: apt-get update && apt-get install -y nodejs
|
|
|
|
- uses: https://gitea.com/ScMi1/checkout@v1
|
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
|
2022-05-09 16:15:51 +00:00
|
|
|
container: { image: 'ghcr.io/mff-cuni-cz/cuni-thesis-validator' }
|
2022-05-08 09:03:59 +00:00
|
|
|
|
|
|
|
steps:
|
2025-02-11 21:30:38 +00:00
|
|
|
- name: Install nodejs
|
|
|
|
run: apt-get update && apt-get upgrade -y && apt-get install -y curl && curl -fsSL https://deb.nodesource.com/setup_16.x | bash - && apt-get install -y nodejs
|
2022-05-08 11:27:12 +00:00
|
|
|
- name: Get PDFs
|
2025-02-11 21:30:38 +00:00
|
|
|
uses: https://gitea.com/actions/download-artifact@v3
|
2022-05-08 11:23:15 +00:00
|
|
|
- name: Run VeraPDF
|
2024-05-06 11:14:42 +00:00
|
|
|
run: verify Thesis/*.pdf | tee /dev/stderr | grep -qE 'nonCompliant="0" failedJobs="0"'
|