Skip to content

Commit

Permalink
Provide CI configurations for GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanlukasczyk committed Sep 9, 2023
1 parent 486ee06 commit d1353c1
Show file tree
Hide file tree
Showing 3 changed files with 151 additions and 0 deletions.
92 changes: 92 additions & 0 deletions .github/tl_packages
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
# The test framework itself
l3build
#
# Required to build plain and LaTeX formats
latex-bin
luahbtex
tex
#
# Then get the rest of required LaTeX
amsmath
tools
#
# Assuming a 'basic' font set up, metafont is required to avoid
# warnings with some packages and errors with others
metafont
mfware
#
# Dependencies for tests that are not auto-resolved
bibtex
biblatex
biber
ctablestack
lualatex-math
luatexbase
lua-widow-control
microtype
selnolig
#
# For the doc target
adjustbox
alphalph
amsfonts
anonymouspro
babel
babel-english
babel-german
bookmark
booktabs
caption
catchfile
cleveref
colortbl
csquotes
dantelogo
dvips
ec
enumitem
epstopdf
epstopdf-pkg
etoolbox
everysel
fancyvrb
fetamont
fira
fontspec
framed
fvextra
graphics
hologo
hvfloat
hvlogos
hypdoc
hyperref
ifoddpage
inconsolata
libertine
libertinus
libertinus-fonts
libertinus-type1
libertinus-otf
lineno
listings
makeindex
marginnote
mathpazo
metalogo
multido
oberdiek
pgf
picture
psnfss
ragged2e
siunitx
sttools
times
underscore
unicode-math
units
upquote
varwidth
xcolor
xits
25 changes: 25 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Automated testing

on:
push:
pull_request:
branches:
- main

jobs:
l3build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install TeX Live
uses: zauguin/install-texlive@v2
with:
# List the required TeX Live packages in a separate file to allow
# reuse in different workflows.
package_file: .github/tl_packages

- name: Run l3build
run: l3build ctan -q -H
34 changes: 34 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Create release

on:
push:
tags:
- "*"

jobs:
release:
runs-on: ubuntu-latest
name: Build release
environment: Release

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
submodules: recursive

- name: Install TeX Live
uses: zauguin/install-texlive@v2
with:
# List the required TeX Live packages in a separate file to allow
# reuse in different workflows.
package_file: .github/tl_packages

- name: Run l3build
run: l3build ctan -q -H

- name: Create GitHub release
uses: ncipollo/release-action@a2e71bdd4e7dab70ca26a852f29600c98b33153e # v1.12.0
id: release
with:
artifacts: "build/distrib/ctan/*.zip"

0 comments on commit d1353c1

Please sign in to comment.