@@ -414,6 +414,58 @@ jobs:
414414 filename : ' .\nuget\*.nupkg'
415415 api-key : ${{ secrets.NUGET_DOT_ORG_API_KEY }}
416416 if : startsWith(github.ref, 'refs/tags/')
417+ # #### vcpkg #####
418+ vcpkg :
419+ strategy :
420+ fail-fast : false
421+ matrix :
422+ include :
423+ - {os: debian, codename: bookworm, image_owner: }
424+ # - {os: debian, codename: bookworm, image_owner: i386/, labels: [i386,docker]}
425+ # - {os: debian, codename: bookworm, image_owner: , labels: [arm32,docker]}
426+ # - {os: debian, codename: bookworm, image_owner: , labels: [arm64,docker]}
427+ runs-on : ${{ (matrix.labels == '' && 'ubuntu-latest') || matrix.labels }}
428+ container : ${{ matrix.image_owner }}${{ matrix.os }}:${{ matrix.codename }}
429+ name : vcpkg - linux | ${{ matrix.labels[0] }}
430+ steps :
431+ - name : add cppfw deb repo
432+ uses : myci-actions/add-deb-repo@main
433+ with :
434+ repo : deb https://gagis.hopto.org/repo/cppfw/${{ matrix.os }} ${{ matrix.codename }} main
435+ repo-name : cppfw
436+ keys-asc : https://gagis.hopto.org/repo/cppfw/pubkey.gpg
437+ install : myci cmake git curl zip unzip tar nodejs
438+ - name : git clone
439+ uses : myci-actions/checkout@main
440+ - name : install vcpkg
441+ run : |
442+ git clone https://github.com/microsoft/vcpkg.git vcpkg-installation
443+ (cd vcpkg-installation; ./bootstrap-vcpkg.sh)
444+ - name : set VCPKG_ROOT
445+ uses : myci-actions/export-env-var@main
446+ with : {name: VCPKG_ROOT, value: "$(pwd)/vcpkg-installation"}
447+ - name : add VCPKG_ROOT to PATH
448+ uses : myci-actions/export-env-var@main
449+ with : {name: PATH, value: "$PATH:$VCPKG_ROOT"}
450+ - name : prepare vcpkg port
451+ run : |
452+ myci-vcpkg-prepare.sh --git-ref ${{ github.sha }}
453+ - name : test vcpkg port
454+ run : |
455+ cd vcpkg/test
456+ cmake .
457+ make
458+ ./test
459+ - name : upload vcpkg logs to artifacts
460+ if : always() # even if previous steps fail, this one needs to be run
461+ uses : actions/upload-artifact@v4
462+ with :
463+ name : vcpkg_logs
464+ path : vcpkg-installation/buildtrees/${{ env.PACKAGE_NAME }}/
465+ - name : deploy vcpkg port
466+ run : |
467+ myci-deploy-vcpkg.sh --repo cppfw/vcpkg-repo --port-dir vcpkg/overlay/${PACKAGE_NAME}
468+ if : startsWith(github.ref, 'refs/tags/')
417469# #### conan - linux #####
418470 conan-linux :
419471 strategy :
0 commit comments