Skip to content

Commit

Permalink
WIP: add windows workflow with mosquitto installation
Browse files Browse the repository at this point in the history
  • Loading branch information
marcothaller committed Nov 8, 2024
1 parent b4a2320 commit 0986ae1
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ jobs:
- Debug
- Release
env:
SLINT_VERSION: 1.5.1
MOSQUITTO_VERSION: 2.0.20
SLINT_VERSION: 1.7.0

steps:
- name: Checkout sources
Expand All @@ -45,6 +46,13 @@ jobs:
libxkbcommon-dev libxkbcommon-x11-dev libxcb-xkb-dev xvfb \
qtbase5-dev
- name: Download Mosquitto (Windows)
if: runner.os == 'Windows'
run: |
Invoke-WebRequest -Uri "https://mosquitto.org/files/binary/win64/mosquitto-$env:MOSQUITTO_VERSION-install-windows-x64.exe" -OutFile "mosquitto-installer.exe"
Start-Process -FilePath .\mosquitto-installer.exe -ArgumentList '/S' -NoNewWindow -Wait
shell: pwsh

- name: Download Slint (Linux)
if: runner.os == 'Linux'
run: |
Expand All @@ -57,8 +65,8 @@ jobs:
if: runner.os == 'Windows'
run: |
curl --no-progress-meter --location --remote-name `
https://github.com/slint-ui/slint/releases/download/v$env:SLINT_VERSION/Slint-cpp-$env:SLINT_VERSION-win64.exe
& .\Slint-cpp-$env:SLINT_VERSION-win64.exe /S /D=c:\slint
https://github.com/slint-ui/slint/releases/download/v$env:SLINT_VERSION/Slint-cpp-$env:SLINT_VERSION-win64-MSVC.exe
& .\Slint-cpp-$env:SLINT_VERSION-win64-MSVC.exe /S /D=c:\slint
Write-Output "SLINT_INSTALL_LOCATION=c:\slint" >> $env:GITHUB_ENV
# Tests build only on Linux right now
Expand Down

0 comments on commit 0986ae1

Please sign in to comment.