Change CI Build PDF to use tectonic #1188
This file contains 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: CI | |
on: | |
pull_request: | |
branches: | |
- "*" | |
push: | |
branches: | |
- "*" | |
jobs: | |
build-html: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v3 | |
with: | |
python-version: 3.7 | |
- name: Install Python Dependencies | |
run: | | |
pip install -r source/requirements.txt | |
- name: Build HTML | |
run: | | |
make html | |
- name: Archive HTML | |
uses: actions/upload-artifact@v2 | |
with: | |
name: gm0-html | |
path: build/html/ | |
build-pdf: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v3 | |
with: | |
python-version: 3.7 | |
- name: Install Python Dependencies | |
run: | | |
pip install -r source/requirements.txt | |
- name: Install LaTeX | |
run: | | |
sudo apt install texlive-fonts-recommended | |
cd /tmp/ | |
wget https://github.com/tectonic-typesetting/tectonic/releases/download/tectonic%400.14.1/tectonic-0.14.1-x86_64-unknown-linux-gnu.tar.gz | |
tar -xvf ./tectonic-0.14.1-x86_64-unknown-linux-gnu.tar.gz | |
- name: Build PDF | |
run: | | |
make latex | |
cd build/latex | |
/tmp/tectonic GameManual0.tex | |
- name: Archive PDF | |
uses: actions/upload-artifact@v2 | |
with: | |
name: gm0-pdf | |
path: build/latex/GameManual0.pdf | |
check-links: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v3 | |
with: | |
python-version: 3.7 | |
- name: Install Dependencies | |
run: | | |
pip install -r source/requirements.txt | |
- name: Check Links (Diff) | |
run: | | |
git fetch origin main | |
make linkcheckdiff | |
- name: Archive Linkcheck Failure | |
if: ${{ failure() }} | |
uses: actions/upload-artifact@v2 | |
with: | |
name: linkcheck-output.txt | |
path: build/linkcheck/output.txt | |
check-linting: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v3 | |
with: | |
python-version: 3.7 | |
- name: Install Dependencies | |
run: | | |
pip install -r source/requirements.txt | |
- name: Check Lint | |
run: | | |
make lint | |
check-spelling: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: misspell | |
uses: reviewdog/action-misspell@v1 | |
with: | |
locale: "US" | |
reporter: "github-check" | |
check-redirects: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Checkout main | |
run: | | |
git fetch origin main --depth=1 | |
- uses: actions/setup-python@v3 | |
with: | |
python-version: 3.7 | |
- name: Install Dependencies | |
run: | | |
pip install -r source/requirements.txt | |
- name: Check redirects | |
run: | | |
make rediraffecheckdiff |