-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1098 from Alizter/github-actions
github actions to replace travis script
- Loading branch information
Showing
1 changed file
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |