Modulize test #23
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
| name: SimTTC regression test (AMD64 GNU/Linux Clang) | |
| # NOTE: This file is auto-generated | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - rc | |
| paths: | |
| - ".github/workflows/regression-test-with-clang-simttc.yml" | |
| - "src/**" | |
| - "test/**" | |
| - "MACE.c\\+\\+" | |
| - "**/CMakeLists.txt" | |
| - "**.cmake" | |
| pull_request: | |
| branches: | |
| - main | |
| - rc | |
| paths: | |
| - ".github/workflows/regression-test-with-clang-simttc.yml" | |
| - "src/**" | |
| - "test/**" | |
| - "MACE.c\\+\\+" | |
| - "**/CMakeLists.txt" | |
| - "**.cmake" | |
| permissions: | |
| contents: read | |
| jobs: | |
| simttc-regression-test-with-clang: | |
| name: SimTTC regression test (AMD64 GNU/Linux Clang) | |
| timeout-minutes: 180 | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| image: | |
| - url: ghcr.io/zhao-shihan/rgb-docker:mpich | |
| artifact-name: SimTTC Regression test report (AMD64 GNU-Linux Clang, MPICH) | |
| - url: ghcr.io/zhao-shihan/rgb-docker:openmpi | |
| artifact-name: SimTTC Regression test report (AMD64 GNU-Linux Clang, OpenMPI) | |
| container: ${{ matrix.image.url }} | |
| defaults: | |
| run: | |
| shell: bash | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Build | |
| run: | | |
| . /environment | |
| mkdir build && cd build | |
| cmake -G Ninja .. \ | |
| -DCMAKE_C_COMPILER=clang \ | |
| -DCMAKE_C_FLAGS='-march=native' \ | |
| -DCMAKE_CXX_COMPILER=clang++ \ | |
| -DCMAKE_CXX_FLAGS='-march=native' \ | |
| -DMACESW_UNITY_BUILD=ON \ | |
| -DMACESW_FULL_UNITY_BUILD=ON | |
| ninja | |
| - name: Run regression test | |
| run: | | |
| . /environment | |
| bash build/test/simulation/MACE/SimTTC/regression_test.sh --use-hwthreads | |
| - name: Restore regression report | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ matrix.image.artifact-name }} | |
| path: | | |
| build/test/test_*/regression_report.root | |
| retention-days: 90 |