File tree Expand file tree Collapse file tree 3 files changed +32
-24
lines changed Expand file tree Collapse file tree 3 files changed +32
-24
lines changed Original file line number Diff line number Diff line change 1+ name : Set up doxygen
2+ description : |
3+ Download, build, and install doxygen.
4+
5+ runs :
6+ using : " composite"
7+ steps :
8+ - name : Install apt dependencies for doxygen
9+ run : |
10+ sudo apt-get update \
11+ && sudo apt-get install -y \
12+ bison \
13+ ragel \
14+ graphviz \
15+ texlive-latex-extra
16+ shell : bash
17+
18+ - name : Download and build doxygen
19+ run : sudo scripts/downloadAndBuildDoxygen.sh
20+ shell : bash
Original file line number Diff line number Diff line change 1616jobs :
1717 doxygen :
1818 name : Test Doxygen
19-
2019 runs-on : ubuntu-22.04
2120
2221 strategy :
@@ -32,26 +31,14 @@ jobs:
3231 - uses : actions/checkout@v3
3332 - run : git fetch --prune --unshallow
3433
35- - name : apt
36- run : |
37- sudo apt-get update \
38- && sudo apt-get install -y \
39- bison \
40- ragel \
41- graphviz \
42- texlive-latex-extra
43-
44- - name : Build doxygen
45- run : |
46- sudo scripts/downloadAndBuildDoxygen.sh
34+ - name : Set up doxygen
35+ uses : ./.github/actions/setup-doxygen
4736
4837 - name : Run doxygen
49- run : |
50- scripts/run-doxygen.sh
38+ run : scripts/run-doxygen.sh
5139
5240 sphinx :
5341 name : Test Sphinx
54-
5542 runs-on : ubuntu-22.04
5643
5744 strategy :
7057 - run : echo "AMICI_DIR=$(pwd)" >> $GITHUB_ENV
7158 - run : echo "SWIG=${AMICI_DIR}/ThirdParty/swig-4.1.1/install/bin/swig" >> $GITHUB_ENV
7259
73- - name : Build doxygen
74- run : |
75- sudo scripts/downloadAndBuildDoxygen.sh
60+ - name : Set up doxygen
61+ uses : ./.github/actions/setup-doxygen
7662
7763 # install amici dependencies
7864 - name : apt
9076 sudo scripts/downloadAndBuildSwig.sh
9177
9278 - name : sphinx
93- run : |
94- scripts/run-sphinx.sh
79+ run : scripts/run-sphinx.sh
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22# Download and build Doxygen (in case apt or homebrew version is buggy again)
3- set -e
3+ set -euo pipefail
44
55SCRIPT_PATH=$( dirname " $BASH_SOURCE " )
66AMICI_PATH=$( cd " $SCRIPT_PATH " /.. && pwd)
77
88DOXYGEN_DIR=" ${AMICI_PATH} " /ThirdParty/doxygen
99cd " ${AMICI_PATH} " /ThirdParty
1010if [[ ! -d ${DOXYGEN_DIR} ]]; then
11- # git clone --depth 1 https://github.com/doxygen/doxygen.git "${DOXYGEN_DIR}"
12- git clone --single-branch --branch Release_1_9_7 --depth 1 https://github.com/doxygen/doxygen.git " ${DOXYGEN_DIR} "
11+ git clone --single-branch \
12+ --branch Release_1_9_7 \
13+ --depth 1 \
14+ -c advice.detachedHead=false \
15+ https://github.com/doxygen/doxygen.git " ${DOXYGEN_DIR} "
1316fi
1417
1518cd " ${DOXYGEN_DIR} "
You can’t perform that action at this time.
0 commit comments