Improvements for GUI #2
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: Build and Test | |
| on: | |
| pull_request: | |
| types: [opened, reopened, synchronize, ready_for_review] | |
| jobs: | |
| build-and-test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - os: ubuntu-latest | |
| generator: Ninja | |
| - os: windows-latest | |
| generator: "Visual Studio 17 2022" | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Install additional dependencies | |
| if: matrix.os == 'ubuntu-latest' | |
| run: | | |
| sudo apt-get install -y --no-install-recommends mono-runtime libmono-system-json-microsoft4.0-cil libmono-system-data4.0-cil # TODO add mosquitto package | |
| - name: Checkout project repo | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event.inputs.branch || github.event.client_payload.branch || github.ref }} | |
| - name: Configure project with CMake | |
| run: cmake -B build/output -S . -G "${{ matrix.generator }}" -DTODO_ENABLE_TESTS=ON -DCMAKE_BUILD_TYPE=Debug | |
| - name: Build project with CMake | |
| run: cmake --build build/output --config Debug | |
| - name: Install and run mosquitto Linux | |
| if: matrix.os == 'ubuntu-latest' | |
| run: | | |
| sudo apt-get install -y --no-install-recommends # TODO add mosquitto package name | |
| # TODO mosquitto run cmds | |
| - name: Install and run mosquitto Windows | |
| if: matrix.os == 'windows-latest' | |
| run: # TODO install and run mosquitto | |
| - name: Run project tests with CMake | |
| run: ctest --test-dir build/output --output-on-failure -C Debug |