Fix Interface Library Installation and Begin to Separate Target Concerns #185
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: CMaize Unit Tests | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| # Allows manual triggering with the "Run workflow" button | |
| workflow_dispatch: | |
| jobs: | |
| linux: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| cmake: [3.19.7, 3.22.4, 3.23.1] | |
| env: | |
| cmake_version: ${{ matrix.cmake }} | |
| os: linux-x86_64 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: get cmake | |
| env: | |
| url_prefix: https://github.com/Kitware/CMake/releases/download | |
| run: | | |
| cmake_prefix=cmake-${cmake_version}-${os} | |
| cmake_script=${cmake_prefix}.sh | |
| wget "${url_prefix}/v${cmake_version}/${cmake_script}" | |
| mkdir -p ./${cmake_prefix} | |
| /bin/sh "${cmake_script}" --prefix=./${cmake_prefix} --exclude-subdir | |
| - name: configure | |
| run: | | |
| cmake-${cmake_version}-${os}/bin/cmake -H. -Bbuild -DBUILD_TESTING=ON | |
| - name: unit_test | |
| run: | | |
| cd build | |
| ../cmake-${cmake_version}-${os}/bin/ctest \ | |
| j 2 \ | |
| --output-on-failure \ | |
| -LE integration_tests |