allow sol to compile with C++20 #1260
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: CI Tests | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - develop | |
| # Cancel previous jobs if an update has been made to the pull request | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: ${{ github.ref != 'refs/heads/develop' }} | |
| env: | |
| CLANG_DOCKER_IMAGE: axom/tpls:clang-19_02-17-26_21h-05m | |
| GCC_DOCKER_IMAGE: axom/tpls:gcc-13_02-17-26_21h-05m | |
| jobs: | |
| # Hacky solution to reference env variables outside of `run` steps https://stackoverflow.com/a/74217028 | |
| set_image_vars: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Do Nothing | |
| run: echo | |
| outputs: | |
| clang_docker_image: ${{ env.CLANG_DOCKER_IMAGE }} | |
| gcc_docker_image: ${{ env.GCC_DOCKER_IMAGE }} | |
| build_and_test: | |
| runs-on: ubuntu-24.04 | |
| needs: | |
| - set_image_vars | |
| strategy: | |
| fail-fast: true | |
| matrix: | |
| build_type: [ Debug, Release ] | |
| config: | |
| - job_name: gcc@13.3.1, shared, benchmarks, c++20 | |
| host_config: gcc@13.3.1.cmake | |
| compiler_image: ${{ needs.set_image_vars.outputs.gcc_docker_image }} | |
| cmake_opts: '-DBUILD_SHARED_LIBS=ON -DBLT_CXX_STD=c++20 -DENABLE_BENCHMARKS:BOOL=ON' | |
| do_build: 'yes' | |
| do_benchmarks: 'yes' | |
| - job_name: gcc@13.3.1, shared, 32bit | |
| host_config: gcc@13.3.1.cmake | |
| compiler_image: ${{ needs.set_image_vars.outputs.gcc_docker_image }} | |
| cmake_opts: '-DBUILD_SHARED_LIBS=ON -DAXOM_USE_64BIT_INDEXTYPE:BOOL=OFF -DAXOM_NO_INT64_T=1' | |
| do_build: 'yes' | |
| do_benchmarks: 'no' | |
| - job_name: llvm@19.0.0, shared, benchmarks, quest regression | |
| host_config: llvm@19.0.0.cmake | |
| compiler_image: ${{ needs.set_image_vars.outputs.clang_docker_image }} | |
| cmake_opts: '-DBUILD_SHARED_LIBS=ON -DAXOM_QUEST_ENABLE_EXTRA_REGRESSION_TESTS:BOOL=ON -DENABLE_BENCHMARKS:BOOL=ON' | |
| do_build: 'yes' | |
| do_benchmarks: 'yes' | |
| include: | |
| - build_type: Debug | |
| config: | |
| job_name: llvm@19.0.0, shared, no raja | |
| host_config: llvm@19.0.0.cmake | |
| compiler_image: ${{ needs.set_image_vars.outputs.clang_docker_image }} | |
| cmake_opts: '-DBUILD_SHARED_LIBS=ON -DAXOM_QUEST_ENABLE_EXTRA_REGRESSION_TESTS:BOOL=ON -DAXOM_ENABLE_MIR:BOOL=OFF -DAXOM_ENABLE_BUMP:BOOL=OFF -U RAJA_DIR' | |
| do_build: 'yes' | |
| do_benchmarks: 'no' | |
| - build_type: Debug | |
| config: | |
| job_name: llvm@19.0.0, shared, no umpire | |
| host_config: llvm@19.0.0.cmake | |
| compiler_image: ${{ needs.set_image_vars.outputs.clang_docker_image }} | |
| cmake_opts: '-DBUILD_SHARED_LIBS=ON -DAXOM_QUEST_ENABLE_EXTRA_REGRESSION_TESTS:BOOL=ON -U UMPIRE_DIR' | |
| do_build: 'yes' | |
| do_benchmarks: 'no' | |
| - build_type: Debug | |
| config: | |
| job_name: llvm@19.0.0, shared, no raja and umpire | |
| host_config: llvm@19.0.0.cmake | |
| compiler_image: ${{ needs.set_image_vars.outputs.clang_docker_image }} | |
| cmake_opts: '-DBUILD_SHARED_LIBS=ON -DAXOM_QUEST_ENABLE_EXTRA_REGRESSION_TESTS:BOOL=ON -DAXOM_ENABLE_MIR:BOOL=OFF -DAXOM_ENABLE_BUMP:BOOL=OFF -U RAJA_DIR -U UMPIRE_DIR' | |
| do_build: 'yes' | |
| do_benchmarks: 'no' | |
| - build_type: Debug | |
| config: | |
| job_name: llvm@19.0.0, shared, no profiling | |
| host_config: llvm@19.0.0.cmake | |
| compiler_image: ${{ needs.set_image_vars.outputs.clang_docker_image }} | |
| cmake_opts: '-DBUILD_SHARED_LIBS=ON -DAXOM_QUEST_ENABLE_EXTRA_REGRESSION_TESTS:BOOL=ON -U CALIPER_DIR -U ADIAK_DIR' | |
| do_build: 'yes' | |
| do_benchmarks: 'no' | |
| name: ${{ matrix.build_type }} - ${{ matrix.config.job_name }} | |
| container: | |
| image: ${{ matrix.config.compiler_image }} | |
| volumes: | |
| - /home/axom/axom | |
| # Required - default is set to user "axom" | |
| options: --user root | |
| steps: | |
| - name: Checkout Axom | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Print Matrix Variables | |
| run: | | |
| echo "build_type ${{ matrix.build_type }}" | |
| echo "cmake_opts ${{ matrix.config.cmake_opts }}" | |
| echo "compiler_image ${{ matrix.config.compiler_image }}" | |
| echo "host_config ${{ matrix.config.host_config }}" | |
| - name: Build and Test ${{ matrix.build_type }} - ${{ matrix.config.job_name }} | |
| timeout-minutes: 80 | |
| run: | | |
| DO_BUILD=${{ matrix.config.do_build }} \ | |
| DO_BENCHMARKS=${{ matrix.config.do_benchmarks }} \ | |
| HOST_CONFIG=${{ matrix.config.host_config }} \ | |
| CMAKE_EXTRA_FLAGS=" ${{ matrix.config.cmake_opts }} " \ | |
| BUILD_TYPE=${{ matrix.build_type }} \ | |
| ./scripts/github-actions/linux-build_and_test.sh | |
| - name: Upload Test Results | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Test Results ${{ matrix.build_type }} - ${{ matrix.config.job_name }} | |
| path: "**/Test.xml" | |
| windows_build_and_test: | |
| runs-on: windows-latest | |
| strategy: | |
| # If any of checks (e.g. style) fail, allow other jobs to continue running. | |
| fail-fast: false | |
| env: | |
| CMAKE_EXTRA_FLAGS: '-DAXOM_ENABLE_SIDRE:BOOL=OFF -DAXOM_ENABLE_INLET:BOOL=OFF -DAXOM_ENABLE_KLEE:BOOL=OFF -DAXOM_ENABLE_SINA:BOOL=OFF -DAXOM_ENABLE_MIR:BOOL=OFF -DAXOM_ENABLE_BUMP:BOOL=OFF' | |
| steps: | |
| - name: Checkout Axom | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Windows - CMake | |
| run: | | |
| cmake ${{ env.CMAKE_EXTRA_FLAGS }} -B build -S src | |
| shell: pwsh | |
| - name: Windows - Build | |
| run: | | |
| cmake --build build | |
| shell: pwsh | |
| - name: Windows - Test | |
| run: | | |
| cd build | |
| ctest -C Debug -T Test --output-on-failure -V | |
| shell: pwsh | |
| macos_build_and_test: | |
| runs-on: macos-latest | |
| strategy: | |
| # If any of checks (e.g. style) fail, allow other jobs to continue running. | |
| fail-fast: false | |
| env: | |
| CMAKE_EXTRA_FLAGS: '-DAXOM_ENABLE_SIDRE:BOOL=OFF -DAXOM_ENABLE_INLET:BOOL=OFF -DAXOM_ENABLE_KLEE:BOOL=OFF -DAXOM_ENABLE_SINA:BOOL=OFF -DAXOM_ENABLE_MIR:BOOL=OFF -DAXOM_ENABLE_BUMP:BOOL=OFF' | |
| steps: | |
| - name: Checkout Axom | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: macOS - CMake | |
| run: | | |
| cmake ${{ env.CMAKE_EXTRA_FLAGS }} -B build -S src | |
| shell: bash | |
| - name: macOS - Build | |
| run: | | |
| cmake --build build | |
| shell: bash | |
| - name: macOS - Test | |
| run: | | |
| cd build | |
| ctest -T Test --output-on-failure -V | |
| shell: bash | |
| check_code: | |
| runs-on: ubuntu-24.04 | |
| needs: | |
| - set_image_vars | |
| strategy: | |
| # If any of checks (e.g. style) fail, allow other jobs to continue running. | |
| fail-fast: false | |
| matrix: | |
| check_type: [style] | |
| container: | |
| image: ${{ needs.set_image_vars.outputs.clang_docker_image }} | |
| volumes: | |
| - /home/axom/axom | |
| # Required - default is set to user "axom" | |
| options: --user root | |
| env: | |
| CHECK_TYPE: ${{ matrix.check_type }} | |
| HOST_CONFIG: llvm@19.0.0.cmake | |
| steps: | |
| - name: Checkout Axom | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Check ${{ matrix.check_type }} | |
| run: ./scripts/github-actions/linux-check.sh | |