-
Notifications
You must be signed in to change notification settings - Fork 3
106 lines (91 loc) · 2.39 KB
/
Copy pathCI.yml
File metadata and controls
106 lines (91 loc) · 2.39 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
name: CI
on:
push:
branches:
- main
tags:
- 'v*'
pull_request:
branches:
- main
jobs:
Build:
name: Tectonic
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install Inkscape in Ubuntu
run: |
sudo add-apt-repository ppa:inkscape.dev/stable
sudo apt update
sudo apt -y install inkscape
sudo touch /var/lib/cloud/instance/locale-check.skip
- uses: mamba-org/provision-with-micromamba@main
with:
environment-file: environment.yml
extra-specs: |
python=3.10
- uses: hendrikmuhs/ccache-action@main
with:
variant: sccache
key: ${{ github.job }}
- name: Build
shell: bash -l {0}
run: |
./build.sh
- name: Archive artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: results
path: |
Slabikar.otf
examples/tex/example.pdf
examples/tex/example1.png
examples/tex/example2.png
examples/tex/diff1.png
examples/tex/diff2.png
xelatex:
name: xelatex
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install Inkscape in Ubuntu
run: |
sudo add-apt-repository ppa:inkscape.dev/stable
sudo apt update
sudo apt -y install inkscape texlive-latex-extra texlive-xetex
sudo touch /var/lib/cloud/instance/locale-check.skip
- uses: mamba-org/provision-with-micromamba@main
with:
environment-file: environment.yml
extra-specs: |
python=3.10
- uses: hendrikmuhs/ccache-action@main
with:
variant: sccache
key: ${{ github.job }}
- name: Build
shell: bash -l {0}
run: |
./build.sh
- name: LaTeX
shell: bash -l {0}
run: |
cd examples/tex
rm example.pdf
xelatex example.tex
- name: Archive example.pdf
if: always()
uses: actions/upload-artifact@v3
with:
name: example_xelatex.pdf
path: examples/tex/example.pdf