Skip to content

Commit

Permalink
Tentative fix for the doxygen installation in the CI (Windows) (#1890)
Browse files Browse the repository at this point in the history
Signed-off-by: Cédrik Fuoco <[email protected]>
Co-authored-by: Doug Walker <[email protected]>
  • Loading branch information
cedrik-fuoco-adsk and doug-walker authored Nov 5, 2023
1 parent ed85207 commit b94a184
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 8 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/dependencies_latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- name: Install docs env
run: share/ci/scripts/windows/install_docs_env.sh
run: |
DOXYGEN_PATH=$GITHUB_WORKSPACE/doxygen
share/ci/scripts/windows/install_docs_env.sh "$DOXYGEN_PATH"
echo "$DOXYGEN_PATH" >> $GITHUB_PATH
shell: bash
if: matrix.build-docs == 'ON'
- name: Install tests env
Expand Down
3 changes: 2 additions & 1 deletion share/ci/scripts/windows/install_docs_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
set -ex

HERE=$(dirname $0)
DOXYGEN_LOCATION="$1"

bash $HERE/install_doxygen.sh latest
bash $HERE/install_doxygen.sh "$DOXYGEN_LOCATION"
pip install -r $HERE/../../../../docs/requirements.txt
20 changes: 14 additions & 6 deletions share/ci/scripts/windows/install_doxygen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,18 @@

set -ex

DOXYGEN_VERSION="$1"
DOXYGEN_LOCATION="$1"

if [ "$DOXYGEN_VERSION" == "latest" ]; then
choco install doxygen.install
else
choco install doxygen.install --version=${DOXYGEN_VERSION}
fi
# Utility to parse JSON object.
choco install jq

# Get the URL of the latest zip package for Doxygen.
url=$(curl -s 'https://api.github.com/repos/doxygen/doxygen/releases/latest' | jq -r '.assets[] | select(.name | test("doxygen-.*windows.x64.bin.zip")) | .browser_download_url')

# Download the zip.
mkdir $DOXYGEN_LOCATION
cd $DOXYGEN_LOCATION
powershell 'iwr -URI '$url' -OutFile doxygen.zip'

# Unzip the file into $DOXYGEN_LOCATION.
unzip -o doxygen.zip

0 comments on commit b94a184

Please sign in to comment.