Skip to content

Commit

Permalink
Add a final job to display status of build test in web interface
Browse files Browse the repository at this point in the history
  • Loading branch information
robgonzalezpita committed Jun 16, 2022
1 parent a4debba commit 84a1c06
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions .github/workflows/build_SRWA.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ on:
- rrfs_ci
types:
- labeled
- synchronize

# Use a default login shell which loads intel/oneapi/setvars.sh, and lmod path
defaults:
Expand Down Expand Up @@ -63,20 +62,8 @@ jobs:

- name: Move SRWA
run: |
cd ../
pwd
ls
cd ../
pwd
ls
cd $GITHUB_WORKSPACE
pwd
ls
cp -r ufs-srweather-app-${{ github.run_id }}/. ../ufs-srweather-app-${{ github.run_id }}/
rm -rf ufs-srweather-app-${{ github.run_id }}
ls -la
cd ../
ls -la
Configure_SRWA:
name: Checkout_Externals and replace with 'this' version of regional_workflow
Expand Down Expand Up @@ -111,3 +98,20 @@ jobs:
run: |
cd ../ufs-srweather-app-${{ github.run_id }}/test/
./build.sh aws 2>&1 | tee build_test.out
Build_Status:
name: Check Build Sucess or Failure
runs-on: self-hosted
if: ${{ github.event.label.name == 'ci-aws-intel-build' }}
needs: [ Set_Repo_and_Branch, Clone_SRWA, Configure_SRWA, Build_SRWA ]

steps:
- name: Get build status
run: |
cd ../ufs-srweather-app-${{ github.run_id }}/test/
status=`tail -1 build_test.out |cut -d ' ' -f 3-`
if [ $status == PASS ]; then
exit 0
else
exit 1
fi

0 comments on commit 84a1c06

Please sign in to comment.