Skip to content

add ci

add ci #14

Workflow file for this run

name: Build templates
on:
push:
branches:
- master
- main
pull_request:
types: [opened, synchronize, reopened]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
jobs:
build_templates:
runs-on: ubuntu-latest
strategy:
matrix:
template:
["amspaper", "siampaper", "springerpaper", "acmpaper", "llncspaper"]
steps:
- name: Set up Git repository
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Set up ${{ matrix.template }} template
run: |
git config set advice.defaultBranchName false
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
$LATEX_STYLES/bin/new-paper ${{ matrix.template }} mypaper
env:
LATEX_STYLES: ${{ github.workspace }}
- name: Compile ${{ matrix.template }} template
uses: xu-cheng/latex-action@v3
with:
texlive_version: latest
root_file: |
mypaper.tex
working_directory: $GITHUB_WORKSPACE/tmp/mypaper/paper
extra_system_packages: "git patch"
latexmk_shell_escape: true
pre_compile: git config --global --add safe.directory /github/workspace
env:
TEXINPUTS: ".:$GITHUB_WORKSPACE/styles//:"
BSTINPUTS: ".:$GITHUB_WORKSPACE/styles/common"
BIBINPUTS: ".:$GITHUB_WORKSPACE/share"