From 001732af5de8e37108f4d6c707cee66232d67850 Mon Sep 17 00:00:00 2001 From: Olivier Roussel Date: Wed, 26 Jul 2023 16:31:18 +0200 Subject: [PATCH] Fix install SofaPython3 CI action. --- .github/workflows/ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 64c4454..8626cc0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -54,7 +54,11 @@ jobs: SofaPython3_ROOT="$GITHUB_WORKSPACE/SofaPython3" mkdir -p "${{ runner.temp }}/sp3_tmp/zip" "${{ runner.temp }}/sp3_tmp/binaries" "$SofaPython3_ROOT" url="https://github.com/sofa-framework/SofaPython3/releases/download" - url="${url}/release-master-nightly/SofaPython3_master-nightly_python-${{ matrix.python_version }}_for-SOFA-${{ matrix.sofa_branch }}_${{ runner.os }}.zip" + if [[ "${{ matrix.sofa_branch }}" == "master" ]]; then + url="${url}/release-master-nightly/SofaPython3_master-nightly_python-${{ matrix.python_version }}_for-SOFA-master_${{ runner.os }}.zip" + else + url="${url}/release-${{ matrix.sofa_branch }}/SofaPython3_${{ matrix.sofa_branch }}_python-${{ matrix.python_version }}_for-SOFA-${{ matrix.sofa_branch }}_${{ runner.os }}.zip" + fi echo "Getting SofaPython3 from $url" curl --output "${{ runner.temp }}/sp3_tmp/SofaPython3.zip" -L $url unzip -qq "${{ runner.temp }}/sp3_tmp/SofaPython3.zip" -d "${{ runner.temp }}/sp3_tmp/binaries"