Skip to content

Commit def0db3

Browse files
ci: fix nvcodec build on GPU runner (BINDGEN_EXTRA_CLANG_ARGS)
Remove conditional nvidia-cuda-toolkit install (already pre-installed on the self-hosted runner) and add BINDGEN_EXTRA_CLANG_ARGS to point bindgen at the LLVM 18 clang builtin includes so stddef.h is found. Signed-off-by: StreamKit Devin <devin@streamkit.dev> Co-Authored-By: Claudio Costa <cstcld91@gmail.com>
1 parent 30d79f9 commit def0db3

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/skit.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,6 @@ jobs:
123123
run: |
124124
sudo apt-get update
125125
sudo apt-get install -y libvpx-dev nasm cmake pkg-config libopus-dev
126-
# CUDA headers needed by shiguredo_nvcodec (nvcodec feature).
127-
# Only install if not already present.
128-
if [ ! -f /usr/local/cuda/include/cuda.h ]; then
129-
sudo apt-get install -y nvidia-cuda-toolkit
130-
fi
131126
132127
- name: Install Rust toolchain
133128
uses: dtolnay/rust-toolchain@master
@@ -150,6 +145,9 @@ jobs:
150145
# Ubuntu's nvidia-cuda-toolkit installs headers to /usr/include, not
151146
# /usr/local/cuda/include. Tell shiguredo_nvcodec where to find them.
152147
CUDA_INCLUDE_PATH: /usr/include
148+
# bindgen (used by shiguredo_nvcodec) needs the clang builtin include
149+
# path so it can find stddef.h and other compiler-provided headers.
150+
BINDGEN_EXTRA_CLANG_ARGS: "-I/usr/lib/llvm-18/lib/clang/18/include"
153151
run: |
154152
cargo test --locked -p streamkit-nodes --features gpu
155153
cargo test --locked -p streamkit-engine --features gpu

0 commit comments

Comments
 (0)