From 6993199e02a3faa6b5e0ad7b7a6ec8e081831ca0 Mon Sep 17 00:00:00 2001 From: lvjr Date: Mon, 21 Oct 2024 16:23:37 +0800 Subject: [PATCH] remove release year from texdir --- .github/workflows/texlive.yml | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/.github/workflows/texlive.yml b/.github/workflows/texlive.yml index c44912a..3ee5d9e 100644 --- a/.github/workflows/texlive.yml +++ b/.github/workflows/texlive.yml @@ -6,7 +6,6 @@ on: [push, pull_request] env: TLCurrent: https://mirrors.rit.edu/CTAN/systems/texlive/tlnet - TLRelease: 2024 jobs: build-ubuntu: @@ -15,20 +14,20 @@ jobs: - uses: actions/checkout@v3 - name: Install TeX Live run: | - export PATH=/usr/local/texlive/${{env.TLRelease}}/bin/x86_64-linux:$PATH + 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}} + 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/${{env.TLRelease}}/bin/x86_64-linux:$PATH + export PATH=/usr/local/texlive/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 + export PATH=/usr/local/texlive/bin/x86_64-linux:$PATH texlua texfindpkg.lua query array.sty echo -------------------------------- texlua texfindpkg.lua query \\fakeverb @@ -44,7 +43,7 @@ jobs: texlua texfindpkg.lua query {foobar} - name: Test texfindpkg install run: | - export PATH=/usr/local/texlive/${{env.TLRelease}}/bin/x86_64-linux:$PATH + export PATH=/usr/local/texlive/bin/x86_64-linux:$PATH texlua texfindpkg.lua install array.sty echo -------------------------------- texlua texfindpkg.lua install \\fakeverb @@ -60,7 +59,7 @@ jobs: texlua texfindpkg.lua install {foobar} - name: Test man page run: | - export PATH=/usr/local/texlive/${{env.TLRelease}}/bin/x86_64-linux:$PATH + export PATH=/usr/local/texlive/bin/x86_64-linux:$PATH man -l texfindpkg.1 sudo apt-get update sudo apt-get install ghostscript @@ -77,20 +76,20 @@ jobs: - uses: actions/checkout@v3 - name: Install TeX Live run: | - export PATH=/usr/local/texlive/${{env.TLRelease}}/bin/universal-darwin:$PATH + 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}} + 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/${{env.TLRelease}}/bin/universal-darwin:$PATH + export PATH=/usr/local/texlive/bin/universal-darwin:$PATH texlua tfpbuild.lua check - name: Test texfindpkg query run: | - export PATH=/usr/local/texlive/${{env.TLRelease}}/bin/universal-darwin:$PATH + export PATH=/usr/local/texlive/bin/universal-darwin:$PATH texlua texfindpkg.lua query array.sty echo -------------------------------- texlua texfindpkg.lua query \\fakeverb @@ -106,7 +105,7 @@ jobs: texlua texfindpkg.lua query {foobar} - name: Test texfindpkg install run: | - export PATH=/usr/local/texlive/${{env.TLRelease}}/bin/universal-darwin:$PATH + export PATH=/usr/local/texlive/bin/universal-darwin:$PATH texlua texfindpkg.lua install array.sty echo -------------------------------- texlua texfindpkg.lua install \\fakeverb @@ -126,20 +125,20 @@ jobs: - uses: actions/checkout@v3 - name: Install TeX Live run: | - ${env:PATH} = "C:\texlive\${{env.TLRelease}}\bin\windows;" + ${env:PATH} + ${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}} + .\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\${{env.TLRelease}}\bin\windows;" + ${env:PATH} + ${env:PATH} = "C:\texlive\bin\windows;" + ${env:PATH} texlua tfpbuild.lua check - name: Test texfindpkg query run: | - ${env:PATH} = "C:\texlive\${{env.TLRelease}}\bin\windows;" + ${env:PATH} + ${env:PATH} = "C:\texlive\bin\windows;" + ${env:PATH} texlua texfindpkg.lua query array.sty echo -------------------------------- texlua texfindpkg.lua query \fakeverb @@ -155,7 +154,7 @@ jobs: texlua texfindpkg.lua query `{foobar`} - name: Test texfindpkg install run: | - ${env:PATH} = "C:\texlive\${{env.TLRelease}}\bin\windows;" + ${env:PATH} + ${env:PATH} = "C:\texlive\bin\windows;" + ${env:PATH} texlua texfindpkg.lua install array.sty echo -------------------------------- texlua texfindpkg.lua install \fakeverb