Skip to content

Commit

Permalink
List all C files before compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
KandelN committed Feb 10, 2025
1 parent 7799e70 commit 299d397
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y build-essential

- name: Debug: List C files before compiling
run: find . -type f -name "*.c" ! -path "*/screenshots/*"

- name: Find and Compile C Code
run: |
find . -type f -name "*.c" ! -path "*/screenshots/*" -exec sh -c 'gcc -o "${1%.c}.out" "$1" -lm' sh {} \;
Expand Down

0 comments on commit 299d397

Please sign in to comment.