Bump actions/checkout from 5 to 6 #1
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
| permissions: | |
| contents: read | |
| name: Build typst | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build_release_thesis: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: '0' | |
| lfs: true | |
| - name: Cache Fonts | |
| id: cache-fonts | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.local/share/fonts | |
| key: newcomputermodern-fonts-${{ runner.os }} | |
| restore-keys: | | |
| newcomputermodern-fonts- | |
| - name: Install Fonts (if not cached) | |
| if: steps.cache-fonts.outputs.cache-hit != 'true' | |
| run: | | |
| mkdir -p ~/.local/share/fonts | |
| cp -r fonts/newComputerModern/*.otf ~/.local/share/fonts/ | |
| fc-cache -f -v # Refresh font cache | |
| - uses: typst-community/setup-typst@v4 | |
| - run: typst compile thesis.typ thesis.pdf | |
| - run: typst compile proposal.typ proposal.pdf | |
| - run: typst compile registration_certificate.typ registration_certificate.pdf | |
| - run: typst compile feedbacklog.typ feedbacklog.pdf |