Enable Windows tests on CI

This commit is contained in:
Roger A. Light 2026-04-27 16:08:18 +01:00 committed by Roger Light
parent 9741a765a1
commit cf2c018ec2
2 changed files with 14 additions and 2 deletions

View file

@ -56,7 +56,8 @@ jobs:
- name: Configure CMake - name: Configure CMake
run: | run: |
cmake -B ${{github.workspace}}/${{ matrix.buildloc }} ` cmake `
-B ${{github.workspace}}/${{ matrix.buildloc }} `
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} ` -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} `
-DCMAKE_GENERATOR_PLATFORM=${{ matrix.platform }} ` -DCMAKE_GENERATOR_PLATFORM=${{ matrix.platform }} `
-DCMAKE_TOOLCHAIN_FILE=${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake ` -DCMAKE_TOOLCHAIN_FILE=${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake `
@ -64,7 +65,6 @@ jobs:
-DVCPKG_MANIFEST_MODE=ON ` -DVCPKG_MANIFEST_MODE=ON `
-DVCPKG_TARGET_TRIPLET=${{ matrix.triplet }} ` -DVCPKG_TARGET_TRIPLET=${{ matrix.triplet }} `
-DWITH_HTTP_API=ON ` -DWITH_HTTP_API=ON `
-DWITH_TESTS=OFF `
-DWITH_WEBSOCKETS=ON -DWITH_WEBSOCKETS=ON
- name: Build - name: Build
@ -87,3 +87,12 @@ jobs:
with: with:
name: installer${{ matrix.arch }} name: installer${{ matrix.arch }}
path: ${{ github.workspace }}/installer/mosquitto*.exe path: ${{ github.workspace }}/installer/mosquitto*.exe
- uses: actions/setup-python@v6
with:
python-version: '3.13'
cache: 'pip' # caching pip dependencies
- run: pip install -r requirements.txt
- name: Tests
run: ctest --timeout 60 --test-dir ${{ github.workspace }}/${{ matrix.buildloc }} -C ${{ env.BUILD_TYPE }} --output-on-failure --repeat until-pass:5 -j20 --resource-spec-file ../test/resource.json

3
requirements.txt Normal file
View file

@ -0,0 +1,3 @@
paho-mqtt==2.1.0
psutil==7.2.2
pywin32==311; platform_system == "Windows"