From 76f86329a70d65db6161f091f90df672895d0ae4 Mon Sep 17 00:00:00 2001 From: Paul Baksic Date: Thu, 1 Oct 2026 10:29:49 +0200 Subject: [PATCH 1/3] Change default python verison --- action.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/action.yml b/action.yml index 345b2cd..68827fb 100644 --- a/action.yml +++ b/action.yml @@ -16,7 +16,7 @@ inputs: default: 'true' python_version: description: 'Python version to install' - default: '3.10' + default: '3.12' numpy_version: description: 'numpy version to install' default: 'latest' @@ -259,7 +259,7 @@ runs: echo "----------------------------------" # Upgrade pip - $PYTHON_EXE -m pip install --upgrade pip + $PYTHON_EXE -m pip install --upgrade pip --break-system-packages # Set SOFA_VERSION_FOR_DEPS SOFA_VERSION_FOR_DEPS="$(echo "${{ inputs.sofa_version }}" | sed 's:[^0-9]*::g')" @@ -272,14 +272,14 @@ runs: shell: bash run: | if [[ "${{ inputs.numpy_version }}" == "latest" ]]; then - $PYTHON_EXE -m pip install numpy requests + $PYTHON_EXE -m pip install numpy requests --break-system-packages else - $PYTHON_EXE -m pip install numpy==${{ inputs.numpy_version }} requests + $PYTHON_EXE -m pip install numpy==${{ inputs.numpy_version }} requests --break-system-packages fi if [[ "${{ inputs.scipy_version }}" == "latest" ]]; then - $PYTHON_EXE -m pip install scipy requests + $PYTHON_EXE -m pip install scipy requests --break-system-packages else - $PYTHON_EXE -m pip install scipy==${{ inputs.scipy_version }} requests + $PYTHON_EXE -m pip install scipy==${{ inputs.scipy_version }} requests --break-system-packages fi echo '---- pip show numpy scipy ----' $PYTHON_EXE -m pip show numpy scipy requests @@ -295,7 +295,7 @@ runs: - name: Install pybind11 ${{ inputs.pybind11_version }} shell: bash run: | - $PYTHON_EXE -m pip install pybind11==${{ inputs.pybind11_version }} + $PYTHON_EXE -m pip install pybind11==${{ inputs.pybind11_version }} --break-system-packages pybind11_DIR="pybind11-dir-not-found" if [ -e "$(command -v pybind11-config)" ]; then pybind11_DIR="$(pybind11-config --cmakedir)" From 317b46ef46d46a7a3e66c3ca491d836d0d8c280e Mon Sep 17 00:00:00 2001 From: Paul Baksic Date: Thu, 1 Oct 2026 11:58:34 +0200 Subject: [PATCH 2/3] Fix dest folder --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 68827fb..e7e1e4c 100644 --- a/action.yml +++ b/action.yml @@ -432,7 +432,7 @@ runs: # Release was not found on GitHub, try to get it from Jenkins python3 $WORKSPACE_CI_PATH/scripts/getLatestSOFANightly.py ${{ github.token }} "${{ runner.temp }}/sofa_tmp/" --os ${ARTIFACT_OS} -n 1 -b ${{ inputs.sofa_version }} -e any - unzip -qq ${{ runner.temp }}/sofa_tmp/latest/${ARTIFACT_OS}*/SOFA_* -d "${{ runner.temp }}/sofa_tmp/binaries" + unzip -qq ${{ runner.temp }}/sofa_tmp/latest/${ARTIFACT_OS}/SOFA_* -d "${{ runner.temp }}/sofa_tmp/binaries" $SUDO mkdir -p "${{ inputs.sofa_root }}" $SUDO mv "${{ runner.temp }}"/sofa_tmp/binaries/SOFA_*/* "${{ inputs.sofa_root }}" From dd8c96233830a7e4e39931b617e8dece71fb3222 Mon Sep 17 00:00:00 2001 From: Paul Baksic Date: Thu, 1 Oct 2026 13:08:05 +0200 Subject: [PATCH 3/3] Fix windows --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index e7e1e4c..4c43f4b 100644 --- a/action.yml +++ b/action.yml @@ -432,7 +432,7 @@ runs: # Release was not found on GitHub, try to get it from Jenkins python3 $WORKSPACE_CI_PATH/scripts/getLatestSOFANightly.py ${{ github.token }} "${{ runner.temp }}/sofa_tmp/" --os ${ARTIFACT_OS} -n 1 -b ${{ inputs.sofa_version }} -e any - unzip -qq ${{ runner.temp }}/sofa_tmp/latest/${ARTIFACT_OS}/SOFA_* -d "${{ runner.temp }}/sofa_tmp/binaries" + unzip -qq "${{ runner.temp }}"/sofa_tmp/latest/${ARTIFACT_OS}/SOFA_* -d "${{ runner.temp }}/sofa_tmp/binaries" $SUDO mkdir -p "${{ inputs.sofa_root }}" $SUDO mv "${{ runner.temp }}"/sofa_tmp/binaries/SOFA_*/* "${{ inputs.sofa_root }}"