Skip to content

Commit

Permalink
[CI] switch windows to using vcpkg
Browse files Browse the repository at this point in the history
  • Loading branch information
em-eight committed Sep 28, 2023
1 parent 5f201d8 commit 0ccac70
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,22 @@ 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
env:
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 \
Expand Down

0 comments on commit 0ccac70

Please sign in to comment.