Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
pineapplehunter committed Jun 11, 2024
1 parent d3a3b55 commit 32d68c2
Showing 1 changed file with 14 additions and 19 deletions.
33 changes: 14 additions & 19 deletions .github/workflows/compile_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,19 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

# caching files
- uses: actions/cache@v4
name: Tectonic Cache
with:
path: ~/.cache/Tectonic
key: ${{ runner.os }}-tectonic-${{ hashFiles('**.tex','**.sty') }}
restore-keys: |
${{ runner.os }}-tectonic-
# this downloades tectonic
- uses: wtfjoke/setup-tectonic@v3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- uses: cachix/install-nix-action@v27
# tectonic
- name: check textonic (xelatex)
run: nix shell "nixpkgs#tectonic" -L -c tectonic sample-xelatex.tex

# display tectonic version
- name: Tectonic version
run: tectonic -V
# platex
- name: check platex
run: |
nix shell "nixpkgs#texliveFull" -L -c platex sample-platex.tex
nix shell "nixpkgs#texliveFull" -L -c dvipdfmx sample-platex.dvi
- uses: actions/upload-artifact@v4
with:
name: pdf-artifact
path: sample*.pdf

# checks if it compiles
- name: Run Tectonic
run: tectonic sample-xelatex.tex

0 comments on commit 32d68c2

Please sign in to comment.