Skip to content

Commit b4cbc3b

Browse files
committed
Fix CI: allow first xelatex pass to exit non-zero
biblatex always emits a warning on the first pass (before biber runs), causing xelatex to exit 1 and aborting pre_compile before biber executes. The || true is on the first pass only; passes 2 and 3 remain strict.
1 parent 80ac5cc commit b4cbc3b

1 file changed

Lines changed: 59 additions & 6 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 59 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,46 +9,99 @@ jobs:
99
steps:
1010
- name: Checkout
1111
uses: actions/checkout@v4
12-
1312
- name: Build cv-full.pdf
1413
uses: xu-cheng/latex-action@v3
1514
with:
1615
root_file: cv.tex
1716
latexmk_use_xelatex: true
1817
pre_compile: |
1918
cp config/full.tex cv-preset.tex
20-
xelatex -interaction=nonstopmode cv.tex
19+
xelatex -interaction=nonstopmode cv.tex || true
2120
biber cv
2221
xelatex -interaction=nonstopmode cv.tex
2322
xelatex -interaction=nonstopmode cv.tex
2423
post_compile: mv cv.pdf cv-full.pdf
25-
2624
- name: Build cv-industry.pdf
2725
uses: xu-cheng/latex-action@v3
2826
with:
2927
root_file: cv.tex
3028
latexmk_use_xelatex: true
3129
pre_compile: |
3230
cp config/industry.tex cv-preset.tex
33-
xelatex -interaction=nonstopmode cv.tex
31+
xelatex -interaction=nonstopmode cv.tex || true
3432
biber cv
3533
xelatex -interaction=nonstopmode cv.tex
3634
xelatex -interaction=nonstopmode cv.tex
3735
post_compile: mv cv.pdf cv-industry.pdf
38-
3936
- name: Build cv-speaking.pdf
4037
uses: xu-cheng/latex-action@v3
4138
with:
4239
root_file: cv.tex
4340
latexmk_use_xelatex: true
4441
pre_compile: |
4542
cp config/speaking.tex cv-preset.tex
43+
xelatex -interaction=nonstopmode cv.tex || true
44+
biber cv
45+
xelatex -interaction=nonstopmode cv.tex
46+
xelatex -interaction=nonstopmode cv.tex
47+
post_compile: mv cv.pdf cv-speaking.pdf
48+
- name: Release
49+
uses: softprops/action-gh-release@v2
50+
with:
51+
tag_name: cv-${{ github.sha }}
52+
name: "CV build ${{ github.sha }}"
53+
files: |
54+
cv-full.pdf
55+
cv-industry.pdf
56+
cv-speaking.pdf
57+
env:
58+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}name: Build CV
59+
on:
60+
push:
61+
branches: [main]
62+
workflow_dispatch:
63+
jobs:
64+
build:
65+
runs-on: ubuntu-latest
66+
steps:
67+
- name: Checkout
68+
uses: actions/checkout@v4
69+
- name: Build cv-full.pdf
70+
uses: xu-cheng/latex-action@v3
71+
with:
72+
root_file: cv.tex
73+
latexmk_use_xelatex: true
74+
pre_compile: |
75+
cp config/full.tex cv-preset.tex
76+
xelatex -interaction=nonstopmode cv.tex || true
77+
biber cv
4678
xelatex -interaction=nonstopmode cv.tex
79+
xelatex -interaction=nonstopmode cv.tex
80+
post_compile: mv cv.pdf cv-full.pdf
81+
- name: Build cv-industry.pdf
82+
uses: xu-cheng/latex-action@v3
83+
with:
84+
root_file: cv.tex
85+
latexmk_use_xelatex: true
86+
pre_compile: |
87+
cp config/industry.tex cv-preset.tex
88+
xelatex -interaction=nonstopmode cv.tex || true
89+
biber cv
90+
xelatex -interaction=nonstopmode cv.tex
91+
xelatex -interaction=nonstopmode cv.tex
92+
post_compile: mv cv.pdf cv-industry.pdf
93+
- name: Build cv-speaking.pdf
94+
uses: xu-cheng/latex-action@v3
95+
with:
96+
root_file: cv.tex
97+
latexmk_use_xelatex: true
98+
pre_compile: |
99+
cp config/speaking.tex cv-preset.tex
100+
xelatex -interaction=nonstopmode cv.tex || true
47101
biber cv
48102
xelatex -interaction=nonstopmode cv.tex
49103
xelatex -interaction=nonstopmode cv.tex
50104
post_compile: mv cv.pdf cv-speaking.pdf
51-
52105
- name: Release
53106
uses: softprops/action-gh-release@v2
54107
with:

0 commit comments

Comments
 (0)