Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Commit 6560cf6

Browse files
committed
compile a trivial C programe that reads the C header file and outputs one of the constants from it
1 parent 54580c8 commit 6560cf6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/codeql.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,9 @@ jobs:
9494
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
9595
- if: matrix.build-mode == 'manual'
9696
shell: bash
97-
# Our C code is only fixtures that aren't compilable. Automated corporate policy doesn't care,
98-
# so we'll compile a "hello world" program for CodeQL to scan to make automation happy.
97+
# Our C code is just a header file. Make a simple program that includes the header.
9998
run: |
100-
echo -e '#include <stdio.h>\nint main() {\nputs("hello, world");\n}' | gcc -x c -o hello -pipe -
99+
echo -e '#include <stdio.h>\n#include "stack-graphs/include/stack-graphs.h"\nint main() {\nprintf("Here is a big number: %ld\\n", SG_LIST_EMPTY_HANDLE);\n}' | gcc -x c -o hello -pipe -
101100
102101
- name: Perform CodeQL Analysis
103102
uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)