act
Some checks failed
Lints / typos (push) Successful in 18s
Build and deploy / build (push) Failing after 5m34s

This commit is contained in:
Mark 2025-01-21 16:46:23 -08:00
parent ac3d5b20f2
commit c475b7f178
Signed by: Mark
GPG Key ID: C6D63995FE72FD80
2 changed files with 15 additions and 3 deletions

View File

@ -18,13 +18,17 @@ jobs:
- name: Install TeXLive - name: Install TeXLive
run: | run: |
sudo apt update sudo apt update
DEBIAN_FRONTEND=noninteractive sudo apt install --yes texlive texlive-xetex DEBIAN_FRONTEND=noninteractive \
sudo apt install --yes \
texlive texlive-xetex
- name: Download Typst - name: Download Typst
run: | run: |
wget "https://github.com/typst/typst/releases/download/v0.12.0/typst-x86_64-unknown-linux-musl.tar.xz" wget "https://github.com/typst/typst/releases/download/v0.12.0/typst-x86_64-unknown-linux-musl.tar.xz"
tar -xf "typst-x86_64-unknown-linux-musl.tar.xz" tar -xf "typst-x86_64-unknown-linux-musl.tar.xz"
mv "typst-x86_64-unknown-linux-musl/typst" . mv "typst-x86_64-unknown-linux-musl/typst" .
rm "typst-x86_64-unknown-linux-musl.tar.xz"
rm -dr "typst-x86_64-unknown-linux-musl"
- name: Build handouts - name: Build handouts
run: TYPST_PATH="$(pwd)/typst" python tools/build/main.py run: TYPST_PATH="$(pwd)/typst" python tools/build/main.py

View File

@ -213,7 +213,11 @@ def build_xetex(source_dir: Path, out_subdir: Path) -> IndexEntry | None:
stderr=subprocess.PIPE, stderr=subprocess.PIPE,
) )
try:
shutil.copy(source_dir / "main.pdf", f"{out}/{meta['title']}.pdf") shutil.copy(source_dir / "main.pdf", f"{out}/{meta['title']}.pdf")
except Exception as e:
log(f"Error: {e}")
log_error(res)
if res.returncode != 0: if res.returncode != 0:
log_error(res) log_error(res)
@ -232,7 +236,11 @@ def build_xetex(source_dir: Path, out_subdir: Path) -> IndexEntry | None:
stderr=subprocess.PIPE, stderr=subprocess.PIPE,
) )
try:
shutil.copy(source_dir / "main.pdf", f"{out}/{meta['title']}.sols.pdf") shutil.copy(source_dir / "main.pdf", f"{out}/{meta['title']}.sols.pdf")
except Exception as e:
log(f"Error: {e}")
log_error(res)
if res.returncode != 0: if res.returncode != 0:
log_error(res) log_error(res)