@@ -313,8 +313,8 @@ jobs:
313313 filename : ' .\nuget\*.nupkg'
314314 api-key : ${{ secrets.NUGET_DOT_ORG_API_KEY }}
315315 if : startsWith(github.ref, 'refs/tags/')
316- # #### vcpkg #####
317- vcpkg :
316+ # #### vcpkg-linux #####
317+ vcpkg-linux :
318318 strategy :
319319 fail-fast : false
320320 matrix :
@@ -359,14 +359,54 @@ jobs:
359359 if : always() # even if previous steps fail, this one needs to be run
360360 uses : actions/upload-artifact@v4
361361 with :
362- name : vcpkg_logs
362+ name : vcpkg_linux_logs
363363 path : |
364364 vcpkg-installation/buildtrees/${{ env.PACKAGE_NAME }}/
365365 build/vcpkg/**/*.log
366366 - name : deploy vcpkg port
367367 run : |
368368 myci-deploy-vcpkg.sh --repo cppfw/vcpkg-repo --port-dir build/vcpkg/overlay/${PACKAGE_NAME}
369369 if : startsWith(github.ref, 'refs/tags/')
370+ # #### vcpkg-windows #####
371+ vcpkg-windows :
372+ runs-on : windows-latest
373+ defaults :
374+ run :
375+ shell : powershell
376+ name : vcpkg - windows
377+ steps :
378+ - name : git clone
379+ uses : actions/checkout@v4
380+ - name : get myci scripts
381+ uses : actions/checkout@v4
382+ with :
383+ repository : cppfw/myci
384+ ref : latest
385+ path : myci
386+ - name : add myci to PATH
387+ uses : myci-actions/export-env-var-powershell@main
388+ with : {name: PATH, value: "$env:Path;myci/src/powershell"}
389+ - name : set VCPKG_ROOT
390+ uses : myci-actions/export-env-var-powershell@main
391+ # accorging to github actions windows image docs, it should define VCPKG_INSTALLATION_ROOT env var,
392+ # but on practice it is not set, so specify vcpkg root path explicitly
393+ with : {name: VCPKG_ROOT, value: "C:/vcpkg/"}
394+ - name : prepare vcpkg port
395+ run : myci-vcpkg-prepare.ps1 -gitref ${{ github.sha }}
396+ - name : test vcpkg port
397+ run : |
398+ cd build/vcpkg/test
399+ cmake .
400+ cmake --build . --parallel
401+ ./Debug/test.exe
402+ - name : upload vcpkg logs to artifacts
403+ if : always() # even if previous steps fail, this one needs to be run
404+ uses : actions/upload-artifact@v4
405+ with :
406+ name : vcpkg_windows_logs
407+ path : |
408+ vcpkg-installation/buildtrees/${{ env.PACKAGE_NAME }}/
409+ build/vcpkg/**/*.log
370410# #### conan - linux #####
371411 conan-linux :
372412 strategy :
0 commit comments