@@ -415,8 +415,8 @@ jobs:
415415 filename : ' .\nuget\*.nupkg'
416416 api-key : ${{ secrets.NUGET_DOT_ORG_API_KEY }}
417417 if : startsWith(github.ref, 'refs/tags/')
418- # #### vcpkg #####
419- vcpkg :
418+ # #### vcpkg-linux #####
419+ vcpkg-linux :
420420 strategy :
421421 fail-fast : false
422422 matrix :
@@ -461,14 +461,54 @@ jobs:
461461 if : always() # even if previous steps fail, this one needs to be run
462462 uses : actions/upload-artifact@v4
463463 with :
464- name : vcpkg_logs
464+ name : vcpkg_linux-logs
465465 path : |
466466 vcpkg-installation/buildtrees/${{ env.PACKAGE_NAME }}/
467467 build/vcpkg/**/*.log
468468 - name : deploy vcpkg port
469469 run : |
470470 myci-deploy-vcpkg.sh --repo cppfw/vcpkg-repo --port-dir build/vcpkg/overlay/${PACKAGE_NAME}
471471 if : startsWith(github.ref, 'refs/tags/')
472+ # #### vcpkg-windows #####
473+ vcpkg-windows :
474+ runs-on : windows-latest
475+ defaults :
476+ run :
477+ shell : powershell
478+ name : vcpkg - windows
479+ steps :
480+ - name : git clone
481+ uses : actions/checkout@v4
482+ - name : get myci scripts
483+ uses : actions/checkout@v4
484+ with :
485+ repository : cppfw/myci
486+ ref : latest
487+ path : myci
488+ - name : add myci to PATH
489+ uses : myci-actions/export-env-var-powershell@main
490+ with : {name: PATH, value: "$env:Path;myci/src/powershell"}
491+ - name : set VCPKG_ROOT
492+ uses : myci-actions/export-env-var-powershell@main
493+ # accorging to github actions windows image docs, it should define VCPKG_INSTALLATION_ROOT env var,
494+ # but on practice it is not set, so specify vcpkg root path explicitly
495+ with : {name: VCPKG_ROOT, value: "C:/vcpkg/"}
496+ - name : prepare vcpkg port
497+ run : myci-vcpkg-prepare.ps1 -gitref ${{ github.sha }}
498+ - name : test vcpkg port
499+ run : |
500+ cd build/vcpkg/test
501+ cmake .
502+ cmake --build . --parallel
503+ ./Debug/test.exe
504+ - name : upload vcpkg logs to artifacts
505+ if : always() # even if previous steps fail, this one needs to be run
506+ uses : actions/upload-artifact@v4
507+ with :
508+ name : vcpkg_windows_logs
509+ path : |
510+ vcpkg-installation/buildtrees/${{ env.PACKAGE_NAME }}/
511+ build/vcpkg/**/*.log
472512# #### conan - linux #####
473513 conan-linux :
474514 strategy :
0 commit comments