-
Notifications
You must be signed in to change notification settings - Fork 5
63 lines (51 loc) · 1.65 KB
/
doc.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
name: doc
on:
push:
branches: [ master ]
schedule:
- cron: "0 21 * * *"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
docs:
name: "generate docs"
runs-on: "ubuntu-20.04"
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install GDAL Gmt
run: |
sudo apt-get update
sudo apt-get install libgdal-dev gdal-bin build-essential gmt
export C_INCLUDE_PATH=/usr/include/gdal:$C_INCLUDE_PATH
export CPLUS_INCLUDE_PATH=/usr/include/gdal:$CPLUS_INCLUDE_PATH
sudo ldconfig
- name: Install doxygen
run: |
sudo apt-get update
sudo apt-get install doxygen-latex doxygen graphviz python3 python3-breathe python3-sphinx
- name: Cache Qt
id: cache-qt
uses: actions/cache@v1
with:
path: ../Qt
key: ${{ runner.os }}-QtCache
- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
cached: ${{ steps.cache-qt.outputs.cache-hit }}
- name: Install qwt
run: |
sudo apt-get update
sudo apt-get install libqwt-headers libqwt-qt5-6 libqwt-qt5-dev
- name: Setup building
run: |
git submodule update --init --recursive
- name: Build docs
run: |
mkdir build
touch build/GisL_en.qm build/GisL_zh.qm
cmake -B build -S . -DPYTHON_EXECUTABLE=/usr/bin/python -DUPDATE_TRANSLATIONS=on
rm build/GisL_en.qm build/GisL_zh.qm
cmake --build build --target Translations
cmake --build build --target docs