Merge pull request #418 from karosc/fix_incorrect_errors #700
Workflow file for this run
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
| # | |
| # build-and-test.yml - GitHub Actions CI for swmm-solver | |
| # | |
| # Created: May 19, 2020 | |
| # Updated: Jun 22, 2021 | |
| # | |
| # Author: Michael E. Tryby | |
| # US EPA - ORD/CESER | |
| # | |
| # Caleb A. Buahin | |
| # Xylem Inc. | |
| # | |
| name: Build and Test | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [windows-2022, ubuntu-latest, macos-latest] | |
| requirements: [requirements-swmm.txt] | |
| include: | |
| - os: windows-2022 | |
| build_unit_test: make.cmd /g "Visual Studio 17 2022" /A "x64" /t | |
| build_reg_test: make.cmd /g "Visual Studio 17 2022" /A "x64" | |
| before_reg_test: before-nrtest.cmd | |
| run_reg_test: run-nrtests.cmd | |
| build_id: "%GITHUB_RUN_ID%_%GITHUB_RUN_NUMBER%" | |
| experimental: false | |
| artifacts_ext: zip | |
| artifact_content_type: zip | |
| defaults: | |
| run: | |
| shell: cmd | |
| working-directory: ./ci-tools/windows | |
| - os: ubuntu-24.04 | |
| # Statically link libraries with -s switch to address GitHub Ubuntu 20.04 symbol errors (issue #340) | |
| build_unit_test: make.sh -s -t -g "Unix Makefiles" | |
| build_reg_test: make.sh -s -g "Unix Makefiles" | |
| before_reg_test: before-nrtest.sh | |
| run_reg_test: run-nrtests.sh | |
| build_id: ${GITHUB_RUN_ID}_${GITHUB_RUN_NUMBER} | |
| experimental: true | |
| artifacts_ext: tar.gz | |
| artifact_content_type: tar | |
| defaults: | |
| run: | |
| shell: bash | |
| working-directory: ./ci-tools/linux | |
| - os: macos-15 | |
| build_unit_test: make.zsh -t -g "Xcode" | |
| build_reg_test: make.zsh -g "Xcode" | |
| before_reg_test: before-nrtest.zsh | |
| run_reg_test: run-nrtests.zsh | |
| build_id: ${GITHUB_RUN_ID}_${GITHUB_RUN_NUMBER} | |
| experimental: true | |
| artifacts_ext: tar.gz | |
| artifact_content_type: tar | |
| defaults: | |
| run: | |
| shell: zsh {0} | |
| working-directory: ./ci-tools/darwin | |
| runs-on: ${{ matrix.os }} | |
| continue-on-error: ${{ matrix.experimental }} | |
| defaults: | |
| run: | |
| shell: ${{ matrix.defaults.run.shell }} | |
| working-directory: ${{ matrix.defaults.run.working-directory }} | |
| env: | |
| OMP_NUM_THREADS: 1 | |
| PROJECT: swmm | |
| BUILD_HOME: build | |
| TEST_HOME: nrtests | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v3 | |
| - name: Clone ci-tools repo | |
| uses: actions/checkout@v3 | |
| with: | |
| repository: pyswmm/ci-tools | |
| ref: master | |
| path: ci-tools | |
| - name: Setup python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.10" | |
| - name: Install requirements | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install -r requirements-swmm.txt | |
| - name: Build and unit test | |
| run: ./${{ matrix.build_unit_test }} | |
| continue-on-error: true | |
| - name: Build for reg test | |
| run: ./${{ matrix.build_reg_test }} | |
| - name: Before reg test | |
| env: | |
| NRTESTS_URL: https://github.com/pyswmm/swmm-nrtestsuite | |
| BENCHMARK_TAG: v3.2.0 | |
| run: ./${{ matrix.before_reg_test }} ${{ env.BENCHMARK_TAG }} | |
| - name: Run reg test | |
| run: ./${{ matrix.run_reg_test }} ${{ matrix.build_id }} | |
| - name: Upload artifacts | |
| if: ${{ always() }} | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: build-test-artifacts-${{ matrix.os }} | |
| path: upload/*.* |