Joe bellus e1fee80a6a
All checks were successful
Publish PDF / publish (push) Successful in 17s
Test PDF / compile (push) Successful in 15s
CI Testing (#2)
# Added testing to CI

CI now tests compilation on every push.  Publish is restricted to the main branch

Reviewed-on: #2
Co-authored-by: Joe bellus <joe@5sigma.io>
Co-committed-by: Joe bellus <joe@5sigma.io>
2025-03-10 21:59:00 -04:00

26 lines
692 B
YAML

name: Test PDF
on: push
jobs:
compile:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
- name: Setup tectonic
run: |
apt -y install curl
curl --proto '=https' --tlsv1.2 -fsSL https://drop-sh.fullyjustified.net |sh
- name: Restore cache
id: cache-restore
uses: actions/cache/restore@v4
with:
path: ~/.cache/Tectonic
key: ${{ runner.os }}-tectonic-
- name: Compile latex
run: ./tectonic book.tex