Skip to content

Commit

Permalink
ci: build.py failable
Browse files Browse the repository at this point in the history
  • Loading branch information
shirok1 committed Feb 26, 2025
1 parent 91fec4c commit 7e41b67
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion ci/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,12 @@
input_file = f"templates/{basename}.typ"
output_file = f"build/{basename}.pdf"

subprocess.run(["typst", "compile", input_file, output_file, "--root", "."])
command = ["typst", "compile", input_file, output_file, "--root", "."]
print(f"[build.py] Running command: {' '.join(command)}")
res = subprocess.run(command)
if res.returncode != 0:
print(
f"[build.py] Error: Build {input_file} failed with exit code {res.returncode}"
)
exit(res.returncode)
print()

0 comments on commit 7e41b67

Please sign in to comment.