Units module #9
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: Packaging Tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - v* | |
| pull_request: | |
| branches: | |
| - main | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| env: | |
| CTEST_OUTPUT_ON_FAILURE: "1" | |
| jobs: | |
| install: | |
| name: Install Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| submodules: true | |
| - name: Configure | |
| run: | | |
| cmake -S . -B build \ | |
| -DUNITS_ENABLE_TESTS=ON \ | |
| -DUNITS_INSTALL_PACKAGE_TESTS=ON \ | |
| -DUNITS_BUILD_SHARED_LIBRARY=ON \ | |
| -DCMAKE_INSTALL_PREFIX=/home/runner/work/install | |
| - name: Build | |
| run: cmake --build build -j2 | |
| - name: Install | |
| run: cmake --install build | |
| - name: Run package tests | |
| run: ctest --output-on-failure -R find-package-tests | |
| working-directory: build | |
| install-alt: | |
| name: Install Tests Alt Package Name | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| submodules: true | |
| - name: Configure | |
| run: | | |
| cmake -S . -B build \ | |
| -DUNITS_ENABLE_TESTS=ON \ | |
| -DUNITS_INSTALL_PACKAGE_TESTS=ON \ | |
| -DUNITS_BUILD_SHARED_LIBRARY=ON \ | |
| -DUNITS_CMAKE_PROJECT_NAME=LLNL-UNITS \ | |
| -DCMAKE_INSTALL_PREFIX=/home/runner/work/install | |
| - name: Build | |
| run: cmake --build build -j2 | |
| - name: Install | |
| run: cmake --install build | |
| - name: Run package tests | |
| run: ctest --output-on-failure -R find-package-tests | |
| working-directory: build | |
| install-module: | |
| name: Install Module Tests | |
| runs-on: ubuntu-latest | |
| container: gcc:15 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| submodules: true | |
| - uses: ./.github/actions/quick_cmake | |
| with: | |
| cmake-version: "4.2" | |
| - uses: seanmiddleditch/gha-setup-ninja@master | |
| - name: Configure | |
| run: | | |
| cmake -S . -B build -G Ninja \ | |
| -DUNITS_ENABLE_TESTS=ON \ | |
| -DUNITS_INSTALL_PACKAGE_TESTS=ON \ | |
| -DUNITS_BUILD_SHARED_LIBRARY=ON \ | |
| -DUNITS_BUILD_CXX_MODULE=ON \ | |
| -DCMAKE_CXX_STANDARD=20 \ | |
| -DCMAKE_INSTALL_PREFIX=/home/runner/work/install | |
| - name: Build | |
| run: cmake --build build -j2 | |
| - name: Install | |
| run: cmake --install build | |
| - name: Run package tests | |
| run: ctest --output-on-failure -R find-package-tests | |
| working-directory: build |