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