Skip to content

Commit 2925a63

Browse files
committed
Use lukka setup-vcpkg action for vcpkg validation job
1 parent 36d29f4 commit 2925a63

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,10 @@ jobs:
5353
runs-on: ubuntu-latest
5454
steps:
5555
- uses: actions/checkout@v4
56-
- name: Install vcpkg
57-
run: |
58-
git clone https://github.com/microsoft/vcpkg.git
59-
./vcpkg/bootstrap-vcpkg.sh
56+
- uses: lukka/setup-vcpkg@v1
6057
- name: Validate port
61-
run: ./vcpkg/vcpkg install time-shield-cpp --overlay-ports=vcpkg-overlay/ports
58+
run: vcpkg install time-shield-cpp --overlay-ports=vcpkg-overlay/ports
6259
- name: Configure consumer project
63-
run: cmake -B build -S . -DCMAKE_TOOLCHAIN_FILE=./vcpkg/scripts/buildsystems/vcpkg.cmake
60+
run: cmake -B build -S . -DCMAKE_TOOLCHAIN_FILE=$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake
6461
- name: Build consumer project
6562
run: cmake --build build

0 commit comments

Comments
 (0)