Skip to content

LaTeX C++ Review Dune Organization CI #109

LaTeX C++ Review Dune Organization CI

LaTeX C++ Review Dune Organization CI #109

Workflow file for this run

name: LaTeX C++ Review Dune Organization CI
on:
push:
branches: [main]
paths:
- src/TeX/**
pull_request:
branches: [main]
schedule:
- cron: "0 14 * * 5"
# workflow_dispatch:
jobs:
build_latex:
runs-on: ubuntu-25.04
steps:
- name: Partial Clone
shell: bash
run: |
REPO="https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git"
git config --global user.email github-actions@github.com
git config --global user.name github-actions
git clone -q --filter=blob:none --no-checkout --depth=1 --sparse $REPO .
git sparse-checkout set src/TeX
git checkout
- uses: addnab/docker-run-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: ghcr.io
image: ghcr.io/cpp-review-dune/introductory-review/texlive:latest
options: -v ${{github.workspace}}:/work
shell: bash
run: |
sudo chown -R gitpod:gitpod /work
cd /work/src/TeX && arara -L de [Ma]*.tex
- name: Check pdf files
run: |
find src/TeX -type d \( -path src/TeX/img -o -path src/TeX/svg-inkscape \) -prune -false -o -type f -name "*.pdf" -exec file -- {} + | grep -q ' PDF '
- name: "Tar files"
run: |
sudo chown runner:docker -R .
tar --zstd -cf PDF.tar.zst src/TeX/*.pdf
- uses: actions/upload-artifact@v4
with:
name: PDF-artifact
path: PDF.tar.zst
if-no-files-found: error
retention-days: 90