Skip to content

ci: upgrade action version (#157) #691

ci: upgrade action version (#157)

ci: upgrade action version (#157) #691

Workflow file for this run

on:
push:
branches:
- main
- develop
paths:
- '**'
- '!contrib/**'
pull_request:
branches:
- main
- develop
paths:
- '**'
- '!contrib/**'
name: Build
jobs:
build-xelatex:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: checkout code
- uses: xu-cheng/texlive-action/full@v1
with:
run: .github/ci/build_test_variants.sh -halt-on-error -time -quiet -xelatex
name: build test variants with XeLaTeX
- uses: xu-cheng/texlive-action/full@v1
with:
run: .github/ci/gen_cover.sh -halt-on-error -time -xelatex
name: build cover with XeLaTeX
- run: cat build/build-*.log
name: display build log
if: ${{ failure() || success() }}
- uses: actions/upload-artifact@v3
with:
path: |
build/build-*.pdf
build/cover.pdf
name: build-xelatex
name: upload build artifacts
build-lualatex:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: checkout code
- uses: xu-cheng/texlive-action/full@v1
with:
run: .github/ci/build_test_variants.sh -halt-on-error -time -quiet -lualatex
name: build test variants with LuaLaTeX
- uses: xu-cheng/texlive-action/full@v1
with:
run: .github/ci/gen_cover.sh -halt-on-error -time -quiet -lualatex
name: build cover with LuaLaTeX
- run: cat build/*.log
name: display build log
if: ${{ failure() || success() }}
- uses: actions/upload-artifact@v3
with:
path: |
build/build-*.pdf
build/cover.pdf
name: build-lualatex
name: upload build artifacts
build-package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: checkout code
- uses: xu-cheng/texlive-action/full@v1
with:
run: |
export diffexe="diff -U 3"
apk add zip diffutils
tlmgr update --self
tlmgr update l3build
make build-dev
name: build package with l3build
- name: check if generated files are of latest version
run: |
git diff --exit-code
- uses: actions/upload-artifact@v3
with:
path: |
src/build/distrib/tds/doc
src/build/distrib/tds/source
src/build/distrib/tds/tex
src/build/distrib/tds/sjtubeamer-online.zip
name: sjtubeamer.tds
name: upload build artifacts
check-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: checkout code
- uses: xu-cheng/texlive-action/full@v1
with:
run: |
apk add diffutils findutils git make
git config --global --add safe.directory /github/workspace
make format-dev
- name: check if generated files are of latest version
run: |
git diff --exit-code