Skip to content

Commit ca0d723

Browse files
authored
ci: Try use different action for building tex files (#9)
* ci: Try use different action for building tex files
1 parent 526a6bd commit ca0d723

File tree

3 files changed

+22
-14
lines changed

3 files changed

+22
-14
lines changed

.github/workflows/build.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1515
with:
1616
fetch-depth: '0'
17-
- name: LaTeX linter (chktex)
18-
uses: j2kun/chktex-action@main
19-
env:
20-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
- name: Compile LaTeX document - Template
18+
uses: dante-ev/latex-action@master
19+
with:
20+
working_directory: ./src
21+
root_file: template.tex

.github/workflows/release.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout
16-
uses: actions/checkout@v3
16+
uses: actions/checkout@v4
1717
with:
1818
fetch-depth: '0'
1919
- name: Create initial tag
@@ -36,13 +36,11 @@ jobs:
3636
name: Version ${{ steps.bump.outputs.new_tag }}
3737
draft: false
3838
prerelease: false
39-
- name: Compile LaTeX document
40-
uses: xu-cheng/latex-action@v3
39+
- name: Compile LaTeX document - Template
40+
uses: dante-ev/latex-action@master
4141
with:
42-
root_file: src/template.tex
43-
texlive_version: 2023
44-
latexmk_shell_escape: true
45-
args: -pdf -interaction=nonstopmode -output-directory=.build -f
42+
working_directory: ./src
43+
root_file: template.tex
4644
- name: Upload Release Asset - Template
4745
uses: actions/upload-release-asset@v1
4846
env:

src/.latexmkrc

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,18 @@
88
);
99
$ENV{'TEXINPUTS'}=join(':', @texinputs);
1010

11+
# BibTeX search paths
12+
@bibinputs = (
13+
'.', # Current directory
14+
'./Conference-LaTeX-template_10-17-19/', # IEEE Template dir
15+
'', # Default search paths
16+
);
17+
$ENV{'BIBINPUTS'}=join(':', @bibinputs);
18+
1119
### -- Output options --------------------------------------------------------
1220

13-
#$quiet = 1;
14-
#$silent = 1;
21+
$quiet = 1;
22+
$silent = 1;
1523

1624
# -- Build options -----------------------------------------------------------
1725

@@ -34,3 +42,4 @@ $bibtex_use = 1.5; # Use bibtex/biber. On clean, keep .bbl files if no .bib
3442
# Other options
3543
#
3644
$max_repeat = 5; # Try 5 times at maximum then give up
45+
$force_mode = 1; # Force build even if files are up to date

0 commit comments

Comments
 (0)