Skip to content

Commit

Permalink
Build using vendored OpenCL
Browse files Browse the repository at this point in the history
  • Loading branch information
sunsided committed May 11, 2024
1 parent 555de5c commit 917b472
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,22 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Install OpenCL
run: |
sudo apt-get update
sudo apt-get install -y ocl-icd-opencl-dev intel-opencl-icd
- name: Setup caching
uses: actions/cache@v4
id: cache
with:
path: OpenVX-samples
path: vendor/openvx-sample-impl/install
key: ${{ github.sha }}-OpenVXCacheKey

- name: Get OpenVX sample implementation
if: steps.cache.outputs.cache-hit != 'true'
run: git clone --recursive https://github.com/KhronosGroup/OpenVX-sample-impl

- name: Build OpenVX
if: steps.cache.outputs.cache-hit != 'true'
working-directory: vendor/openvx-sample-impl
run: |
cd OpenVX-sample-impl
python Build.py \
--os=Linux --arch=64 --conf=Release \
--c=clang --cpp=clang \
Expand All @@ -43,7 +44,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: openvx_artifacts
path: OpenVX-sample-impl/install/Linux
path: vendor/openvx-sample-impl/install/Linux

test:
name: Run tests
Expand Down

0 comments on commit 917b472

Please sign in to comment.