more runner adjustments
Some checks failed
MVS Upload & Execute / upload-and-run (push) Failing after 6s
Some checks failed
MVS Upload & Execute / upload-and-run (push) Failing after 6s
This commit is contained in:
parent
6587ca4f81
commit
f6a9ee1028
@ -15,30 +15,41 @@ jobs:
|
||||
- name: Find changed source files
|
||||
id: files
|
||||
run: |
|
||||
echo "=== Debug: Starting file detection ==="
|
||||
# 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}"
|
||||
# Fail if no C/BAS files were found
|
||||
echo "Changed files from last commit: '${CHANGED_FILES}'"
|
||||
|
||||
# Fallback to all .c/.bas files if no previous commit or no changes
|
||||
if [ -z "$CHANGED_FILES" ]; then
|
||||
echo "No C/BAS files found; skipping."
|
||||
exit 1
|
||||
fi
|
||||
# Fallback to all .c/.bas files if no previous commit
|
||||
if [ -z "$CHANGED_FILES" ]; then
|
||||
echo "No previous commit found; using all C/BAS files."
|
||||
echo "No previous commit or changes found; using all C/BAS files."
|
||||
CHANGED_FILES=$(git ls-files '*.c' '*.bas' | head -1)
|
||||
echo "Fallback files: '${CHANGED_FILES}'"
|
||||
fi
|
||||
echo "Changed files:"
|
||||
|
||||
if [ -z "$CHANGED_FILES" ]; then
|
||||
echo "No C/BAS files found; skipping workflow."
|
||||
exit 0 # Graceful skip, no failure
|
||||
fi
|
||||
|
||||
echo "Final selected file: '${CHANGED_FILES}'"
|
||||
echo "file=$CHANGED_FILES" >> $GITHUB_OUTPUT
|
||||
echo "member=$(basename "$CHANGED_FILES" .c)" >> $GITHUB_OUTPUT # Or .bas
|
||||
|
||||
# Extract member name (handle .c or .bas)
|
||||
EXT="${CHANGED_FILES##*.}"
|
||||
BASE=$(basename "$CHANGED_FILES" ".$EXT")
|
||||
echo "member=$BASE" >> $GITHUB_OUTPUT
|
||||
echo "=== Debug: File detection complete ==="
|
||||
|
||||
- name: Upload to PDS and Submit JCL
|
||||
if: steps.files.outputs.file != ''
|
||||
run: |
|
||||
echo "=== Debug: Starting upload/submit ==="
|
||||
python3 mvs_job.py "${{ steps.files.outputs.file }}" "@05054.SRCLIB.C" "${{ steps.files.outputs.member }}" "COMPILE"
|
||||
echo "=== Debug: Upload/submit complete ==="
|
||||
env:
|
||||
MVS_HOST: "oldcomputernerd.com"
|
||||
|
||||
- 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."
|
||||
|
@ -4,6 +4,7 @@
|
||||
#define PRIMES 1000
|
||||
|
||||
// Sieve of Eratosthenes
|
||||
// Time Complexity: O(n log log n)
|
||||
int main()
|
||||
{
|
||||
int i,j,numbers[LIMIT];
|
||||
|
Loading…
Reference in New Issue
Block a user