[latex3-commits] [git/LaTeX3-latex3-latex2e] ghactions: Add GitHub Actions Workflow (23e551e5)

Marcel Fabian Krüger tex at 2krueger.de
Fri Jul 23 23:40:15 CEST 2021


Repository : https://github.com/latex3/latex2e
On branch  : ghactions
Link       : https://github.com/latex3/latex2e/commit/23e551e59b9a89e453e2eab32796daed0bbc182a

>---------------------------------------------------------------

commit 23e551e59b9a89e453e2eab32796daed0bbc182a
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Fri Jul 23 21:54:51 2021 +0200

    Add GitHub Actions Workflow


>---------------------------------------------------------------

23e551e59b9a89e453e2eab32796daed0bbc182a
 .github/workflows/main.yaml | 163 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 163 insertions(+)

diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml
new file mode 100644
index 00000000..c3383342
--- /dev/null
+++ b/.github/workflows/main.yaml
@@ -0,0 +1,163 @@
+name: Automated testing
+on:
+  push:
+
+jobs:
+  l3build:
+    runs-on: ubuntu-20.04
+    strategy:
+      matrix:
+        include:
+          - name: "Tests: base"
+            l3build_cmd: cd base && l3build check -q --show-log-on-error
+            artifact_name: testfiles-base
+          - name: "Tests: required"
+            l3build_cmd: cd required && l3build check -q --show-log-on-error
+            artifact_name: testfiles-required
+          - name: "Documentation"
+            l3build_cmd: l3build doc -q -H --show-log-on-error
+            artifact_name: Documentation
+            artifact_path: build/doc/*.pdf
+    name: ${{matrix.name }}
+    steps:
+      - name: Checkout repository
+        uses: actions/checkout at v2
+      - name: Generate unique ID
+        id: get-id
+        run: |
+          echo -n ::set-output name=id::
+          cat /proc/sys/kernel/random/uuid
+      - name: Load cache
+        uses: actions/cache at v2
+        with:
+          path: ~/texlive
+          key: texlive-v0-${{ steps.get-id.outputs.id }}
+          restore-keys: texlive-v0-
+      - run: sudo apt-get install ghostscript
+      - name: Install TeX Live
+        uses: zauguin/install-texlive at v1
+        with:
+          packages: |
+            # Needed for any use of texlua even if not testing LuaTeX
+            luatex
+            #
+            # The test framework itself
+            l3build
+            #
+            # Required to build plain and LaTeX formats:
+            # TeX90 plain for unpacking, pdfLaTeX, LuaLaTeX and XeTeX for tests
+            cm
+            etex
+            knuth-lib
+            latex-bin
+            luahbtex
+            tex
+            tex-ini-files
+            unicode-data
+            xetex
+            #
+            # Assuming a 'basic' font set up, metafont is required to avoid
+            # warnings with some packages and errors with others
+            metafont
+            mfware
+            texlive-scripts
+            #
+            # Contrib packages
+            amsfonts   
+            ec         
+            fontspec   
+            hyperref   
+            iftex      
+            kvoptions  
+            oberdiek   
+            pdftexcmds 
+            lh         
+            lualibs    
+            luaotfload 
+            tex-gyre   
+            stringenc  
+            url
+            #
+            # special testing for firstaid
+            bidi         
+            bigfoot      
+            ncctools     
+            dinbrief     
+            everyshi     
+            filehook     
+            pgf          
+            pgfmorepages 
+            ulem         
+            varwidth
+            #
+            # Additional support for typesetting
+            alphalph     
+            amscls       
+            atbegshi     
+            atveryend    
+            auxhook      
+            babel-german 
+            bigintcalc   
+            bitset       
+            bookmark     
+            booktabs     
+            cbfonts      
+            cm-super     
+            colortbl     
+            csquotes     
+            dvips        
+            enumitem     
+            epstopdf     
+            epstopdf-pkg 
+            etexcmds     
+            etoolbox     
+            fancyvrb     
+            fc           
+            geometry     
+            gettitlestring 
+            graphics-def 
+            helvetic     
+            hologo       
+            hycolor      
+            imakeidx     
+            infwarerr    
+            intcalc      
+            kvdefinekeys 
+            kvoptions    
+            kvsetkeys    
+            letltxmacro  
+            ltxcmds      
+            ly1          
+            makeindex    
+            mflogo       
+            palatino     
+            pdfescape    
+            pl           
+            psnfss       
+            refcount     
+            rerunfilecheck 
+            sauter       
+            times        
+            titlesec     
+            underscore   
+            uniquecounter 
+            vntex        
+            wasy         
+            wsuipa       
+            xkeyval      
+            zref
+      - name: Run l3build
+        run: ${{ matrix.l3build_cmd }}
+      - name: Archive failed test output
+        if: ${{ matrix.artifact_name != 'Documentation' && failure() }}
+        uses: actions/upload-artifact at v2
+        with:
+          name: ${{ matrix.artifact_name }}
+          path: build/test*
+          retention-days: 1
+      - name: Archive documentation
+        if: ${{ matrix.artifact_name == 'Documentation' && success() }}
+        uses: actions/upload-artifact at v2
+        with:
+          name: ${{ matrix.artifact_name }}
+          path: "**/*.pdf"





More information about the latex3-commits mailing list.