Skip to content

Commit

Permalink
ci: install TeX Live through teatimeguest/setup-texlive-action@v3
Browse files Browse the repository at this point in the history
https://github.com/teatimeguest/setup-texlive-action

This action caches TeX Live by default and is also used by CTeX-org/ctex-kit, see
CTeX-org/ctex-kit@adb2d8c (ci: 通过 `teatimeguest/setup-texlive-action` 安装 texlive, 2023-11-17).
  • Loading branch information
muzimuzhi committed Mar 13, 2024
1 parent 9f5b008 commit 44dd9aa
Showing 1 changed file with 10 additions and 28 deletions.
38 changes: 10 additions & 28 deletions .github/workflows/texlive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,59 +4,41 @@ name: Test tabularray in TeX Live

on: [push, pull_request]

env:
TLCurrent: https://mirrors.rit.edu/CTAN/systems/texlive/tlnet
TLHistoric: https://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2021/tlnet-final

jobs:
build-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install TeX Live
run: |
export PATH=${{github.workspace}}/tmp/texlive/bin/x86_64-linux:$PATH
wget ${{env.TLCurrent}}/install-tl-unx.tar.gz
tar -xzf install-tl-unx.tar.gz
cd install-tl-20*
./install-tl --profile ../.github/workflows/texlive.profile --repository=${{env.TLCurrent}}
echo $(cat ${{github.workspace}}/.github/workflows/texlive.package) | xargs tlmgr install
tlmgr update --self --all --no-auto-install --repository=${{env.TLCurrent}}
uses: teatimeguest/setup-texlive-action@v3
with:
package-file: .github/workflows/texlive.package
update-all-packages: true
- name: Test tabularray with l3build
run: |
export PATH=${{github.workspace}}/tmp/texlive/bin/x86_64-linux:$PATH
l3build check --debug --halt-on-error --show-log-on-error
- name: Install pdftoppm
run:
sudo apt-get install poppler-utils
- name: Test tabularray with ppmcheckpdf
run: |
export PATH=${{github.workspace}}/tmp/texlive/bin/x86_64-linux:$PATH
texlua buildend.lua
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Install TeX Live
run: |
${env:PATH} = "${{github.workspace}}\tmp\texlive\bin\windows;" + ${env:PATH}
Invoke-WebRequest -Uri ${{env.TLCurrent}}/install-tl.zip -OutFile install-tl.zip
Expand-Archive install-tl.zip -DestinationPath .
Set-Location install-tl-*
.\install-tl-windows --no-gui --profile ..\.github\workflows\texlive.profile --repository=${{env.TLCurrent}}
${{github.workspace}}/.github/workflows/texlive.bat
tlmgr update --self --all --no-auto-install --repository=${{env.TLCurrent}}
uses: teatimeguest/setup-texlive-action@v3
with:
packages: wintools.windows # for pdftoppm
package-file: .github/workflows/texlive.package
update-all-packages: true
- name: Test tabularray with l3build
run: |
${env:PATH} = "${{github.workspace}}\tmp\texlive\bin\windows;" + ${env:PATH}
l3build check --debug --halt-on-error --show-log-on-error
- name: Install pdftoppm
run: |
${env:PATH} = "${{github.workspace}}\tmp\texlive\bin\windows;" + ${env:PATH}
tlmgr install wintools.windows
- name: Test tabularray with ppmcheckpdf
run: |
${env:PATH} = "${{github.workspace}}\tmp\texlive\bin\windows;" + ${env:PATH}
texlua buildend.lua
- name: Upload png and md5
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 44dd9aa

Please sign in to comment.