Skip to content

Commit cbdfd7c

Browse files
committed
fix(ci): add missing include path for CodeQL C++ build
The CodeQL workflow failed because g++ could not find compresskit/buffer_api.hpp. Added -I../../shared/cpp/include to all C++ compilation commands.
1 parent 6b317d0 commit cbdfd7c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ jobs:
3939
- name: Build C++ (for C++ analysis)
4040
if: matrix.language == 'cpp'
4141
run: |
42-
cd algorithms/huffman/cpp && g++ -std=c++17 -O2 main.cpp -o huffman_cpp
43-
cd ../../arithmetic/cpp && g++ -std=c++17 -O2 main.cpp -o arithmetic_cpp
44-
cd ../../range/cpp && g++ -std=c++17 -O2 main.cpp -o rangecoder_cpp
45-
cd ../../rle/cpp && g++ -std=c++17 -O2 main.cpp -o rle_cpp
42+
cd algorithms/huffman/cpp && g++ -std=c++17 -O2 -I../../shared/cpp/include main.cpp -o huffman_cpp
43+
cd ../../arithmetic/cpp && g++ -std=c++17 -O2 -I../../shared/cpp/include main.cpp -o arithmetic_cpp
44+
cd ../../range/cpp && g++ -std=c++17 -O2 -I../../shared/cpp/include main.cpp -o rangecoder_cpp
45+
cd ../../rle/cpp && g++ -std=c++17 -O2 -I../../shared/cpp/include main.cpp -o rle_cpp
4646
4747
- name: Setup Rust (for Rust analysis)
4848
if: matrix.language == 'rust'

0 commit comments

Comments
 (0)