-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (54 loc) · 1.64 KB
/
pdf_build.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
name: PDF-build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
# Checks-out the repository
- name: Checkout
uses: actions/checkout@v2
# Install tex packages
- name: Package Installation
shell: bash -l {0}
run: |
source ./.ci-support/install_tex_packages.sh
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
export PATH="$HOME/miniconda/bin:$PATH"
bash miniconda.sh -b -p $HOME/miniconda
conda config --set always_yes yes --set changeps1 no
conda install -c conda-forge pygments
# Compilation of the pdf
- name: Compile the PDF
shell: bash -l {0}
run: |
cd source
pdflatex -shell-escape thesis.tex
bibtex thesis
pdflatex -shell-escape thesis.tex
pdflatex -shell-escape thesis.tex
cp *.pdf ../.
cd ../
# install:
# # tex install
# - source ./.ci-support/install_tex_packages.sh
# - wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
# - export PATH="$HOME/miniconda/bin:$PATH"
# - bash miniconda.sh -b -p $HOME/miniconda
# - conda config --set always_yes yes --set changeps1 no
# - conda install -c conda-forge pygments
# cache:
# directories:
# - /tmp/texlive
# - $HOME/.texlive
# script:
# - cd source
# - pdflatex -shell-escape thesis.tex
# - bibtex thesis
# - pdflatex -shell-escape thesis.tex
# - pdflatex -shell-escape thesis.tex
# - cp *.pdf ../.
# - cd ../