From fc922e4931275ec4cb292ae7dee0731cf686c2ea Mon Sep 17 00:00:00 2001 From: Mark Date: Tue, 21 Jan 2025 17:09:22 -0800 Subject: [PATCH] act --- .github/workflows/build.yml | 38 +++++++++++++------------------------ 1 file changed, 13 insertions(+), 25 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 51a3567..d8c3b41 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,16 +13,16 @@ jobs: steps: - uses: actions/checkout@v4 - # Could also install texlive-full, - # but that takes ~20 minutes. - - name: Install TeXLive + # Could instead install `texlive-full`, but that takes ~20 minutes. + # We'll specify the packages we need manually. + - name: "Install TeXLive" run: | sudo apt update DEBIAN_FRONTEND=noninteractive \ sudo apt install --yes \ texlive texlive-xetex - - name: Download Typst + - 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" @@ -30,34 +30,22 @@ jobs: rm "typst-x86_64-unknown-linux-musl.tar.xz" rm -dr "typst-x86_64-unknown-linux-musl" - - name: Build handouts + # Builds all handouts, LaTeX and Typst + - name: "Build handouts" run: TYPST_PATH="$(pwd)/typst" python tools/build/main.py - - name: Advanced logs + # Upload logs, even if build fails. + # LaTeX stdout/stderr isn't always helpful. + - name: "Upload LaTeX logs" uses: actions/upload-artifact@v3 if: always() with: - name: "logs: advanced" - path: "Advanced/*" + name: "LaTeX logs" + path: "**/*.log" retention-days: 1 - - name: Intermediate logs - uses: actions/upload-artifact@v3 - if: always() - with: - name: "logs: intermediate" - path: "Intermediate/*" - retention-days: 1 - - - name: Warm-Up logs - uses: actions/upload-artifact@v3 - if: always() - with: - name: "logs: warm-ups" - path: "Warm-Ups/*" - retention-days: 1 - - - name: Upload output + # Upload build output + - name: "Upload output" uses: actions/upload-artifact@v3 with: name: output