Skip to content

Commit

Permalink
split modules into 3 groups: clm ; modules needing clm ; modules not …
Browse files Browse the repository at this point in the history
…needing clm
  • Loading branch information
Clea F. Rees committed Nov 17, 2024
1 parent 0efdb64 commit 608c2b2
Showing 1 changed file with 72 additions and 20 deletions.
92 changes: 72 additions & 20 deletions .github/workflows/nfssext-autochecks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,23 +99,18 @@ jobs:


# addaswyd o https://github.com/latex3/latex2e/blob/develop/.github/workflows/main.yaml
# these do not depend on clm
nfssext:
if: ${{ always() }}
runs-on: ubuntu-latest
needs: [ texlive-cache, clm ]
needs: texlive-cache
# don't abandon other builds if one module fails
continue-on-error: true
strategy:
matrix:
# include indicates that we want to set explicitly these combinations
# and don't want full matrix testing.
include:
- module: adforn
working_directory: arkandis/adforn
pre_target: fnttarg
extra_needs: clm
- module: adfsymbols
working_directory: arkandis/adfsymbols
pre_target: fnttarg
extra_needs: clm
- module: baskervaldadf
working_directory: arkandis/baskervaldadf
pre_target: fnttarg
Expand All @@ -127,15 +122,9 @@ jobs:
- module: electrumadf
working_directory: arkandis/electrumadf
pre_target: fnttarg
- module: fontscripts
working_directory: fontscripts
extra_needs: clm
- module: librisadf
working_directory: arkandis/librisadf
pre_target: fnttarg
- module: nfssext-cfr
working_directory: nfssext-cfr
extra_needs: clm
- module: romandeadf
working_directory: arkandis/romandeadf
pre_target: fnttarg
Expand All @@ -144,9 +133,73 @@ jobs:
pre_target: fnttarg
name: "Test build: ${{ matrix.module }}"
steps:
# # - name: Wait for clm
# # if: ${{ matrix.extra_needs }}
# # needs: ${{ matrix.extra_needs }}
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout repo
uses: actions/checkout@v4
# https://github.com/josephwright/siunitx/blob/549cad913591b92a3a199b7477a325866303bf29/.github/workflows/main.yaml
# We need Ghostscript for XeTeX tests.
- name: Update system
run: sudo apt-get update
- name: Install additional packages if needed
if: ${{ matrix.extra_packages }}
run: sudo apt-get install ${{ matrix.extra_packages }}
- name: Restore TeX Live from cache
uses: actions/cache/restore@v4
with:
path: ~/texlive
key: ${{ needs.texlive-cache.outputs.cache_key }}
fail-on-cache-miss: true
# oes angen hwn?
# oes!
- name: Set PATH
run: echo $HOME/texlive/bin/x86_64-linux >> $GITHUB_PATH
- name: Run l3build fnttarg
if: ${{ matrix.pre_target }}
working-directory: ${{ matrix.working_directory }}
run: "l3build fnttarg"
- name: Run l3build
working-directory: ${{ matrix.working_directory }}
run: "l3build ctan"
- name: Archive failed test output
# run even if previous step failed
if: ${{ always() }}
uses: zauguin/l3build-failure-artifacts@v1
with:
name: testfiles-${{ matrix.module }}
# Decide how long to keep the test output artefact:
retention-days: 7

# addaswyd o https://github.com/latex3/latex2e/blob/develop/.github/workflows/main.yaml
# need cfr-lm
# we don't really need the variable doing it in a separate matrix ...
# but leave for now as may be useful
nfssext-needy:
if: ${{ always() }}
runs-on: ubuntu-latest
needs: [ texlive-cache, clm ]
# don't abandon other builds if one module fails
continue-on-error: true
strategy:
matrix:
# include indicates that we want to set explicitly these combinations
# and don't want full matrix testing.
include:
- module: adforn
working_directory: arkandis/adforn
pre_target: fnttarg
extra_needs: clm
- module: adfsymbols
working_directory: arkandis/adfsymbols
pre_target: fnttarg
extra_needs: clm
- module: fontscripts
working_directory: fontscripts
extra_needs: clm
- module: nfssext-cfr
working_directory: nfssext-cfr
extra_needs: clm
name: "Test build: ${{ matrix.module }}"
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout repo
uses: actions/checkout@v4
Expand Down Expand Up @@ -175,7 +228,7 @@ jobs:
~/.texlive
~/texmf
key: clm-${{ github.sha }}
fail-on-cache-miss: false
fail-on-cache-miss: true
- name: Run l3build fnttarg
if: ${{ matrix.pre_target }}
working-directory: ${{ matrix.working_directory }}
Expand All @@ -192,5 +245,4 @@ jobs:
# Decide how long to keep the test output artefact:
retention-days: 7


# vim: sw=2:et:et=2:

0 comments on commit 608c2b2

Please sign in to comment.