-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (43 loc) · 1.39 KB
/
tex2pdf.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
name: Generate ./documentation/docs.pdf
on:
push:
branches: [master]
pull_request:
branches: [master]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Allow one concurrent deployment
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
name: (doxygen ./documentation/s4c.doxyfile) -> (cd ./doxygen/latex && make) -> docs.pdf
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Run sudo apt update
run: sudo apt update -y
- name: Install doxygen
run: sudo apt install doxygen -y
- name: Install doxygen-latex
run: |
sudo apt install doxygen-latex -y
- name: Generate tex (doxygen s4c.doxyfile)
run: |
doxygen "./documentation/s4c.doxyfile"
- name: Compile tex with make (cd ./doxygen/latex ; make)
run: |
echo "Switching dir to ./doxygen/latex" &&
pwd &&
cd ./doxygen/latex &&
pwd &&
make
- name: Move refman.pdf to documentation/docs.pdf
run: |
ls -l ./doxygen/latex/refman.pdf
echo -e "\n\n\033[1;32m ./doxygen/latex/refman.pdf -> ./documentation/docs.pdf\e[0m\n"
mv ./doxygen/latex/refman.pdf ./documentation/docs.pdf
test -e ./documentation/docs.pdf