@@ -24,6 +24,7 @@ concurrency:
2424
2525env :
2626 BUILD_TYPE : Release
27+ VCPKG_COMMIT : 14bb451131ccf6be50a63a8d9dfe7980e46b5958
2728
2829jobs :
2930 build :
5556 steps :
5657 - name : Checkout repository
5758 uses : actions/checkout@v4
58- with :
59- submodules : recursive
6059
6160 - name : Install system dependencies
6261 if : runner.os == 'Linux'
@@ -104,10 +103,21 @@ jobs:
104103 echo "QT_DIR: $QT6_DIR"
105104 ls -l "$QT6_DIR/lib/cmake/Qt6"
106105
107- - name : Install vcpkg
108- uses : lukka/run-vcpkg@v11
109- with :
110- vcpkgGitCommitId : 14bb451131ccf6be50a63a8d9dfe7980e46b5958
106+ - name : Setup vcpkg
107+ shell : bash
108+ run : |
109+ if [ -d "vcpkg/.git" ]; then
110+ cd vcpkg && git fetch && git checkout ${{ env.VCPKG_COMMIT }} && cd ..
111+ else
112+ rm -rf vcpkg
113+ git clone https://github.com/microsoft/vcpkg.git
114+ cd vcpkg && git checkout ${{ env.VCPKG_COMMIT }} && cd ..
115+ fi
116+ if [ "$RUNNER_OS" = "Windows" ]; then
117+ vcpkg/bootstrap-vcpkg.bat -disableMetrics
118+ else
119+ vcpkg/bootstrap-vcpkg.sh -disableMetrics
120+ fi
111121
112122 - name : Cache vcpkg installed packages
113123 uses : actions/cache@v4
@@ -297,8 +307,6 @@ jobs:
297307 steps :
298308 - name : Checkout repository
299309 uses : actions/checkout@v4
300- with :
301- submodules : recursive
302310
303311 - name : Install system dependencies
304312 run : |
@@ -310,10 +318,12 @@ jobs:
310318 with :
311319 version : ' 6.9.3'
312320
313- - name : Install vcpkg
314- uses : lukka/run-vcpkg@v11
315- with :
316- vcpkgGitCommitId : 14bb451131ccf6be50a63a8d9dfe7980e46b5958
321+ - name : Setup vcpkg
322+ run : |
323+ rm -rf vcpkg
324+ git clone https://github.com/microsoft/vcpkg.git
325+ cd vcpkg && git checkout ${{ env.VCPKG_COMMIT }}
326+ ./bootstrap-vcpkg.sh -disableMetrics
317327
318328 - name : Cache vcpkg installed packages
319329 uses : actions/cache@v4
@@ -368,8 +378,6 @@ jobs:
368378 steps :
369379 - name : Checkout repository
370380 uses : actions/checkout@v4
371- with :
372- submodules : recursive
373381
374382 - name : Install system dependencies
375383 run : |
@@ -381,10 +389,12 @@ jobs:
381389 with :
382390 version : ' 6.9.3'
383391
384- - name : Install vcpkg
385- uses : lukka/run-vcpkg@v11
386- with :
387- vcpkgGitCommitId : 14bb451131ccf6be50a63a8d9dfe7980e46b5958
392+ - name : Setup vcpkg
393+ run : |
394+ rm -rf vcpkg
395+ git clone https://github.com/microsoft/vcpkg.git
396+ cd vcpkg && git checkout ${{ env.VCPKG_COMMIT }}
397+ ./bootstrap-vcpkg.sh -disableMetrics
388398
389399 - name : Cache vcpkg installed packages
390400 uses : actions/cache@v4
0 commit comments