more runner debugging
Some checks failed
MVS Upload & Execute / upload-and-run (push) Failing after 5s

This commit is contained in:
Greg Gauthier 2025-10-19 14:21:24 +01:00
parent 606b910202
commit c0e7b83351
2 changed files with 7 additions and 3 deletions

View File

@ -19,15 +19,15 @@ jobs:
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)
# Try to list changed .c or .bas files from last commit (grep filters to avoid glob issues)
CHANGED_FILES=$(git diff --name-only HEAD~1 2>/dev/null | grep -E '\.(c|bas)$' | 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 "=== Debug: No changes found; running fallback find ==="
CHANGED_FILES=$(find . -name "*.c" -o -name "*.bas" | head -1)
CHANGED_FILES=$(find . -type f \( -name "*.c" -o -name "*.bas" \) | head -1)
echo "Fallback files: '${CHANGED_FILES}'"
echo "=== Debug: Fallback complete ==="
fi

View File

@ -4,6 +4,10 @@
#define PRIMES 1000
// Sieve of Eratosthenes
// Time Complexity: O(n log log n)
// Space Complexity: O(n)
// Author: Greg Gauthier
// Date: 2016-01-20
int main()
{
int i,j,numbers[LIMIT];