Skip to content

Commit

Permalink
Cleanup makefiles
Browse files Browse the repository at this point in the history
Tried to reproduce the CI document (revision\n_0 in footer)
So i first replaced the build process with latexmk.

- moved all "documents" into documents
  - let the makefile generate a rule for each tex file there
- removed unused stuff from the makefile
- add lint target to run chktex (as lint ci stage does)
- use stable ci image (texlive/texlive:TL2022-historic)
- update latexdockercmd.sh to just run "make all"
  • Loading branch information
LeroyR committed Mar 15, 2024
1 parent d290a49 commit 45c47ab
Show file tree
Hide file tree
Showing 19 changed files with 106 additions and 1,098 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
build:
name: build-${{ matrix.document }}
runs-on: ubuntu-latest
container: leplusorg/latex:latest
container: texlive/texlive:TL2022-historic
needs: [lint]
strategy:
fail-fast: false
Expand All @@ -28,12 +28,12 @@ jobs:
- uses: actions/checkout@v4
- name: LaTeX compilation
run:
TERM=xterm make do${{ matrix.document }}only
TERM=xterm make ${{ matrix.document }}
- name: Upload build result
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.document }}
path: ${{ matrix.document }}.pdf
path: .build/${{ matrix.document }}.pdf

deploy-pdfs:
name: deploy-pdfs
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,18 @@ jobs:
build:
needs: [lint]
runs-on: ubuntu-latest
container: leplusorg/latex:latest
container: texlive/texlive:TL2022-historic
steps:
- uses: actions/checkout@v4
- name: LaTeX compilation Organization
run:
TERM=xterm make doorganizationonly
TERM=xterm make organization
- name: LaTeX compilation Rulebook
run:
TERM=xterm make dorulebookonly
TERM=xterm make rulebook
- name: LaTeX compilation Score sheets
run:
TERM=xterm make doscoresheetsonly
TERM=xterm make scoresheets
- name: Create Release
id: create-release
uses: softprops/action-gh-release@v1
Expand All @@ -41,6 +41,6 @@ jobs:
generate_release_notes: false
token: ${{ secrets.GITHUB_TOKEN }}
files: |
organization.pdf
rulebook.pdf
scoresheets.pdf
.build/organization.pdf
.build/rulebook.pdf
.build/scoresheets.pdf
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.build

*.aux
*.glo
*.idx
Expand Down
1 change: 0 additions & 1 deletion .latex.yml

This file was deleted.

Loading

0 comments on commit 45c47ab

Please sign in to comment.