diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 17b24d7..d17be68 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -18,11 +18,14 @@ jobs: - name: Install Ninja run: choco install -y ninja - - name: Download protobuf + - name: Setup vcpkg + shell: bash run: | - Invoke-WebRequest "https://www.dropbox.com/scl/fi/te9p80zrzcwgswrkw21en/protobuf_x64-windows.zip?rlkey=btmzjokhh256xxns348o3re7m&dl=1" -OutFile protobuf_x64-windows.zip - 7z x protobuf_x64-windows.zip - dir + where vcpkg + git clone https://github.com/Microsoft/vcpkg.git + ./vcpkg/bootstrap-vcpkg.sh + where vcpkg + ./vcpkg/vcpkg install protobuf protobuf:x64-windows-static - name: CMake generate shell: bash @@ -30,6 +33,7 @@ jobs: ARTIFACT_NAME: ppc2cpp-${{ runner.os }} run: | cmake -S . -B build -GNinja \ + -DCMAKE_TOOLCHAIN_FILE=vcpkg/scripts/buildsystems/vcpkg.cmake \ -DCMAKE_INSTALL_PREFIX=$ARTIFACT_NAME \ -DCMAKE_BUILD_TYPE=Release \ -DBUILD_TESTING=OFF \