Skip to content

Commit 144f113

Browse files
committed
[ci] Setting up non-regression workflow steps: Checkout and build ConstraintGeometry
1 parent 36bcbb8 commit 144f113

File tree

1 file changed

+42
-3
lines changed

1 file changed

+42
-3
lines changed

.github/workflows/ci.yml

Lines changed: 42 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,13 @@ jobs:
2121
sofa_root: ${{ github.workspace }}/sofa
2222
sofa_version: ${{ matrix.sofa_branch }}
2323
sofa_scope: 'standard'
24-
- name: Checkout source code
24+
25+
- name: Checkout CollisionAlgorithm
2526
uses: actions/checkout@v2
2627
with:
2728
path: ${{ env.WORKSPACE_SRC_PATH }}
2829

29-
- name: Build and install
30+
- name: Build and install CollisionAlgorithm
3031
id: build-install
3132
shell: bash
3233
run: |
@@ -55,6 +56,35 @@ jobs:
5556
echo ${CCACHE_BASEDIR}
5657
ccache -s
5758
fi
59+
60+
- name: Checkout ConstraintGeometry
61+
uses: actions/checkout@v2
62+
with:
63+
repository: InfinyTech3D/ConstraintGeometry
64+
path: downstream/ConstraintGeometry
65+
66+
- name: Build ConstraintGeometry
67+
shell: bash
68+
run: |
69+
mkdir -p downstream/ConstraintGeometry/build
70+
if [[ "$RUNNER_OS" == "Windows" ]]; then
71+
cmd //c "${{ steps.sofa.outputs.vs_vsdevcmd }} \
72+
&& cd /d %GITHUB_WORKSPACE%/downstream/ConstraintGeometry/build \
73+
&& cmake \
74+
-GNinja \
75+
-DCMAKE_PREFIX_PATH=$SOFA_ROOT/lib/cmake;%WORKSPACE_INSTALL_PATH%/lib/cmake \
76+
-DCMAKE_BUILD_TYPE=Release \
77+
.. \
78+
&& ninja"
79+
else
80+
cd downstream/ConstraintGeometry/build
81+
cmake \
82+
-GNinja \
83+
-DCMAKE_PREFIX_PATH="$SOFA_ROOT/lib/cmake;$WORKSPACE_INSTALL_PATH/lib/cmake" \
84+
-DCMAKE_BUILD_TYPE=Release \
85+
..
86+
ninja
87+
fi
5888
5989
- name: Sanitize artifact name
6090
id: sanitize
@@ -81,7 +111,16 @@ jobs:
81111
with:
82112
name: ${{ steps.sanitize.outputs.artifact_name }}
83113
path: ${{ env.WORKSPACE_ARTIFACT_PATH }}
84-
114+
115+
- name: Debug install tree
116+
if: runner.os == 'Linux'
117+
run: |
118+
echo "=== Listing Workspace ==="
119+
find $GITHUB_WORKSPACE -maxdepth 3 -not -path '*/.*' -type d -print
120+
echo "=== Listing cmake files ==="
121+
find $GITHUB_WORKSPACE -name "*Config.cmake" -print
122+
123+
85124
- name: Set env vars for tests
86125
shell: bash
87126
run: |

0 commit comments

Comments
 (0)