Keep TeX Live cache up-to-date #16
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
| # This workflow makes sure that there is always a cache present for the main branch. | |
| # This cache can be picked up by all other branches, so it ensures that even new | |
| # branches and tags don't have to download a complete copy of TeX Live. | |
| # | |
| # Since GitHub keeps unused caches for one week, we need to run at least once a week | |
| # to ensure that the cache always stays around. To avoid timing issues and issues | |
| # when an update fails for some reason, we run twice per week. | |
| name: Keep TeX Live cache up-to-date | |
| on: | |
| schedule: | |
| # Runs at 09:41 UTC daily. | |
| - cron: '41 9 * * *' | |
| jobs: | |
| cache: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| name: Update TeX Live | |
| steps: | |
| # To use `.github/tl_packages`, main repo must be checked out first. | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: Install TeX Live | |
| uses: zauguin/install-texlive@v4 | |
| with: | |
| # List the required TeX Live packages in a separate file to allow reuse in | |
| # different workflows. | |
| package_file: .github/tl_packages |