act
This commit is contained in:
parent
ac3d5b20f2
commit
c475b7f178
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
@ -18,13 +18,17 @@ jobs:
|
||||
- name: Install TeXLive
|
||||
run: |
|
||||
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
|
||||
run: |
|
||||
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"
|
||||
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
|
||||
run: TYPST_PATH="$(pwd)/typst" python tools/build/main.py
|
||||
|
@ -213,7 +213,11 @@ def build_xetex(source_dir: Path, out_subdir: Path) -> IndexEntry | None:
|
||||
stderr=subprocess.PIPE,
|
||||
)
|
||||
|
||||
shutil.copy(source_dir / "main.pdf", f"{out}/{meta['title']}.pdf")
|
||||
try:
|
||||
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:
|
||||
log_error(res)
|
||||
@ -232,7 +236,11 @@ def build_xetex(source_dir: Path, out_subdir: Path) -> IndexEntry | None:
|
||||
stderr=subprocess.PIPE,
|
||||
)
|
||||
|
||||
shutil.copy(source_dir / "main.pdf", f"{out}/{meta['title']}.sols.pdf")
|
||||
try:
|
||||
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:
|
||||
log_error(res)
|
||||
|
Loading…
x
Reference in New Issue
Block a user