Skip to content

Commit

Permalink
Update NWA12-ci.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
yichengt900 authored Feb 15, 2024
1 parent 11fd1fb commit 3957e4e
Showing 1 changed file with 9 additions and 21 deletions.
30 changes: 9 additions & 21 deletions .github/workflows/NWA12-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,27 +32,15 @@ jobs:
- name: Build MOM6SIS2
run: |
cd ${{ env.TEST_DIR }}/NWA12_CHECK/builds
jobid=$(sbatch --parsable --clusters=es --nodes=1 --ntasks=8 --account=cefi --partition=eslogin_c5 --qos=normal --export=NONE ${{ env.TEST_DIR }}/NWA12_CHECK/builds/linux-build.bash -m gaea -p ncrc5.intel23 -t repro -f mom6sis2 | awk -F';' '{print $1}' | cut -f1)
sleep 1
while :; do
job_status=$(squeue -h -j "$jobid" -o "%T" 2>/dev/null)
if [ -z "$job_status" ]; then
echo "Job with ID $jobid is not found or completed."
break
else
echo "Job with ID $jobid is still running."
echo "Job Status: $job_status"
fi
sleep 60 # Adjust the sleep duration as needed
done
#
check_file="${{ env.TEST_DIR }}/NWA12_CHECK/builds/build/gaea-ncrc5.intel23/ocean_ice/repro/MOM6SIS2"
if [ -f "$check_file" ]; then
echo "PASSED: $check_file"
else
echo "FAILED: $check_file"
exit 1
fi
./linux-build.bash -m gaea -p ncrc5.intel23 -t repro -f mom6sis2
#
check_file="${{ env.TEST_DIR }}/NWA12_CHECK/builds/build/gaea-ncrc5.intel23/ocean_ice/repro/MOM6SIS2"
if [ -f "$check_file" ]; then
echo "PASSED: $check_file"
else
echo "FAILED: $check_file"
exit 1
fi
run-NWA12-ci:
needs: checkout-build
Expand Down

0 comments on commit 3957e4e

Please sign in to comment.