Skip to content

Commit

Permalink
Switch from Travis-CI to GH Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
josephwright committed Aug 27, 2021
1 parent a37c1c3 commit f73eaa5
Show file tree
Hide file tree
Showing 5 changed files with 155 additions and 89 deletions.
56 changes: 56 additions & 0 deletions .github/tl_packages
@@ -0,0 +1,56 @@
# The test framework itself
#
luatex
#
# Required to build formats
#
latex-bin
luahbtex
platex
uplatex
tex
xetex
# Requirements for the tests
amsfonts
etex-pkg
#
# Support for typesetting the docs
#
alphalph
atbegshi
atveryend
amsmath
bigintcalc
bitset
booktabs
ec
colortbl
csquotes
enumitem
etexcmds
fancyvrb
gettitlestring
graphics
hologo
hycolor
iftex
intcalc
kvdefinekeys
kvsetkeys
l3packages
letltxmacro
listings
ltxcmds
makeindex
needspace
oberdiek
pdfescape
pdftexcmds
psnfss
refcount
rerunfilecheck
hyperref
titlesec
tools
underscore
uniquecounter
54 changes: 54 additions & 0 deletions .github/workflows/deploy.yaml
@@ -0,0 +1,54 @@
name: Create release

# We create releases for all new tags
on:
push:
tags:
- "*"

jobs:
release:
runs-on: ubuntu-latest
name: Build release
environment: Release
steps:
# Boilerplate
- name: Checkout repository
uses: actions/checkout@v2
# GitHub Actions don't regenerate the test if the key doesn't change, so
# we integrate a random UUID into the key to keep them different.
# DO NOT CHANGE THIS
- name: Generate unique ID
id: get-id
run: |
echo -n ::set-output name=id::
cat /proc/sys/kernel/random/uuid
# Actually load the cache. Since we never reuse the key, we need restore-keys
# to indicate the prefix of our caches. This loads the newest cache with this
# prefix in the key.
#
# If we want to force regeneration of the cache, increase the number after
# *both* instances of "texlive-v"
- name: Load cache
uses: actions/cache@v2
with:
path: ~/texlive
key: texlive-v0-${{ steps.get-id.outputs.id }}
restore-keys: texlive-v0-
# We need Ghostscript for XeTeX tests.
- run: sudo apt-get install ghostscript
- name: Install TeX Live
uses: zauguin/install-texlive@v1
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: texlua l3build.lua ctan -H --show-log-on-error
# Now create the release (this only runs if the previous steps were successful)
- name: Create GitHub release
uses: ncipollo/release-action@880be3d0a71bc0fa98db60201d2cbdc27324f547
id: release
with:
artifacts: "build/distrib/ctan/*.zip"
token: ${{ secrets.GITHUB_TOKEN }}
45 changes: 45 additions & 0 deletions .github/workflows/main.yaml
@@ -0,0 +1,45 @@
name: Automated testing

on:
push:
pull_request:
branches:
- main

jobs:
l3build:
runs-on: ubuntu-latest
steps:
# Boilerplate
- name: Checkout repository
uses: actions/checkout@v2
# GitHub Actions don't regenerate the test if the key doesn't change, so
# we integrate a random UUID into the key to keep them different.
# DO NOT CHANGE THIS
- name: Generate unique ID
id: get-id
run: |
echo -n ::set-output name=id::
cat /proc/sys/kernel/random/uuid
# Actually load the cache. Since we never reuse the key, we need restore-keys
# to indicate the prefix of our caches. This loads the newest cache with this
# prefix in the key.
#
# If we want to force regeneration of the cache, increase the number after
# *both* instances of "texlive-v"
- name: Load cache
uses: actions/cache@v2
with:
path: ~/texlive
key: texlive-v0-${{ steps.get-id.outputs.id }}
restore-keys: texlive-v0-
# We need Ghostscript for XeTeX tests.
- run: sudo apt-get install ghostscript
- name: Install TeX Live
uses: zauguin/install-texlive@v1
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: texlua l3build.lua ctan -H --show-log-on-error
10 changes: 0 additions & 10 deletions support/texlive.profile

This file was deleted.

79 changes: 0 additions & 79 deletions support/texlive.sh

This file was deleted.

0 comments on commit f73eaa5

Please sign in to comment.