ci: compare visual difference against latex build with the new template files #170
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Render nightly thesis | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "src/**" | |
| - "template/**" | |
| pull_request: | |
| types: [opened, edited, synchronize] | |
| paths: | |
| - "src/**" | |
| - "template/**" | |
| workflow_dispatch: | |
| jobs: | |
| render-paper: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v7 | |
| - name: Setup Typst | |
| uses: typst-community/setup-typst@v5 | |
| with: | |
| typst-version: 0.15.1 | |
| - name: Prepare open fonts | |
| run: make -C template FONT_DIR=../fonts fonts | |
| - name: Render template | |
| run: typst compile --root . --font-path fonts template/main.typ main.pdf | |
| - name: Upload Artifacts | |
| if: github.event_name != 'pull_request' | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: thesis | |
| path: main.pdf |