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
606b910202
commit
c0e7b83351
@ -19,15 +19,15 @@ jobs:
|
|||||||
echo "Current dir: $(pwd)"
|
echo "Current dir: $(pwd)"
|
||||||
echo "Files in repo: $(ls -la)"
|
echo "Files in repo: $(ls -la)"
|
||||||
echo "=== Debug: Running git diff ==="
|
echo "=== Debug: Running git diff ==="
|
||||||
# Try to list changed .c or .bas files from last commit
|
# 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 -- '*.c' '*.bas' 2>/dev/null | head -1)
|
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 "Changed files from last commit: '${CHANGED_FILES}'"
|
||||||
echo "=== Debug: Git diff complete ==="
|
echo "=== Debug: Git diff complete ==="
|
||||||
|
|
||||||
# Fallback to all .c/.bas files if no previous commit or no changes
|
# Fallback to all .c/.bas files if no previous commit or no changes
|
||||||
if [ -z "$CHANGED_FILES" ]; then
|
if [ -z "$CHANGED_FILES" ]; then
|
||||||
echo "=== Debug: No changes found; running fallback find ==="
|
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 "Fallback files: '${CHANGED_FILES}'"
|
||||||
echo "=== Debug: Fallback complete ==="
|
echo "=== Debug: Fallback complete ==="
|
||||||
fi
|
fi
|
||||||
|
@ -4,6 +4,10 @@
|
|||||||
#define PRIMES 1000
|
#define PRIMES 1000
|
||||||
|
|
||||||
// Sieve of Eratosthenes
|
// Sieve of Eratosthenes
|
||||||
|
// Time Complexity: O(n log log n)
|
||||||
|
// Space Complexity: O(n)
|
||||||
|
// Author: Greg Gauthier
|
||||||
|
// Date: 2016-01-20
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
int i,j,numbers[LIMIT];
|
int i,j,numbers[LIMIT];
|
||||||
|
Loading…
Reference in New Issue
Block a user