@@ -407,8 +407,8 @@ jobs:
407407 filename : ' .\nuget\*.nupkg'
408408 api-key : ${{ secrets.NUGET_DOT_ORG_API_KEY }}
409409 if : startsWith(github.ref, 'refs/tags/')
410- # #### vcpkg #####
411- vcpkg :
410+ # #### vcpkg-linux #####
411+ vcpkg-linux :
412412 strategy :
413413 fail-fast : false
414414 matrix :
@@ -453,14 +453,54 @@ jobs:
453453 if : always() # even if previous steps fail, this one needs to be run
454454 uses : actions/upload-artifact@v4
455455 with :
456- name : vcpkg_logs
456+ name : vcpkg_linux_logs
457457 path : |
458458 vcpkg-installation/buildtrees/${{ env.PACKAGE_NAME }}/
459459 build/vcpkg/**/*.log
460460 - name : deploy vcpkg port
461461 run : |
462462 myci-deploy-vcpkg.sh --repo cppfw/vcpkg-repo --port-dir build/vcpkg/overlay/${PACKAGE_NAME}
463463 if : startsWith(github.ref, 'refs/tags/')
464+ # #### vcpkg-windows #####
465+ vcpkg-windows :
466+ runs-on : windows-latest
467+ defaults :
468+ run :
469+ shell : powershell
470+ name : vcpkg - windows
471+ steps :
472+ - name : git clone
473+ uses : actions/checkout@v4
474+ - name : get myci scripts
475+ uses : actions/checkout@v4
476+ with :
477+ repository : cppfw/myci
478+ ref : latest
479+ path : myci
480+ - name : add myci to PATH
481+ uses : myci-actions/export-env-var-powershell@main
482+ with : {name: PATH, value: "$env:Path;myci/src/powershell"}
483+ - name : set VCPKG_ROOT
484+ uses : myci-actions/export-env-var-powershell@main
485+ # accorging to github actions windows image docs, it should define VCPKG_INSTALLATION_ROOT env var,
486+ # but on practice it is not set, so specify vcpkg root path explicitly
487+ with : {name: VCPKG_ROOT, value: "C:/vcpkg/"}
488+ - name : prepare vcpkg port
489+ run : myci-vcpkg-prepare.ps1 -gitref ${{ github.sha }}
490+ - name : test vcpkg port
491+ run : |
492+ cd build/vcpkg/test
493+ cmake .
494+ cmake --build . --parallel
495+ ./Debug/test.exe
496+ - name : upload vcpkg logs to artifacts
497+ if : always() # even if previous steps fail, this one needs to be run
498+ uses : actions/upload-artifact@v4
499+ with :
500+ name : vcpkg_windows_logs
501+ path : |
502+ vcpkg-installation/buildtrees/${{ env.PACKAGE_NAME }}/
503+ build/vcpkg/**/*.log
464504# #### conan - linux #####
465505 conan-linux :
466506 strategy :
0 commit comments