Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Try use different action for building tex files #9

Merged
merged 8 commits into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: LaTeX linter (chktex)
uses: j2kun/chktex-action@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Compile LaTeX document - Template
uses: dante-ev/latex-action@master
with:
working_directory: ./src
root_file: template.tex
12 changes: 5 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: Create initial tag
Expand All @@ -36,13 +36,11 @@ jobs:
name: Version ${{ steps.bump.outputs.new_tag }}
draft: false
prerelease: false
- name: Compile LaTeX document
uses: xu-cheng/latex-action@v3
- name: Compile LaTeX document - Template
uses: dante-ev/latex-action@master
with:
root_file: src/template.tex
texlive_version: 2023
latexmk_shell_escape: true
args: -pdf -interaction=nonstopmode -output-directory=.build -f
working_directory: ./src
root_file: template.tex
- name: Upload Release Asset - Template
uses: actions/upload-release-asset@v1
env:
Expand Down
13 changes: 11 additions & 2 deletions src/.latexmkrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,18 @@
);
$ENV{'TEXINPUTS'}=join(':', @texinputs);

# BibTeX search paths
@bibinputs = (
'.', # Current directory
'./Conference-LaTeX-template_10-17-19/', # IEEE Template dir
'', # Default search paths
);
$ENV{'BIBINPUTS'}=join(':', @bibinputs);

### -- Output options --------------------------------------------------------

#$quiet = 1;
#$silent = 1;
$quiet = 1;
$silent = 1;

# -- Build options -----------------------------------------------------------

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