Skip to content

Commit

Permalink
Use --overlay-ports
Browse files Browse the repository at this point in the history
  • Loading branch information
phoerious committed Aug 10, 2023
1 parent c9588ad commit 3662502
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,24 +57,25 @@ jobs:
run: |
set -e
VCPKG_CMD="vcpkg --overlay-ports .vcpkg/ports install"
# abseil is an automatic dependency of re2, but we need to build it with -std=c++17
PKG_LIST="abseil[cxx17] lexbor-shared lz4 re2 uchardet zlib"
export VCPKG_BUILD_TYPE=release
# MacOS
if [ -d /usr/local/share/vcpkg/ports ]; then
cp -rv .vcpkg/ports/* /usr/local/share/vcpkg/ports
if [ -d /usr/local/share/vcpkg/ports ]; then
export VCPKG_DEFAULT_TRIPLET=x64-osx
vcpkg install $PKG_LIST
$VCPKG_CMD $PKG_LIST
export VCPKG_DEFAULT_TRIPLET=arm64-osx
vcpkg install $PKG_LIST
$VCPKG_CMD $PKG_LIST
# Windows
elif [ -d /c/vcpkg ]; then
cp -rv .vcpkg/ports/* /c/vcpkg/ports
export VCPKG_DEFAULT_TRIPLET=x64-windows
vcpkg install $PKG_LIST
$VCPKG_CMD $PKG_LIST
else
exit 1
Expand Down

0 comments on commit 3662502

Please sign in to comment.