Skip to content

Commit

Permalink
WIP: windows workflow: add matrix build, add cmake configure step
Browse files Browse the repository at this point in the history
  • Loading branch information
marcothaller committed Nov 8, 2024
1 parent db840ea commit c329f65
Showing 1 changed file with 15 additions and 20 deletions.
35 changes: 15 additions & 20 deletions .github/workflows/build_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,15 @@ on: [push, pull_request]

jobs:
build:
runs-on: windows-2022
# strategy:
# fail-fast: false
# matrix:
# os:
# - ubuntu-22.04
# #- ubuntu-20.04
# -
# #- windows-2019
# #- macos-12
# #- macos-11
# build_type:
# - Debug
# - Release
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- windows-2022
build_type:
- Debug
- Release
env:
MOSQUITTO_VERSION: 2.0.20
SLINT_VERSION: 1.5.1
Expand Down Expand Up @@ -66,12 +61,12 @@ jobs:
Write-Output "SLINT_INSTALL_LOCATION=c:\slint" >> $env:GITHUB_ENV
# Tests build only on Linux right now
# - name: Configure project
# run: >
# cmake -S . -B ./build -G Ninja
# -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
# -DBUILD_TESTS=${{ matrix.os == 'Linux' && matrix.build_type == 'Debug'}}
# -DCMAKE_PREFIX_PATH=${{ env.SLINT_INSTALL_LOCATION }}
- name: Configure project
run: >
cmake -S . -B ./build -G Ninja
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-DBUILD_TESTS=${{ matrix.os == 'Linux' && matrix.build_type == 'Debug'}}
-DCMAKE_PREFIX_PATH=${{ env.SLINT_INSTALL_LOCATION }}
- name: Build Project
run: cmake --build ./build
Expand Down

0 comments on commit c329f65

Please sign in to comment.