@@ -312,6 +312,58 @@ jobs:
312
312
filename : ' .\nuget\*.nupkg'
313
313
api-key : ${{ secrets.NUGET_DOT_ORG_API_KEY }}
314
314
if : startsWith(github.ref, 'refs/tags/')
315
+ # #### vcpkg #####
316
+ vcpkg :
317
+ strategy :
318
+ fail-fast : false
319
+ matrix :
320
+ include :
321
+ - {os: debian, codename: bookworm, image_owner: }
322
+ # - {os: debian, codename: bookworm, image_owner: i386/, labels: [i386,docker]}
323
+ # - {os: debian, codename: bookworm, image_owner: , labels: [arm32,docker]}
324
+ # - {os: debian, codename: bookworm, image_owner: , labels: [arm64,docker]}
325
+ runs-on : ${{ (matrix.labels == '' && 'ubuntu-latest') || matrix.labels }}
326
+ container : ${{ matrix.image_owner }}${{ matrix.os }}:${{ matrix.codename }}
327
+ name : vcpkg - linux | ${{ matrix.labels[0] }}
328
+ steps :
329
+ - name : add cppfw deb repo
330
+ uses : myci-actions/add-deb-repo@main
331
+ with :
332
+ repo : deb https://gagis.hopto.org/repo/cppfw/${{ matrix.os }} ${{ matrix.codename }} main
333
+ repo-name : cppfw
334
+ keys-asc : https://gagis.hopto.org/repo/cppfw/pubkey.gpg
335
+ install : myci cmake git curl zip unzip tar nodejs pkg-config
336
+ - name : git clone
337
+ uses : myci-actions/checkout@main
338
+ - name : install vcpkg
339
+ run : |
340
+ git clone https://github.com/microsoft/vcpkg.git vcpkg-installation
341
+ (cd vcpkg-installation; ./bootstrap-vcpkg.sh)
342
+ - name : set VCPKG_ROOT
343
+ uses : myci-actions/export-env-var@main
344
+ with : {name: VCPKG_ROOT, value: "$(pwd)/vcpkg-installation"}
345
+ - name : add VCPKG_ROOT to PATH
346
+ uses : myci-actions/export-env-var@main
347
+ with : {name: PATH, value: "$PATH:$VCPKG_ROOT"}
348
+ - name : prepare vcpkg port
349
+ run : |
350
+ myci-vcpkg-prepare.sh --git-ref ${{ github.sha }}
351
+ - name : test vcpkg port
352
+ run : |
353
+ cd vcpkg/test
354
+ cmake .
355
+ make
356
+ ./test
357
+ - name : upload vcpkg logs to artifacts
358
+ if : always() # even if previous steps fail, this one needs to be run
359
+ uses : actions/upload-artifact@v4
360
+ with :
361
+ name : vcpkg_logs
362
+ path : vcpkg-installation/buildtrees/${{ env.PACKAGE_NAME }}/
363
+ - name : deploy vcpkg port
364
+ run : |
365
+ myci-deploy-vcpkg.sh --repo cppfw/vcpkg-repo --port-dir vcpkg/overlay/${PACKAGE_NAME}
366
+ if : startsWith(github.ref, 'refs/tags/')
315
367
# #### conan - linux #####
316
368
conan-linux :
317
369
strategy :
0 commit comments