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 a72efa9
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,23 @@ 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: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 \
-DVCPKG_LIBRARY_LINKAGE=static \
-DCMAKE_INSTALL_PREFIX=$ARTIFACT_NAME \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_TESTING=OFF \
Expand Down

0 comments on commit a72efa9

Please sign in to comment.