more runner debugging
Some checks failed
MVS Upload & Execute / upload-and-run (push) Failing after 5s
Some checks failed
MVS Upload & Execute / upload-and-run (push) Failing after 5s
This commit is contained in:
parent
33abcea539
commit
606b910202
@ -18,15 +18,18 @@ jobs:
|
||||
echo "=== Debug: Starting file detection ==="
|
||||
echo "Current dir: $(pwd)"
|
||||
echo "Files in repo: $(ls -la)"
|
||||
echo "=== Debug: Running git diff ==="
|
||||
# Try to list changed .c or .bas files from last commit
|
||||
CHANGED_FILES=$(git diff --name-only HEAD~1 -- '*.c' '*.bas' 2>/dev/null | head -1)
|
||||
echo "Changed files from last commit: '${CHANGED_FILES}'"
|
||||
echo "=== Debug: Git diff complete ==="
|
||||
|
||||
# Fallback to all .c/.bas files if no previous commit or no changes
|
||||
if [ -z "$CHANGED_FILES" ]; then
|
||||
echo "No previous commit or changes found; using all C/BAS files."
|
||||
echo "=== Debug: No changes found; running fallback find ==="
|
||||
CHANGED_FILES=$(find . -name "*.c" -o -name "*.bas" | head -1)
|
||||
echo "Fallback files: '${CHANGED_FILES}'"
|
||||
echo "=== Debug: Fallback complete ==="
|
||||
fi
|
||||
|
||||
if [ -z "$CHANGED_FILES" ]; then
|
||||
@ -34,6 +37,7 @@ jobs:
|
||||
exit 0 # Graceful skip, no failure
|
||||
fi
|
||||
|
||||
echo "=== Debug: Processing final file ==="
|
||||
echo "Final selected file: '${CHANGED_FILES}'"
|
||||
echo "file=$CHANGED_FILES" >> $GITHUB_OUTPUT
|
||||
|
||||
|
@ -4,9 +4,6 @@
|
||||
#define PRIMES 1000
|
||||
|
||||
// Sieve of Eratosthenes
|
||||
// Time Complexity: O(n log log n)
|
||||
// Space Complexity: O(n)
|
||||
// Author: Greg Gauthier
|
||||
int main()
|
||||
{
|
||||
int i,j,numbers[LIMIT];
|
||||
|
Loading…
Reference in New Issue
Block a user