bachelor-thesis/.github/workflows/main.yml
oleg.petruny c4353aa389
Some checks failed
CI / Install prerequisites (push) Failing after 28s
CI / Build thesis PDFs (push) Has been skipped
CI / Verify PDF/A (push) Has been skipped
CI / Build thesis PDFs and push them to pages (push) Failing after 3s
Update .github/workflows/main.yml
2025-02-12 07:37:23 +00:00

50 lines
1.1 KiB
YAML

name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
prereq:
name: Install prerequisites
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v4
with:
node-version: 18
build:
name: Build thesis PDFs
runs-on: ubuntu-latest
needs: prereq
container: { image: 'aergus/latex' }
steps:
- uses: actions/checkout@v3
- name: Build the thesis
run: latexmk thesis && latexmk abstract-cz && latexmk abstract-en
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: Thesis
path: |
*.pdf
verify:
name: Verify PDF/A
runs-on: ubuntu-latest
needs: build
container: { image: 'ghcr.io/mff-cuni-cz/cuni-thesis-validator' }
steps:
- name: Get PDFs
uses: actions/download-artifact@v3
- name: Run VeraPDF
run: verify Thesis/*.pdf | tee /dev/stderr | grep -qE 'nonCompliant="0" failedJobs="0"'