Skip to content

Commit d74c309

Browse files
committed
[ci] Test suggestion
1 parent be7bf4b commit d74c309

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,20 @@ jobs:
114114
name: ${{ steps.sanitize.outputs.artifact_name }}
115115
path: ${{ env.WORKSPACE_ARTIFACT_PATH }}
116116

117-
- name: Launch test
117+
- name: Make ConstraintGeometry visible for tests
118+
shell: bash
119+
run: |
120+
# The test action sets SOFA_PLUGIN_PATH to build_dir/lib (or /bin on Windows) only.
121+
# Copying the ConstraintGeometry library there makes it discoverable without
122+
# affecting the release artifact (which is uploaded from WORKSPACE_INSTALL_PATH).
123+
if [[ "$RUNNER_OS" == "Windows" ]]; then
124+
# On Windows, DLLs live directly in the build root (build/bin does not exist)
125+
cp $GITHUB_WORKSPACE/downstream/ConstraintGeometry/install/bin/ConstraintGeometry.dll $WORKSPACE_BUILD_PATH/
126+
else
127+
cp $GITHUB_WORKSPACE/downstream/ConstraintGeometry/install/lib/libConstraintGeometry.* $WORKSPACE_BUILD_PATH/lib/
128+
fi
129+
130+
- name: Launch test
118131
id: tests
119132
uses: sofa-framework/sofa-test-action@v1.0
120133
with:

0 commit comments

Comments
 (0)