Skip to content

record and print full dependent list of packages #16

record and print full dependent list of packages

record and print full dependent list of packages #16

Workflow file for this run

# 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
jobs:
build-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install TeX Live
run: |
export PATH=/usr/local/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*
sudo ./install-tl --profile ../.github/workflows/texlive.profile --repository ${{env.TLCurrent}} --texdir /usr/local/texlive
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/bin/x86_64-linux:$PATH
texlua tfpbuild.lua check
- name: Test texfindpkg query
run: |
export PATH=/usr/local/texlive/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/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/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: |
*.pdf
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Install TeX Live
run: |
export PATH=/usr/local/texlive/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}} --texdir /usr/local/texlive
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/bin/universal-darwin:$PATH
texlua tfpbuild.lua check
- name: Test texfindpkg query
run: |
export PATH=/usr/local/texlive/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/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\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}} --texdir C:\texlive
tlmgr install lualibs luatex
tlmgr update --self --all --no-auto-install --repository=${{env.TLCurrent}}
- name: Run tfpbuild
run: |
${env:PATH} = "C:\texlive\bin\windows;" + ${env:PATH}
texlua tfpbuild.lua check
- name: Test texfindpkg query
run: |
${env:PATH} = "C:\texlive\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\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`}