Skip to content

Commit

Permalink
Switch to github actions (#17)
Browse files Browse the repository at this point in the history
* Switch to github actions

* Install all needed TeXLive packages

* Install only needed TeXLive packages
  • Loading branch information
maxnoe authored Sep 15, 2021
1 parent e75bf6b commit b0f10f6
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 42 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: CI

on: [push, pull_request]

env:
TEXLIVE_VERSION: 2021

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Setup
run: |
# install current version of inkscape
sudo add-apt-repository -y ppa:inkscape.dev/stable
sudo apt-get update -q
# curl for download, dbus-x11 fixes a lot of warnings from inkscape that
# cluttered the log
sudo apt-get install inkscape curl dbus-x11 -y
inkscape --version
# install texlive
pip install https://github.com/MaxNoe/texlive-batch-installation/archive/master.tar.gz
install_texlive -t $TEXLIVE_VERSION --collection='-a' --package-file tex-packages.txt -p $HOME/.local/texlive -v
echo "$HOME/.local/texlive/$TEXLIVE_VERSION/bin/x86_64-linux" >> $GITHUB_PATH
- name: Install Montserrat Font
run: |
curl -Lo $HOME/montserrat.zip https://fonts.google.com/download?family=Montserrat
mkdir -p $HOME/.local/share/fonts
unzip -d $HOME/.local/share/fonts $HOME/montserrat.zip
fc-cache
fc-list 'Montserrat'
luaotfload-tool --update --force
- name: Build
run: |
dbus-run-session python create_logos.py -n 2
zip -r ./s4f_all_logos.zip ./s4f_all_logos -x '*.zip'
mv s4f_all_logos.zip s4f_all_logos
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: s4f_all_logos/*.zip
42 changes: 0 additions & 42 deletions .travis.yml

This file was deleted.

22 changes: 22 additions & 0 deletions tex-packages.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
epstopdf-pkg
fontspec
geometry
graphics
ifmtarg
infwarerr
latex
latex-bin
luacode
lualatex-math
luaotfload
luatex
luatex85
luatex85
luatexbase
pgf
standalone
tools
xcolor
xifthen
xkeyval
ltxcmds

0 comments on commit b0f10f6

Please sign in to comment.