Skip to content

Commit c8a56d6

Browse files
committed
chore: fix CodeQL build - add encryption feature and compile-only
- Add encryption feature to match Makefile requirements - Compile C test to .o only (CodeQL needs compilation, not execution) - Avoid running test binary which may fail in CI environment
1 parent 0e9ee26 commit c8a56d6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/codeql.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,13 @@ jobs:
3636

3737
- name: Build to generate C FFI headers
3838
run: |
39-
cargo build --features ffi --release
39+
# Build Rust library with FFI to generate C header
40+
cargo build --release --features ffi,encryption
4041
# Verify header was generated
4142
ls -la include/cachekit.h
42-
# Compile cross-language test to demonstrate C usage
43-
cd tests/cross_language && make clean && make
43+
# Compile C test (but don't run it - CodeQL just needs compilation)
44+
cd tests/cross_language
45+
cc -std=c99 -Wall -Wextra -I../../include -c test_c.c -o test_c.o
4446
4547
- name: Perform CodeQL Analysis
4648
uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)