forked from jackolney/travis-ci-latex-pdf
-
-
Notifications
You must be signed in to change notification settings - Fork 23
44 lines (34 loc) · 1.01 KB
/
context.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Compile a ConTeXt document
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v1
- name: Cache ConTeXt installation
id: cache-context
uses: actions/cache@v1
with:
path: context
key: ${{ runner.os }}-context
- name: Install ConTeXt
if: steps.cache-context.outputs.cache-hit != 'true'
run: |
sudo apt-get update
sudo apt-get install -y wget rsync unzip
mkdir context
cd context
rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh ./
sh ./first-setup.sh --modules=all --engine=luatex
cd ..
- name: Compile context-mwe.tex
run: |
. context/tex/setuptex
cd src/context
context context-mwe.tex
- name: Upload pdf
uses: actions/upload-artifact@v1
with:
name: context-mwe
path: src/context/context-mwe.pdf