Skip to content

Commit 0e9ee26

Browse files
committed
chore: compile C test code for CodeQL analysis
CodeQL autobuild doesn't understand Rust+cbindgen workflow. Manually build Rust FFI and compile C test to give CodeQL actual C compilation units to analyze.
1 parent 900e056 commit 0e9ee26

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/codeql.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,13 @@ jobs:
3434
languages: cpp
3535
# Analyze generated C FFI headers and cross-language test code
3636

37-
- name: Autobuild
38-
uses: github/codeql-action/autobuild@v3
37+
- name: Build to generate C FFI headers
38+
run: |
39+
cargo build --features ffi --release
40+
# Verify header was generated
41+
ls -la include/cachekit.h
42+
# Compile cross-language test to demonstrate C usage
43+
cd tests/cross_language && make clean && make
3944
4045
- name: Perform CodeQL Analysis
4146
uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)