@@ -313,8 +313,8 @@ jobs:
313
313
filename : ' .\nuget\*.nupkg'
314
314
api-key : ${{ secrets.NUGET_DOT_ORG_API_KEY }}
315
315
if : startsWith(github.ref, 'refs/tags/')
316
- # #### vcpkg #####
317
- vcpkg :
316
+ # #### vcpkg-linux #####
317
+ vcpkg-linux :
318
318
strategy :
319
319
fail-fast : false
320
320
matrix :
@@ -359,14 +359,54 @@ jobs:
359
359
if : always() # even if previous steps fail, this one needs to be run
360
360
uses : actions/upload-artifact@v4
361
361
with :
362
- name : vcpkg_logs
362
+ name : vcpkg_linux_logs
363
363
path : |
364
364
vcpkg-installation/buildtrees/${{ env.PACKAGE_NAME }}/
365
365
build/vcpkg/**/*.log
366
366
- name : deploy vcpkg port
367
367
run : |
368
368
myci-deploy-vcpkg.sh --repo cppfw/vcpkg-repo --port-dir build/vcpkg/overlay/${PACKAGE_NAME}
369
369
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
370
410
# #### conan - linux #####
371
411
conan-linux :
372
412
strategy :
0 commit comments