Automake
This commit is contained in:
parent
4c2396db0d
commit
7e4533fb54
30
.gitea/workflows/build.yml
Normal file
30
.gitea/workflows/build.yml
Normal file
@ -0,0 +1,30 @@
|
||||
name: Build CV
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
|
||||
jobs:
|
||||
build-pdf:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install TeX Live
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y texlive-latex-base texlive-latex-recommended texlive-latex-extra texlive-bibtex-extra biber
|
||||
|
||||
- name: Build PDF
|
||||
run: make pdf
|
||||
|
||||
- name: Upload PDF artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: curriculum-vitae
|
||||
path: main.pdf
|
||||
retention-days: 30
|
||||
34
Makefile
Normal file
34
Makefile
Normal file
@ -0,0 +1,34 @@
|
||||
.PHONY: all clean pdf view help
|
||||
|
||||
MAIN = main
|
||||
TEX_FILE = $(MAIN).tex
|
||||
PDF_FILE = $(MAIN).pdf
|
||||
DVI_FILE = $(MAIN).dvi
|
||||
|
||||
PDFLATEX = pdflatex
|
||||
BIBER = biber
|
||||
VIEWER = evince
|
||||
|
||||
all: pdf
|
||||
|
||||
pdf: $(PDF_FILE)
|
||||
|
||||
$(PDF_FILE): $(TEX_FILE) papers.bib sections/*.tex simplecv.sty
|
||||
$(PDFLATEX) -interaction=nonstopmode $(MAIN)
|
||||
$(BIBER) $(MAIN)
|
||||
$(PDFLATEX) -interaction=nonstopmode $(MAIN)
|
||||
$(PDFLATEX) -interaction=nonstopmode $(MAIN)
|
||||
|
||||
view: $(PDF_FILE)
|
||||
$(VIEWER) $(PDF_FILE) &
|
||||
|
||||
clean:
|
||||
rm -f *.aux *.log *.out *.toc *.bbl *.blg *.bcf *.run.xml *.fdb_latexmk *.fls *.synctex.gz $(DVI_FILE) $(PDF_FILE)
|
||||
|
||||
help:
|
||||
@echo "Available targets:"
|
||||
@echo " all - Build PDF (default)"
|
||||
@echo " pdf - Build PDF"
|
||||
@echo " view - Open PDF with viewer"
|
||||
@echo " clean - Remove generated files"
|
||||
@echo " help - Show this help"
|
||||
Loading…
x
Reference in New Issue
Block a user