action
Some checks failed
Lints / typos (push) Successful in 23s
Build and deploy / build (push) Failing after 2m18s

This commit is contained in:
Mark 2025-01-21 16:25:24 -08:00
parent 9a65d3a46a
commit 433ccfb929
Signed by: Mark
GPG Key ID: C6D63995FE72FD80
2 changed files with 16 additions and 13 deletions

View File

@ -13,22 +13,20 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
# Could also install texlive-full, but that takes a long time.
- name: Install TeXLive - name: Install TeXLive
run: | run: |
sudo apt update sudo apt update
DEBIAN_FRONTEND=noninteractive sudo apt install --yes texlive-full DEBIAN_FRONTEND=noninteractive sudo apt install --yes texlive
#- name: Install TeXLive - name: Download Typst
# run: | run: |
# cd /tmp wget "https://github.com/typst/typst/releases/download/v0.12.0/typst-x86_64-unknown-linux-musl.tar.xz"
# wget "https://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz" tar -xf "typst-x86_64-unknown-linux-musl.tar.xz"
# zcat < install-tl-unx.tar.gz | tar xf - mv "typst-x86_64-unknown-linux-musl/typst" .
# rm "install-tl-unx.tar.gz"
# cd "install-tl-20250121"
# sudo perl ./install-tl --no-interaction
- name: Build LaTeX handouts - name: Build handouts
run: python tools/build/main.py run: TYPST_PATH="./typst" python tools/build/main.py
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v3
with: with:

View File

@ -16,10 +16,15 @@ ROOT: Path = Path(os.getcwd())
### CONFIGURATION ### CONFIGURATION
OUT_DIR: Path = ROOT / "output" OUT_DIR: Path = ROOT / "output"
TYPST_PATH = "typst" TYPST_PATH: str = "typst"
XETEX_PATH = "xelatex" XETEX_PATH: str = "xelatex"
### END CONFIGURATION ### END CONFIGURATION
# Allow path override
_env = os.environ.get("TYPST_PATH")
if isinstance(_env, str):
TYPST_PATH = _env
def log(msg): def log(msg):
print(f"[BUILD.PY] {msg}") print(f"[BUILD.PY] {msg}")