TEST: Create unit tests for all classes where possible #14
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: linux | |
| on: | |
| pull_request: | |
| branches: | |
| - develop | |
| - master | |
| push: | |
| branches: | |
| - develop | |
| - master | |
| jobs: | |
| build: | |
| env: | |
| VCPKG_BINARY_SOURCES: 'clear;nuget,GitHub,readwrite' | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - ubuntu-22.04 | |
| cxx: | |
| - g++-11 | |
| - clang++-14 | |
| include: | |
| - cxx: g++-11 | |
| cc: gcc-11 | |
| - cxx: clang++-14 | |
| cc: clang-14 | |
| runs-on: ${{matrix.os}} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Add C++ Problem Matcher | |
| uses: ammaraskar/gcc-problem-matcher@0.2.0 | |
| - name: Install Dependencies | |
| run: | | |
| sudo apt-get -y install ninja-build | |
| - name: Setup NuGet Credentials | |
| shell: bash | |
| run: | | |
| mono `vcpkg fetch nuget | tail -n 1` \ | |
| sources add \ | |
| -source "https://nuget.pkg.github.com/BlueQuartzSoftware/index.json" \ | |
| -storepasswordincleartext \ | |
| -name "GitHub" \ | |
| -username "BlueQuartzSoftware" \ | |
| -password "${{secrets.GITHUB_TOKEN}}" | |
| mono `vcpkg fetch nuget | tail -n 1` \ | |
| setapikey "${{secrets.GITHUB_TOKEN}}" \ | |
| -source "https://nuget.pkg.github.com/BlueQuartzSoftware/index.json" | |
| - name: Configure | |
| env: | |
| CC: ${{matrix.cc}} | |
| CXX: ${{matrix.cxx}} | |
| run: | | |
| cmake --preset ci-linux-x64 ${{github.workspace}} | |
| - name: Build | |
| run: | | |
| cmake --build --preset ci-linux-x64 | |
| - name: Test | |
| run: | | |
| ctest --preset ci-linux-x64 |