ci: dump build/doc log on failure; load lmodern in dtx driver #591
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # SPDX-FileCopyrightText: Copyright (c) 2022-2026 Yegor Bugayenko | |
| # SPDX-License-Identifier: MIT | |
| --- | |
| # yamllint disable rule:line-length | |
| name: l3build | |
| 'on': | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| l3build: | |
| timeout-minutes: 15 | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-24.04, macos-15] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - run: | | |
| sudo apt-get --fix-missing update | |
| sudo apt-get install --yes ghostscript | |
| if: matrix.os == 'ubuntu-24.04' | |
| - run: brew install ghostscript | |
| if: matrix.os == 'macos-15' | |
| - run: sed -E 's/^(hard|soft)[[:space:]]+//' DEPENDS.txt > .texlive-packages.txt | |
| - uses: zauguin/install-texlive@v4.4.0 | |
| with: | |
| package_file: .texlive-packages.txt | |
| texlive_version: 2025 | |
| - run: l3build ctan --show-log-on-error --halt-on-error | |
| - if: failure() | |
| run: | | |
| echo '::group::bibcop.log' | |
| cat build/doc/bibcop.log 2>/dev/null || echo 'no build/doc/bibcop.log' | |
| echo '::endgroup::' | |
| - run: ./tests.pl | |
| - run: | | |
| set -ex | |
| mkdir build/gh-pages | |
| cp build/distrib/tds/scripts/bibcop/bibcop.pl build/gh-pages | |
| cp build/distrib/tds/tex/latex/bibcop/bibcop.sty build/gh-pages | |
| sed -i "s/0\.0\.0/$(date +%H.%M.%S)/g" build/gh-pages/bibcop.pl | |
| sed -i "s/0000\/00\/00/$(date +%Y-%m-%d)/g" build/gh-pages/bibcop.pl | |
| sed -i "s/0\.0\.0/$(date +%H.%M.%S)/g" build/gh-pages/bibcop.sty | |
| sed -i "s/0000\/00\/00/$(date +%Y-%m-%d)/g" build/gh-pages/bibcop.sty | |
| if: github.ref == 'refs/heads/master' && matrix.os == 'ubuntu-24.04' | |
| - uses: JamesIves/github-pages-deploy-action@v4.7.4 | |
| with: | |
| branch: gh-pages | |
| folder: build/gh-pages | |
| clean: true | |
| if: github.ref == 'refs/heads/master' && matrix.os == 'ubuntu-24.04' |