@@ -429,8 +429,8 @@ jobs:
429429 filename : ' .\nuget\*.nupkg'
430430 api-key : ${{ secrets.NUGET_DOT_ORG_API_KEY }}
431431 if : startsWith(github.ref, 'refs/tags/')
432- # #### vcpkg #####
433- vcpkg :
432+ # #### vcpkg-linux #####
433+ vcpkg-linux :
434434 strategy :
435435 fail-fast : false
436436 matrix :
@@ -475,14 +475,54 @@ jobs:
475475 if : always() # even if previous steps fail, this one needs to be run
476476 uses : actions/upload-artifact@v4
477477 with :
478- name : vcpkg_logs
478+ name : vcpkg_linux_logs
479479 path : |
480480 vcpkg-installation/buildtrees/${{ env.PACKAGE_NAME }}/
481481 build/vcpkg/**/*.log
482482 - name : deploy vcpkg port
483483 run : |
484484 myci-deploy-vcpkg.sh --repo cppfw/vcpkg-repo --port-dir build/vcpkg/overlay/${PACKAGE_NAME}
485485 if : startsWith(github.ref, 'refs/tags/')
486+ # #### vcpkg-windows #####
487+ vcpkg-windows :
488+ runs-on : windows-latest
489+ defaults :
490+ run :
491+ shell : powershell
492+ name : vcpkg - windows
493+ steps :
494+ - name : git clone
495+ uses : actions/checkout@v4
496+ - name : get myci scripts
497+ uses : actions/checkout@v4
498+ with :
499+ repository : cppfw/myci
500+ ref : latest
501+ path : myci
502+ - name : add myci to PATH
503+ uses : myci-actions/export-env-var-powershell@main
504+ with : {name: PATH, value: "$env:Path;myci/src/powershell"}
505+ - name : set VCPKG_ROOT
506+ uses : myci-actions/export-env-var-powershell@main
507+ # accorging to github actions windows image docs, it should define VCPKG_INSTALLATION_ROOT env var,
508+ # but on practice it is not set, so specify vcpkg root path explicitly
509+ with : {name: VCPKG_ROOT, value: "C:/vcpkg/"}
510+ - name : prepare vcpkg port
511+ run : myci-vcpkg-prepare.ps1 -gitref ${{ github.sha }}
512+ - name : test vcpkg port
513+ run : |
514+ cd build/vcpkg/test
515+ cmake .
516+ cmake --build . --parallel
517+ ./Debug/test.exe
518+ - name : upload vcpkg logs to artifacts
519+ if : always() # even if previous steps fail, this one needs to be run
520+ uses : actions/upload-artifact@v4
521+ with :
522+ name : vcpkg_windows_logs
523+ path : |
524+ vcpkg-installation/buildtrees/${{ env.PACKAGE_NAME }}/
525+ build/vcpkg/**/*.log
486526# #### conan - linux #####
487527 conan-linux :
488528 strategy :
0 commit comments