Modulize test #1
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: SimMACE regression test (AMD64 GNU/Linux Clang) | |
| # NOTE: This file is auto-generated by tooling/gen-regression-workflows.sh | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - rc | |
| paths: | |
| - ".github/workflows/simmace-regression-test-with-clang.yml" | |
| - "src/**" | |
| - "test/**" | |
| - "MACE.c\\+\\+" | |
| - "**/CMakeLists.txt" | |
| - "**.cmake" | |
| pull_request: | |
| branches: | |
| - main | |
| - rc | |
| paths: | |
| - ".github/workflows/simmace-regression-test-with-clang.yml" | |
| - "src/**" | |
| - "test/**" | |
| - "MACE.c\\+\\+" | |
| - "**/CMakeLists.txt" | |
| - "**.cmake" | |
| permissions: | |
| contents: read | |
| jobs: | |
| simmace-regression-test-with-clang: | |
| name: SimMACE 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: SimMACE Regression test report (AMD64 GNU-Linux Clang, MPICH) | |
| - url: ghcr.io/zhao-shihan/rgb-docker:openmpi | |
| artifact-name: SimMACE 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/SimMACE/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 |