Dev/mab soildynamics hex quad #37
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: 'All modules (femutils)' | |
| on: | |
| push: | |
| branches: [ main ] | |
| paths: | |
| - femutils/** | |
| pull_request: | |
| branches: [ main ] | |
| paths: | |
| - femutils/** | |
| workflow_dispatch: | |
| env: | |
| # CTest | |
| CT_OPTS: "--timeout 300 --output-on-failure" | |
| # MPI | |
| OMPI_ALLOW_RUN_AS_ROOT: 1 | |
| OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1 | |
| OMPI_MCA_rmaps_base_oversubscribe: 1 | |
| jobs: | |
| tests: | |
| name: 'Build and Test' | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ghcr.io/arcaneframework/arcane_ubuntu-2404:gcc-14_full_debug_latest | |
| steps: | |
| - name: Define environment paths | |
| shell: bash | |
| run: | | |
| echo "SOURCE_DIR=${GITHUB_WORKSPACE}/src" >> $GITHUB_ENV | |
| echo "BUILD_DIR=${GITHUB_WORKSPACE}/build" >> $GITHUB_ENV | |
| echo "CT_RESULT_DIR=${GITHUB_WORKSPACE}/test" >> $GITHUB_ENV | |
| - name: Checkout repo | |
| uses: actions/checkout@v5 | |
| with: | |
| path: ${{ env.SOURCE_DIR }} | |
| - name: Configure | |
| shell: bash | |
| run: | | |
| cmake \ | |
| -S ${{ env.SOURCE_DIR }} \ | |
| -B ${{ env.BUILD_DIR }} \ | |
| -GNinja \ | |
| -DCMAKE_BUILD_TYPE=Debug | |
| - name: Build | |
| shell: bash | |
| run: | | |
| cmake --build ${{ env.BUILD_DIR }} | |
| - name: Test | |
| shell: bash | |
| run: | | |
| mkdir -p ${{ env.CT_RESULT_DIR }} | |
| ctest --test-dir ${{ env.BUILD_DIR }} --output-junit ${{ env.CT_RESULT_DIR }}/results.xml ${{ env.CT_OPTS }} | |
| - name: Upload test artifact | |
| uses: actions/upload-artifact@v4 | |
| if: failure() | |
| with: | |
| name: all-modules-femutils-artifact | |
| path: ${{ env.CT_RESULT_DIR }} | |
| retention-days: 7 |