From fa72db89d3e59f2229c51cc4c5ba7b22207e6dfd Mon Sep 17 00:00:00 2001 From: Michael Ummels Date: Thu, 12 Feb 2026 20:05:46 +0100 Subject: [PATCH] Use install TexLive action --- .github/tl_packages | 11 +++++++ .github/workflows/ci.yml | 57 +++++++++++++++++++---------------- .github/workflows/release.yml | 24 ++++++++------- build.lua | 2 +- 4 files changed, 56 insertions(+), 38 deletions(-) create mode 100644 .github/tl_packages diff --git a/.github/tl_packages b/.github/tl_packages new file mode 100644 index 0000000..34e64a2 --- /dev/null +++ b/.github/tl_packages @@ -0,0 +1,11 @@ +alphalph +cantarell +collection-basic +collection-latex +collection-latexrecommended +hypdoc +inconsolata +l3build +palatino +tabfigures +upquote diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9c416e4..c139c55 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,37 +18,42 @@ permissions: jobs: check: runs-on: ubuntu-latest - container: - image: registry.gitlab.com/islandoftex/images/texlive:latest steps: - - name: Checkout repository - uses: actions/checkout@v6 - - name: Run checks - run: l3build check --show-log-on-error -q -H - - name: Archive failed test output - if: ${{ !cancelled() }} - uses: zauguin/l3build-failure-artifacts@v1 - with: - name: testfiles - retention-days: 3 + - name: Checkout repository + uses: actions/checkout@v6 + - name: Install TeX Live + uses: zauguin/install-texlive@v4 + with: + package_file: .github/tl_packages + - name: Run checks + run: l3build check --show-log-on-error -q -H + - name: Archive failed test output + if: ${{ !cancelled() }} + uses: zauguin/l3build-failure-artifacts@v1 + with: + name: testfiles + retention-days: 3 build-docs: + needs: check runs-on: ubuntu-latest - container: - image: registry.gitlab.com/islandoftex/images/texlive:latest steps: - - name: Checkout repository - uses: actions/checkout@v6 - - name: Setup Pages - uses: actions/configure-pages@v5 - - name: Build documentation - run: l3build doc - - name: Move documentation - run: mkdir docs && mv *.pdf docs - - name: Upload documentation - uses: actions/upload-pages-artifact@v4 - with: - path: 'docs' + - name: Checkout repository + uses: actions/checkout@v6 + - name: Setup Pages + uses: actions/configure-pages@v5 + - name: Install TeX Live + uses: zauguin/install-texlive@v4 + with: + package_file: .github/tl_packages + - name: Build documentation + run: l3build doc + - name: Move documentation + run: mkdir docs && mv *.pdf docs + - name: Upload documentation + uses: actions/upload-pages-artifact@v4 + with: + path: 'docs' deploy-docs: needs: build-docs diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d619d33..75ab3eb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,7 +3,7 @@ name: Release on: push: tags: - - "v*.*" + - "v*.*" permissions: contents: write @@ -11,14 +11,16 @@ permissions: jobs: release: runs-on: ubuntu-latest - container: - image: registry.gitlab.com/islandoftex/images/texlive:latest steps: - - name: Checkout - uses: actions/checkout@v6 - - name: Build - run: l3build ctan - - name: Release - uses: softprops/action-gh-release@v2 - with: - files: figureversions-ctan.zip + - name: Checkout + uses: actions/checkout@v6 + - name: Install TeX Live + uses: zauguin/install-texlive@v4 + with: + package_file: .github/tl_packages + - name: Build distribution + run: l3build ctan + - name: Release + uses: softprops/action-gh-release@v2 + with: + files: figureversions-ctan.zip diff --git a/build.lua b/build.lua index c93be14..3949382 100644 --- a/build.lua +++ b/build.lua @@ -2,6 +2,6 @@ module = "figureversions" -checkengines = {"pdftex", "luatex"} +checkengines = {"pdftex"} checkconfigs = {"build", "config-fontspec"} ctanreadme = "README-CTAN.md"