Create hec hms wrapper #438 #494
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Java CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: master | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout repository | |
| uses: actions/checkout@v2 | |
| - name: setup Java environment | |
| uses: actions/setup-java@v2 | |
| with: | |
| java-version: '11' | |
| distribution: 'adopt' | |
| - name: Install Ubuntu packages | |
| run: sudo apt-get update && sudo apt-get -y install jq cmake gfortran mpi-default-dev libnetcdf-dev libxml2-dev | |
| - name: Build Native code | |
| run: bash ci_compile_native.sh | |
| - name: Ant Build Castor xml-parser code | |
| run: bash ci_build_castor.sh | |
| - name: Ant Build | |
| run: bash ci_build.sh | |
| - name: Run the Tests | |
| if: always() | |
| run: bash ci_test.sh | |
| - name: Archive test reports | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ant-test-reports | |
| path: opendaTestReports | |
| - name: Publish Test Report | |
| if: always() | |
| uses: mikepenz/action-junit-report@v2 | |
| with: | |
| report_paths: 'opendaTestReports/*.xml' | |
| github_token: ${{ secrets.GITHUB_TOKEN }} |