Skip to content

Commit

Permalink
Revert "ci: use zauguin/install-texlive"
Browse files Browse the repository at this point in the history
This reverts commit 62e3363 (but retain the renaming).
  • Loading branch information
stone-zeng committed Feb 28, 2023
1 parent 62e3363 commit c881972
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 6 deletions.
32 changes: 26 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/texlive.profile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c881972

Please sign in to comment.