-
Notifications
You must be signed in to change notification settings - Fork 6
92 lines (73 loc) · 2.44 KB
/
ci.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
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
name: CI
on:
push:
branches:
- main
tags:
- "**"
pull_request:
env:
TEXLIVE_VERSION: 2024
TERM: xterm
# silences warnings from jupyter about not being able to debug the stdlib
PYDEVD_DISABLE_FILE_VALIDATION: 1
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
# We need login shells (-l) for micromamba to work.
shell: bash -leo pipefail {0}
steps:
- uses: actions/checkout@v3
- uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment.yml
- name: Setup
run: |
sudo apt-get install --yes poppler-utils
pip install install-texlive
python -m install_texlive -p $HOME/texlive -t $TEXLIVE_VERSION --collections='-a' --package-file tex-packages.txt --update -v
# add to path for following steps
echo "$HOME/texlive/$TEXLIVE_VERSION/bin/x86_64-linux" >> $GITHUB_PATH
export PATH="$HOME/texlive/$TEXLIVE_VERSION/bin/x86_64-linux:$PATH"
tlmgr install --with-doc tex-overview
curl -LO https://www.wfonts.com/download/data/2014/06/05/comic-sans-ms/comic-sans-ms.zip
unzip comic-sans-ms.zip -d $HOME/.local/share/fonts
rm comic-sans-ms.zip
fc-cache
fc-list 'Comic Sans MS' | grep Comic
# generate the lualatex font cache, otherwise it is done in parallel when calling make
luaotfload-tool --update --force
# copy latexmkrc to make sure its used also for vXXX
mkdir -p ~/.config/latexmk
cp common/latexmkrc ~/.config/latexmk/
# add pre-commit to CI workflow
pre-commit install
pre-commit
- name: Check Setup
run: |
echo "which python"
which python
echo "python --version"
python --version
echo "conda list"
conda list
- name: Build
run: |
make -j 2
- name: check for errors
if: always()
run: "! grep -R --include='*.log' '^!' -A 5 -B 5"
- name: Prepare Upload
run: |
mkdir toolbox-material
cp **/build/*.pdf toolbox-material
cp **/build/*.zip toolbox-material
cp python/build/*.html toolbox-material
ls -lh toolbox-material
- uses: actions/upload-artifact@v3
name: Upload Material
with:
name: Toolbox Material
path: toolbox-material/*