Skip to content

Commit d64341c

Browse files
authored
fix vcpkg setup (#4085)
Signed-off-by: Max Raiskii <[email protected]>
1 parent 5b3d287 commit d64341c

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

.github/workflows/build-test-windows.yml

+12-5
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,18 @@ jobs:
7373
cxx_compiler: ${{ matrix.runner }} # runner name will be transformed to MSVC name (e.g. windows-2022 -> msvc-2022)
7474
build_config: ${{ matrix.config }}
7575

76-
- name: Checkout Vcpkg ${{ inputs.vcpkg_version }}
77-
working-directory: C:\vcpkg
78-
run: |
79-
git fetch
80-
git checkout ${{ inputs.vcpkg_version }}
76+
- name: Clean Vcpkg Directory
77+
working-directory: C:\vcpkg
78+
run: git clean -ffdx
79+
80+
- name: Checkout & Update Vcpkg ${{ inputs.vcpkg_version }}
81+
working-directory: C:\vcpkg
82+
run: |
83+
git fetch
84+
git pull --rebase
85+
git checkout ${{ inputs.vcpkg_version }}
86+
bootstrap-vcpkg.bat
87+
vcpkg.exe integrate install
8188
8289
- name: Restore Vcpkg Cache
8390
uses: actions/cache@v4

0 commit comments

Comments
 (0)