Enable parallel building
All checks were successful
Build / build (push) Successful in 2m17s

This commit is contained in:
2025-10-16 20:59:07 +02:00
parent 6135d1808c
commit e4981678fc
3 changed files with 8 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ jobs:
run: git clone https://git.0x45.cz/em/mixtape.git /workspace/em/mixtape run: git clone https://git.0x45.cz/em/mixtape.git /workspace/em/mixtape
- name: Build Chordpro - name: Build Chordpro
run: make pdf html songbook run: make -j2 pdf html songbook
- name: Build Zola - name: Build Zola
run: zola build run: zola build

View File

@@ -1,7 +1,7 @@
ifdef CHORDPRO_PIPELINE ifdef CHORDPRO_PIPELINE
CHORDPRO_CMD = chordpro CHORDPRO_CMD = chordpro
else else
CHORDPRO_CMD = docker run -ti --rm \ CHORDPRO_CMD = docker run --rm \
--env HOME=$(HOME) --env USER=$(USER) \ --env HOME=$(HOME) --env USER=$(USER) \
--workdir $(shell pwd) \ --workdir $(shell pwd) \
--volume $(HOME):$(HOME) \ --volume $(HOME):$(HOME) \

View File

@@ -26,6 +26,12 @@ Target | Description
`songbook` | Build one complete PDF songbook with all songs `songbook` | Build one complete PDF songbook with all songs
`clean` | Remove all generated files `clean` | Remove all generated files
The makefile is ready for parallel building:
```
make -j$(nproc)
```
You can also build PDF for a specific page with: You can also build PDF for a specific page with:
``` ```