testing runner on direct commit to master
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
c0e7b83351
commit
82c7c00809
@ -18,13 +18,18 @@ jobs:
|
|||||||
echo "=== Debug: Starting file detection ==="
|
echo "=== Debug: Starting file detection ==="
|
||||||
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: Checking for parent commit ==="
|
||||||
# Try to list changed .c or .bas files from last commit (grep filters to avoid glob issues)
|
if git rev-parse --verify HEAD~1 >/dev/null 2>&1; then
|
||||||
CHANGED_FILES=$(git diff --name-only HEAD~1 2>/dev/null | grep -E '\.(c|bas)$' | head -1)
|
echo "Parent commit exists; running git diff."
|
||||||
echo "Changed files from last commit: '${CHANGED_FILES}'"
|
CHANGED_FILES=$(git diff --name-only HEAD~1 2>/dev/null | grep -E '\.(c|bas)$' | head -1)
|
||||||
echo "=== Debug: Git diff complete ==="
|
echo "Changed files from last commit: '${CHANGED_FILES}'"
|
||||||
|
else
|
||||||
|
echo "No parent commit; skipping diff."
|
||||||
|
CHANGED_FILES=""
|
||||||
|
fi
|
||||||
|
echo "=== Debug: Git diff check complete ==="
|
||||||
|
|
||||||
# Fallback to all .c/.bas files if no previous commit or no changes
|
# Fallback to all .c/.bas files if no changes or no previous commit
|
||||||
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 . -type f \( -name "*.c" -o -name "*.bas" \) | head -1)
|
CHANGED_FILES=$(find . -type f \( -name "*.c" -o -name "*.bas" \) | head -1)
|
||||||
|
@ -4,8 +4,6 @@
|
|||||||
#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
|
// Author: Greg Gauthier
|
||||||
// Date: 2016-01-20
|
// Date: 2016-01-20
|
||||||
int main()
|
int main()
|
||||||
|
Loading…
Reference in New Issue
Block a user