From 3719450eef449630903ea6a2a935fc92b1f7cd4f Mon Sep 17 00:00:00 2001 From: Jheison Martinez Bolivar Date: Fri, 13 Nov 2026 13:02:59 -0500 Subject: [PATCH 1/2] ci: build and check every template with texforge on each pull request --- .github/workflows/check-templates.yml | 49 +++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/check-templates.yml diff --git a/.github/workflows/check-templates.yml b/.github/workflows/check-templates.yml new file mode 100644 index 0000000..d0466dc --- /dev/null +++ b/.github/workflows/check-templates.yml @@ -0,0 +1,49 @@ +name: check-templates + +on: + pull_request: + workflow_dispatch: + +permissions: + contents: read + +concurrency: + group: check-templates-${{ github.ref }} + cancel-in-progress: true + +jobs: + check: + runs-on: ubuntu-latest + timeout-minutes: 30 + env: + TEXFORGE_VERSION: v0.10.1 + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Install texforge + run: | + set -euo pipefail + base="https://github.com/UniverLab/texforge/releases/download/${TEXFORGE_VERSION}" + asset="texforge-${TEXFORGE_VERSION}-x86_64-unknown-linux-musl.tar.gz" + cd "$RUNNER_TEMP" + curl -fsSLO "$base/$asset" + curl -fsSLO "$base/SHA256SUMS.txt" + grep " $asset\$" SHA256SUMS.txt | sha256sum -c - + mkdir -p texforge-bin + tar -xzf "$asset" -C texforge-bin + bin=$(find texforge-bin -type f -name texforge | head -1) + install -m 0755 "$bin" /usr/local/bin/texforge + texforge --version + + - name: Cache the TeX engine and bundle + uses: actions/cache@v4 + with: + path: | + ~/.texforge + ~/.cache/Tectonic + key: texforge-${{ env.TEXFORGE_VERSION }}-${{ runner.os }} + + - name: Check every template + run: ./check-templates.sh From fc41f311a1ce77bafe821c5d92830e3f3a97dd07 Mon Sep 17 00:00:00 2001 From: Jheison Martinez Bolivar Date: Fri, 13 Nov 2026 13:05:42 -0500 Subject: [PATCH 2/2] ci: run the template check through bash --- .github/workflows/check-templates.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check-templates.yml b/.github/workflows/check-templates.yml index d0466dc..4e2f7b2 100644 --- a/.github/workflows/check-templates.yml +++ b/.github/workflows/check-templates.yml @@ -46,4 +46,4 @@ jobs: key: texforge-${{ env.TEXFORGE_VERSION }}-${{ runner.os }} - name: Check every template - run: ./check-templates.sh + run: bash ./check-templates.sh