Skip to content

Commit a3904fd

Browse files
kiritigowdaclaude
andcommitted
Fix CI: clone submodules and auto-detect library path
The Khronos OpenVX sample implementation requires git submodules for building. Also dynamically find the library output path instead of hardcoding it. Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
1 parent 526d87f commit a3904fd

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,27 @@ jobs:
1919

2020
- name: Build Khronos OpenVX sample implementation
2121
run: |
22-
git clone --depth 1 https://github.com/KhronosGroup/OpenVX-sample-impl.git /tmp/openvx-sample
22+
git clone --recursive --depth 1 https://github.com/KhronosGroup/OpenVX-sample-impl.git /tmp/openvx-sample
2323
cd /tmp/openvx-sample
2424
python Build.py --os=Linux --arch=64 --conf=Release
2525
26+
- name: Find OpenVX libraries
27+
id: openvx
28+
run: |
29+
LIB_DIR=$(dirname $(find /tmp/openvx-sample -name "libopenvx.so" | head -1))
30+
echo "lib_dir=$LIB_DIR" >> "$GITHUB_OUTPUT"
31+
echo "Found OpenVX libraries in: $LIB_DIR"
32+
ls -la "$LIB_DIR"/libopenvx* "$LIB_DIR"/libvxu* 2>/dev/null || true
33+
2634
- name: Build openvx-mark
2735
run: |
2836
mkdir build && cd build
2937
cmake -DOPENVX_INCLUDES=/tmp/openvx-sample/include \
30-
-DOPENVX_LIB_DIR=/tmp/openvx-sample/install/Linux/x64/Release/bin ..
38+
-DOPENVX_LIB_DIR=${{ steps.openvx.outputs.lib_dir }} ..
3139
cmake --build . -j$(nproc)
3240
3341
- name: Run openvx-mark
3442
run: |
3543
cd build
36-
export LD_LIBRARY_PATH=/tmp/openvx-sample/install/Linux/x64/Release/bin:$LD_LIBRARY_PATH
44+
export LD_LIBRARY_PATH=${{ steps.openvx.outputs.lib_dir }}:$LD_LIBRARY_PATH
3745
./openvx-mark --resolution VGA --iterations 10 --warmup 3

0 commit comments

Comments
 (0)