mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-05-21 12:24:29 +02:00
Enable Windows tests on CI
This commit is contained in:
parent
9741a765a1
commit
cf2c018ec2
13
.github/workflows/windows.yml
vendored
13
.github/workflows/windows.yml
vendored
|
|
@ -56,7 +56,8 @@ jobs:
|
|||
|
||||
- name: Configure CMake
|
||||
run: |
|
||||
cmake -B ${{github.workspace}}/${{ matrix.buildloc }} `
|
||||
cmake `
|
||||
-B ${{github.workspace}}/${{ matrix.buildloc }} `
|
||||
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} `
|
||||
-DCMAKE_GENERATOR_PLATFORM=${{ matrix.platform }} `
|
||||
-DCMAKE_TOOLCHAIN_FILE=${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake `
|
||||
|
|
@ -64,7 +65,6 @@ jobs:
|
|||
-DVCPKG_MANIFEST_MODE=ON `
|
||||
-DVCPKG_TARGET_TRIPLET=${{ matrix.triplet }} `
|
||||
-DWITH_HTTP_API=ON `
|
||||
-DWITH_TESTS=OFF `
|
||||
-DWITH_WEBSOCKETS=ON
|
||||
|
||||
- name: Build
|
||||
|
|
@ -87,3 +87,12 @@ jobs:
|
|||
with:
|
||||
name: installer${{ matrix.arch }}
|
||||
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
3
requirements.txt
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
paho-mqtt==2.1.0
|
||||
psutil==7.2.2
|
||||
pywin32==311; platform_system == "Windows"
|
||||
Loading…
Reference in a new issue