diff --git a/.github/workflows/test.yml b/.github/workflows/main.yml similarity index 70% rename from .github/workflows/test.yml rename to .github/workflows/main.yml index 8dee772..2330936 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/main.yml @@ -1,6 +1,6 @@ name: build -on: [push] +on: push env: CTAN_URL: https://mirrors.rit.edu/CTAN @@ -18,59 +18,39 @@ 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 - - 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/ + - uses: zauguin/install-texlive@v3 + with: + packages: ${{ env.TL_PACKAGES }} - 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 - - 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/ + - uses: zauguin/install-texlive@v3 + with: + packages: ${{ env.TL_PACKAGES }} - 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 deleted file mode 100644 index 175ac5b..0000000 --- a/.github/workflows/texlive.profile +++ /dev/null @@ -1,14 +0,0 @@ -# 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