File tree 3 files changed +12
-7
lines changed
3 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 3
3
4
4
set -e
5
5
6
+ # Run with sudo if not root user
7
+ SUDO=" "
8
+ if [ $( id -u) -ne 0 ]; then
9
+ SUDO=" sudo"
10
+ fi
11
+
6
12
echo " Installing apt packages"
7
- sudo apt-get update > /dev/null
8
- sudo apt-get install -y wget git cmake graphviz > /dev/null
13
+ $SUDO apt-get update > /dev/null
14
+ $SUDO apt-get install -y wget git cmake graphviz > /dev/null
9
15
10
16
echo " Installing Doxygen"
11
- wget https://www.doxygen.nl/files/doxygen-1.12.0.linux.bin.tar.gz > /dev/null
17
+ wget -q https://www.doxygen.nl/files/doxygen-1.12.0.linux.bin.tar.gz
12
18
tar -xzf doxygen-1.12.0.linux.bin.tar.gz > /dev/null
13
19
export PATH=" $PWD /doxygen-1.12.0/bin:$PATH "
14
20
15
21
# List of branches to build docs for
16
22
# TODO: Remove doxygen branch once tested
17
- BRANCHES=" doxygen master develop"
23
+ BRANCHES=" master develop"
18
24
19
25
build-docs () (
20
26
git checkout $1
Original file line number Diff line number Diff line change 5
5
branches :
6
6
- master
7
7
- develop
8
- - doxygen # TODO: Remove after testing
9
8
10
9
# Only one of this workflow runs at a time
11
10
concurrency :
Original file line number Diff line number Diff line change @@ -26,8 +26,6 @@ if("html" IN_LIST DOC_VERSIONS)
26
26
list (REMOVE_ITEM DOC_VERSIONS "html" )
27
27
endif ()
28
28
29
- message (STATUS "Existing documentation versions: ${FENIX_DOC_VERSIONS} " )
30
-
31
29
list (APPEND DOC_VERSIONS ${DOXYGEN_HTML_OUTPUT} )
32
30
list (REMOVE_DUPLICATES DOC_VERSIONS)
33
31
list (SORT DOC_VERSIONS)
@@ -36,6 +34,8 @@ if("main" IN_LIST DOC_VERSIONS)
36
34
list (PREPEND DOC_VERSIONS "main" )
37
35
endif ()
38
36
37
+ message (STATUS "Documentation versions: ${DOC_VERSIONS} " )
38
+
39
39
set (DOC_DEFAULT_VERSION "develop" )
40
40
if (NOT DOC_DEFAULT_VERSION IN_LIST DOC_VERSIONS)
41
41
set (DOC_DEFAULT_VERSION ${FENIX_BRANCH} )
You can’t perform that action at this time.
0 commit comments