From 3b42a5588a556e9082656f798eb6de85b53501c6 Mon Sep 17 00:00:00 2001 From: Mads Mogensen Date: Wed, 12 Jun 2024 15:15:57 +0000 Subject: [PATCH] CI: Use make and don't use a container The make file is how we compile this stuff locally. So the CI should do the same. Now, if the make file is broken the CI fails :) Also containers are cringe. Use ubuntus package manager instead. This reduces the build time with ~1 minute. --- .github/workflows/compile.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 3ff4ab3..cc52621 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -14,22 +14,17 @@ on: jobs: build: runs-on: ubuntu-latest - container: - image: texlive/texlive:latest steps: - name: Install prerequisites - run: apt-get update && apt-get install -y ghostscript + run: sudo apt-get install -y texlive-latex-extra ghostscript psutils - name: Checkout repository uses: actions/checkout@v2 - name: Compile the document run: | - latex main.tex - makeindex main - latex main.tex - dvips main.dvi - dvipdf main.dvi kontinuerlig.pdf - sh ./ps2book.sh main.ps - ps2pdf main_book.ps sangbog.pdf + make pdf + make booklet + mv main.pdf kontinuerlig.pdf + mv main_book.pdf sangbog.pdf - name: Upload songbook (booklet) uses: actions/upload-artifact@v2 with: