@@ -421,8 +421,8 @@ jobs:
421421 filename : ' .\nuget\*.nupkg'
422422 api-key : ${{ secrets.NUGET_DOT_ORG_API_KEY }}
423423 if : startsWith(github.ref, 'refs/tags/')
424- # #### vcpkg #####
425- vcpkg :
424+ # #### vcpkg-linux #####
425+ vcpkg-linux :
426426 strategy :
427427 fail-fast : false
428428 matrix :
@@ -467,14 +467,54 @@ jobs:
467467 if : always() # even if previous steps fail, this one needs to be run
468468 uses : actions/upload-artifact@v4
469469 with :
470- name : vcpkg_logs
470+ name : vcpkg_linux_logs
471471 path : |
472472 vcpkg-installation/buildtrees/${{ env.PACKAGE_NAME }}/
473473 build/vcpkg/**/*.log
474474 - name : deploy vcpkg port
475475 run : |
476476 myci-deploy-vcpkg.sh --repo cppfw/vcpkg-repo --port-dir build/vcpkg/overlay/${PACKAGE_NAME}
477477 if : startsWith(github.ref, 'refs/tags/')
478+ # #### vcpkg-windows #####
479+ vcpkg-windows :
480+ runs-on : windows-latest
481+ defaults :
482+ run :
483+ shell : powershell
484+ name : vcpkg - windows
485+ steps :
486+ - name : git clone
487+ uses : actions/checkout@v4
488+ - name : get myci scripts
489+ uses : actions/checkout@v4
490+ with :
491+ repository : cppfw/myci
492+ ref : latest
493+ path : myci
494+ - name : add myci to PATH
495+ uses : myci-actions/export-env-var-powershell@main
496+ with : {name: PATH, value: "$env:Path;myci/src/powershell"}
497+ - name : set VCPKG_ROOT
498+ uses : myci-actions/export-env-var-powershell@main
499+ # accorging to github actions windows image docs, it should define VCPKG_INSTALLATION_ROOT env var,
500+ # but on practice it is not set, so specify vcpkg root path explicitly
501+ with : {name: VCPKG_ROOT, value: "C:/vcpkg/"}
502+ - name : prepare vcpkg port
503+ run : myci-vcpkg-prepare.ps1 -gitref ${{ github.sha }}
504+ - name : test vcpkg port
505+ run : |
506+ cd build/vcpkg/test
507+ cmake .
508+ cmake --build . --parallel
509+ ./Debug/test.exe
510+ - name : upload vcpkg logs to artifacts
511+ if : always() # even if previous steps fail, this one needs to be run
512+ uses : actions/upload-artifact@v4
513+ with :
514+ name : vcpkg_windows_logs
515+ path : |
516+ vcpkg-installation/buildtrees/${{ env.PACKAGE_NAME }}/
517+ build/vcpkg/**/*.log
478518# #### conan - linux #####
479519 conan-linux :
480520 strategy :
0 commit comments