Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adsk Contrib - Fix for the doxygen installation failure in the Dependencies latest workflow (Windows) #1890

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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