adapt workflow file for texlive 2024 #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Based on https://github.com/CTeX-org/ctex-kit/blob/master/.github/workflows/test.yml | |
name: Test in TeX Live | |
on: [push, pull_request] | |
env: | |
TLCurrent: https://mirrors.rit.edu/CTAN/systems/texlive/tlnet | |
TLRelease: 2024 | |
jobs: | |
build-ubuntu: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install TeX Live | |
run: | | |
export PATH=/usr/local/texlive/${{env.TLRelease}}/bin/x86_64-linux:$PATH | |
wget ${{env.TLCurrent}}/install-tl-unx.tar.gz | |
tar -xzf install-tl-unx.tar.gz | |
cd install-tl-20* | |
sudo ./install-tl --profile ../.github/workflows/texlive.profile --repository=${{env.TLCurrent}} | |
sudo env "PATH=$PATH" tlmgr install lualibs luatex | |
sudo env "PATH=$PATH" tlmgr update --self --all --no-auto-install --repository=${{env.TLCurrent}} | |
- name: Run tfpbuild | |
run: | | |
export PATH=/usr/local/texlive/${{env.TLRelease}}/bin/x86_64-linux:$PATH | |
texlua tfpbuild.lua check | |
- name: Test texfindpkg query | |
run: | | |
export PATH=/usr/local/texlive/${{env.TLRelease}}/bin/x86_64-linux:$PATH | |
texlua texfindpkg.lua query array.sty | |
echo -------------------------------- | |
texlua texfindpkg.lua query \\fakeverb | |
echo -------------------------------- | |
texlua texfindpkg.lua query {frame} | |
echo -------------------------------- | |
texlua texfindpkg.lua query foobar | |
echo -------------------------------- | |
texlua texfindpkg.lua query foobar.sty | |
echo -------------------------------- | |
texlua texfindpkg.lua query \\foobar | |
echo -------------------------------- | |
texlua texfindpkg.lua query {foobar} | |
- name: Test texfindpkg install | |
run: | | |
export PATH=/usr/local/texlive/${{env.TLRelease}}/bin/x86_64-linux:$PATH | |
texlua texfindpkg.lua install array.sty | |
echo -------------------------------- | |
texlua texfindpkg.lua install \\fakeverb | |
echo -------------------------------- | |
texlua texfindpkg.lua install {frame} | |
echo -------------------------------- | |
texlua texfindpkg.lua install foobar | |
echo -------------------------------- | |
texlua texfindpkg.lua install foobar.sty | |
echo -------------------------------- | |
texlua texfindpkg.lua install \\foobar | |
echo -------------------------------- | |
texlua texfindpkg.lua install {foobar} | |
- name: Test man page | |
run: | | |
export PATH=/usr/local/texlive/${{env.TLRelease}}/bin/x86_64-linux:$PATH | |
man -l texfindpkg.1 | |
sudo apt-get update | |
sudo apt-get install ghostscript | |
groff -man -t -rS11 texfindpkg.1 | ps2pdf -sPAPERSIZE=a4 - texfindpkg.man1.pdf | |
- name: Upload pdf file | |
uses: actions/upload-artifact@v3 | |
with: | |
name: texfindpkg-manpage | |
path: | | |
build-macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install TeX Live | |
run: | | |
export PATH=/usr/local/texlive/${{env.TLRelease}}/bin/universal-darwin:$PATH | |
curl -O ${{env.TLCurrent}}/install-tl-unx.tar.gz | |
tar -xzf install-tl-unx.tar.gz | |
cd install-tl-20* | |
sudo ./install-tl --profile ../.github/workflows/texlive.profile --repository=${{env.TLCurrent}} | |
sudo env "PATH=$PATH" tlmgr install lualibs luatex | |
sudo env "PATH=$PATH" tlmgr update --self --all --no-auto-install --repository=${{env.TLCurrent}} | |
- name: Run tfpbuild | |
run: | | |
export PATH=/usr/local/texlive/${{env.TLRelease}}/bin/universal-darwin:$PATH | |
texlua tfpbuild.lua check | |
- name: Test texfindpkg query | |
run: | | |
export PATH=/usr/local/texlive/${{env.TLRelease}}/bin/universal-darwin:$PATH | |
texlua texfindpkg.lua query array.sty | |
echo -------------------------------- | |
texlua texfindpkg.lua query \\fakeverb | |
echo -------------------------------- | |
texlua texfindpkg.lua query {frame} | |
echo -------------------------------- | |
texlua texfindpkg.lua query foobar | |
echo -------------------------------- | |
texlua texfindpkg.lua query foobar.sty | |
echo -------------------------------- | |
texlua texfindpkg.lua query \\foobar | |
echo -------------------------------- | |
texlua texfindpkg.lua query {foobar} | |
- name: Test texfindpkg install | |
run: | | |
export PATH=/usr/local/texlive/${{env.TLRelease}}/bin/universal-darwin:$PATH | |
texlua texfindpkg.lua install array.sty | |
echo -------------------------------- | |
texlua texfindpkg.lua install \\fakeverb | |
echo -------------------------------- | |
texlua texfindpkg.lua install {frame} | |
echo -------------------------------- | |
texlua texfindpkg.lua install foobar | |
echo -------------------------------- | |
texlua texfindpkg.lua install foobar.sty | |
echo -------------------------------- | |
texlua texfindpkg.lua install \\foobar | |
echo -------------------------------- | |
texlua texfindpkg.lua install {foobar} | |
build-windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install TeX Live | |
run: | | |
${env:PATH} = "C:\texlive\${{env.TLRelease}}\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}} | |
tlmgr install lualibs luatex | |
tlmgr update --self --all --no-auto-install --repository=${{env.TLCurrent}} | |
- name: Run tfpbuild | |
run: | | |
${env:PATH} = "C:\texlive\${{env.TLRelease}}\bin\windows;" + ${env:PATH} | |
texlua tfpbuild.lua check | |
- name: Test texfindpkg query | |
run: | | |
${env:PATH} = "C:\texlive\${{env.TLRelease}}\bin\windows;" + ${env:PATH} | |
texlua texfindpkg.lua query array.sty | |
echo -------------------------------- | |
texlua texfindpkg.lua query \fakeverb | |
echo -------------------------------- | |
texlua texfindpkg.lua query `{frame`} | |
echo -------------------------------- | |
texlua texfindpkg.lua query foobar | |
echo -------------------------------- | |
texlua texfindpkg.lua query foobar.sty | |
echo -------------------------------- | |
texlua texfindpkg.lua query \foobar | |
echo -------------------------------- | |
texlua texfindpkg.lua query `{foobar`} | |
- name: Test texfindpkg install | |
run: | | |
${env:PATH} = "C:\texlive\${{env.TLRelease}}\bin\windows;" + ${env:PATH} | |
texlua texfindpkg.lua install array.sty | |
echo -------------------------------- | |
texlua texfindpkg.lua install \fakeverb | |
echo -------------------------------- | |
texlua texfindpkg.lua install `{frame`} | |
echo -------------------------------- | |
texlua texfindpkg.lua install foobar | |
echo -------------------------------- | |
texlua texfindpkg.lua install foobar.sty | |
echo -------------------------------- | |
texlua texfindpkg.lua install \foobar | |
echo -------------------------------- | |
texlua texfindpkg.lua install `{foobar`} |