From 648af81235d4bec2d6a2238bc2bfd683ab0def75 Mon Sep 17 00:00:00 2001 From: epernod Date: Thu, 29 Aug 2024 18:20:18 +0200 Subject: [PATCH 1/2] restore tests on ci --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a6436ab..3cdb5c1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -79,6 +79,34 @@ jobs: echo "SOFA_PLUGIN_PATH=$WORKSPACE_ARTIFACT_PATH/lib" | tee -a $GITHUB_ENV fi + - name: Run Tearing_test + if: always() + shell: bash + run: | + chmod +x $WORKSPACE_BUILD_PATH/bin/Tearing_test${{ steps.sofa.outputs.exe }} + cd $WORKSPACE_BUILD_PATH + ./bin/Tearing_test${{ steps.sofa.outputs.exe }} + + - name: Fetch, install and run Regression_test + if: always() + shell: bash + run: | + if [[ "$RUNNER_OS" != "macOS" ]]; then + # Get regression from github releases + mkdir -p "${{ runner.temp }}/regression_tmp/install" + curl --output "${{ runner.temp }}/regression_tmp/${RUNNER_OS}.zip" -L https://github.com/sofa-framework/regression/releases/download/release-master/Regression_test_master_for-SOFA-${{ steps.sofa.outputs.sofa_version }}_${RUNNER_OS}.zip + unzip -qq "${{ runner.temp }}/regression_tmp/${RUNNER_OS}.zip" -d "${{ runner.temp }}/regression_tmp/install" + # Install it in the SOFA bin directory + $SUDO mv "${{ runner.temp }}"/regression_tmp/install/Regression_*/bin/* "${SOFA_ROOT}/bin" + chmod +x ${SOFA_ROOT}/bin/Regression_test${{ steps.sofa.outputs.exe }} + # Setup mandatory env vars + export REGRESSION_SCENES_DIR="${WORKSPACE_SRC_PATH}/scenes" + export REGRESSION_REFERENCES_DIR="${WORKSPACE_SRC_PATH}/regression/references" + # Run regression test bench + ${SOFA_ROOT}/bin/Regression_test${{ steps.sofa.outputs.exe }} + else + echo "Regression tests are not supported on the CI for macOS yet (TODO)" + fi deploy: name: Deploy artifacts From c72103860cd63a03c71e36e5bae358d376b64541 Mon Sep 17 00:00:00 2001 From: epernod Date: Mon, 2 Sep 2024 11:39:28 +0200 Subject: [PATCH 2/2] fix ci on ubuntu ?? --- .github/workflows/ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3cdb5c1..9c660c1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -78,6 +78,14 @@ jobs: else echo "SOFA_PLUGIN_PATH=$WORKSPACE_ARTIFACT_PATH/lib" | tee -a $GITHUB_ENV fi + + if [[ "$RUNNER_OS" == "macOS" ]]; then + echo "DYLD_LIBRARY_PATH=$WORKSPACE_ARTIFACT_PATH/lib:$SOFA_ROOT/lib:$SOFA_ROOT/plugins/SofaPython3/lib:$DYLD_LIBRARY_PATH" | tee -a $GITHUB_ENV + fi + + if [[ "$RUNNER_OS" == "Linux" ]]; then + echo "LD_LIBRARY_PATH=$WORKSPACE_ARTIFACT_PATH/lib:$SOFA_ROOT/lib:$SOFA_ROOT/plugins/SofaPython3/lib:$LD_LIBRARY_PATH" | tee -a $GITHUB_ENV + fi - name: Run Tearing_test if: always()