@@ -318,8 +318,8 @@ jobs:
318318 filename : ' .\nuget\*.nupkg'
319319 api-key : ${{ secrets.NUGET_DOT_ORG_API_KEY }}
320320 if : startsWith(github.ref, 'refs/tags/')
321- # #### vcpkg #####
322- vcpkg :
321+ # #### vcpkg-linux #####
322+ vcpkg-linux :
323323 strategy :
324324 fail-fast : false
325325 matrix :
@@ -372,6 +372,46 @@ jobs:
372372 run : |
373373 myci-deploy-vcpkg.sh --repo cppfw/vcpkg-repo --port-dir build/vcpkg/overlay/${PACKAGE_NAME}
374374 if : startsWith(github.ref, 'refs/tags/')
375+ # #### vcpkg-windows #####
376+ vcpkg-windows :
377+ runs-on : windows-latest
378+ defaults :
379+ run :
380+ shell : powershell
381+ name : vcpkg - windows
382+ steps :
383+ - name : git clone
384+ uses : actions/checkout@v4
385+ - name : get myci scripts
386+ uses : actions/checkout@v4
387+ with :
388+ repository : cppfw/myci
389+ ref : latest
390+ path : myci
391+ - name : add myci to PATH
392+ uses : myci-actions/export-env-var-powershell@main
393+ with : {name: PATH, value: "$env:Path;myci/src/powershell"}
394+ - name : set VCPKG_ROOT
395+ uses : myci-actions/export-env-var-powershell@main
396+ # accorging to github actions windows image docs, it should define VCPKG_INSTALLATION_ROOT env var,
397+ # but on practice it is not set, so specify vcpkg root path explicitly
398+ with : {name: VCPKG_ROOT, value: "C:/vcpkg/"}
399+ - name : prepare vcpkg port
400+ run : myci-vcpkg-prepare.ps1 -gitref ${{ github.sha }}
401+ - name : test vcpkg port
402+ run : |
403+ cd build/vcpkg/test
404+ cmake .
405+ cmake --build .
406+ ./Debug/test.exe
407+ - name : upload vcpkg logs to artifacts
408+ if : always() # even if previous steps fail, this one needs to be run
409+ uses : actions/upload-artifact@v4
410+ with :
411+ name : vcpkg_windows_logs
412+ path : |
413+ vcpkg-installation/buildtrees/${{ env.PACKAGE_NAME }}/
414+ build/vcpkg/**/*.log
375415# #### conan - linux #####
376416 conan-linux :
377417 strategy :
0 commit comments