Skip to content

Commit

Permalink
Merge pull request #1098 from Alizter/github-actions
Browse files Browse the repository at this point in the history
github actions to replace travis script
  • Loading branch information
mikeshulman authored Feb 23, 2022
2 parents fe63517 + c7fe961 commit 29a2815
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: CI

on: [ push, pull_request ]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
include:
- latexmk: 'yes'
update_errata: ''
update_nightlies: ''
targets: ''
- latexmk: ''
update_errata: 'yes'
update_nightlies: 'yes'
targets: ''
- latexmk: ''
update_errata: ''
update_nightlies: ''
targets: 'dvi'

env:
LATEXMK: ${{ matrix.latexmk }}
UPDATE_ERRATA: ${{ matrix.update_errata }}
UPDATE_NIGHTLIES: ${{ matrix.update_nightlies }}
TARGETS: ${{ matrix.targets }}

steps:
# Install texlive and other deps
- name: Install deps
run: |
sudo apt-get install \
wget \
curl \
sed \
grep \
texlive \
texlive-latex-base \
texlive-latex-extra \
texlive-latex-recommended \
texlive-science-doc \
texlive-science \
texlive-metapost \
texlive-xetex
- name: Checkout repo
uses: actions/checkout@v2

# Install latexmk if needed
- name: Install latexmk
if: matrix.latexmk == 'yes'
run: sudo apt-get install latexmk -y

- name: Build
run: make ${{ matrix.targets }}

- name: Update errata
run: etc/ci/update_errata.sh

- name: Update nightlies
run: etc/ci/update_nightlies.sh

0 comments on commit 29a2815

Please sign in to comment.