From c88197269286a5d67891e6678376a42aa67fcb78 Mon Sep 17 00:00:00 2001 From: Xiangdong Zeng Date: Tue, 28 Feb 2023 19:44:49 +0800 Subject: [PATCH] Revert "ci: use `zauguin/install-texlive`" This reverts commit 62e336305358d80e7756274ccc3e0b4eec9008b2 (but retain the renaming). --- .github/workflows/main.yml | 32 +++++++++++++++++++++++++------ .github/workflows/texlive.profile | 14 ++++++++++++++ 2 files changed, 40 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/texlive.profile diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2330936..16f5605 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,39 +18,59 @@ env: jobs: build-ubuntu: runs-on: ubuntu-latest + env: + SET_PATH: export PATH=/tmp/texlive/bin/x86_64-linux:$PATH steps: - uses: actions/checkout@v3 - - uses: zauguin/install-texlive@v3 - with: - packages: ${{ env.TL_PACKAGES }} + - name: Install TeX Live + run: | + ${{ env.SET_PATH }} + wget ${{ env.CTAN_URL }}/systems/texlive/tlnet/install-tl-unx.tar.gz + tar -xzf install-tl-unx.tar.gz + cd install-tl-20* && ./install-tl --profile ../.github/workflows/texlive.profile + tlmgr install ${{ env.TL_PACKAGES }} + tlmgr update --self --all --no-auto-install --repository=${{ env.CTAN_URL }}/systems/texlive/tlnet/ - name: Check fduthesis run: | + ${{ env.SET_PATH }} l3build check -q -H - name: Test fduthesis run: | + ${{ env.SET_PATH }} cd test && cp ../build/unpacked/{*.cls,*.def} . ${{ env.TESTS }} - name: Build examples run: | + ${{ env.SET_PATH }} ./install-unix.sh cd thesis ${{ env.EXAMPLES }} build-macos: runs-on: macos-latest + env: + SET_PATH: export PATH=/tmp/texlive/bin/universal-darwin:$PATH steps: - uses: actions/checkout@v3 - - uses: zauguin/install-texlive@v3 - with: - packages: ${{ env.TL_PACKAGES }} + - name: Install TeX Live + run: | + ${{ env.SET_PATH }} + curl -O ${{ env.CTAN_URL }}/systems/texlive/tlnet/install-tl-unx.tar.gz + tar -xzf install-tl-unx.tar.gz + cd install-tl-20* && ./install-tl --profile ../.github/workflows/texlive.profile + tlmgr install ${{ env.TL_PACKAGES }} + tlmgr update --self --all --no-auto-install --repository=${{ env.CTAN_URL }}/systems/texlive/tlnet/ - name: Check fduthesis run: | + ${{ env.SET_PATH }} l3build check -q -H - name: Test fduthesis run: | + ${{ env.SET_PATH }} cd test && cp ../build/unpacked/{*.cls,*.def} . ${{ env.TESTS }} - name: Build examples run: | + ${{ env.SET_PATH }} ./install-unix.sh cd thesis ${{ env.EXAMPLES }} diff --git a/.github/workflows/texlive.profile b/.github/workflows/texlive.profile new file mode 100644 index 0000000..175ac5b --- /dev/null +++ b/.github/workflows/texlive.profile @@ -0,0 +1,14 @@ +# From latex3 +# https://github.com/latex3/latex3/blob/main/support/texlive.profile + +selected_scheme scheme-infraonly +TEXDIR /tmp/texlive +TEXMFSYSCONFIG /tmp/texlive/texmf-config +TEXMFSYSVAR /tmp/texlive/texmf-var +TEXMFLOCAL /tmp/texlive/texmf-local +TEXMFHOME ~/texmf +TEXMFCONFIG ~/.texlive/texmf-config +TEXMFVAR ~/.texlive/texmf-var +option_doc 0 +option_src 0 +tlpdbopt_autobackup 0