testing runner on direct commit to master
Some checks failed
MVS Upload & Execute / upload-and-run (push) Failing after 5s

This commit is contained in:
Greg Gauthier 2025-10-19 14:26:36 +01:00
parent c0e7b83351
commit 82c7c00809
2 changed files with 12 additions and 9 deletions

View File

@ -18,13 +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 (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 ==="
echo "=== Debug: Checking for parent commit ==="
if git rev-parse --verify HEAD~1 >/dev/null 2>&1; then
echo "Parent commit exists; running git diff."
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}'"
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
echo "=== Debug: No changes found; running fallback find ==="
CHANGED_FILES=$(find . -type f \( -name "*.c" -o -name "*.bas" \) | head -1)
@ -61,4 +66,4 @@ jobs:
- name: Report Status
run: |
echo "Upload/Compile complete! Check TK5 JES for JOB ${{ steps.files.outputs.member }} output."
echo "Upload/Compile complete! Check TK5 JES for JOB ${{ steps.files.outputs.member }} output."

View File

@ -4,8 +4,6 @@
#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()