Skip to content

Commit

Permalink
CI: Use make and don't use a container
Browse files Browse the repository at this point in the history
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.

This is a fixed version of #35
  • Loading branch information
mads256h authored Jun 23, 2024
1 parent b85c95b commit f0730d8
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 update && 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:
Expand Down

0 comments on commit f0730d8

Please sign in to comment.