paleolimbot commented on code in PR #585:
URL: https://github.com/apache/sedona-db/pull/585#discussion_r2800119668
##########
.github/workflows/packaging.yml:
##########
@@ -93,13 +97,47 @@ jobs:
- uses: actions/checkout@v6
with:
fetch-depth: 0
+ submodules: 'true'
- uses: actions/setup-python@v6
with:
python-version: "3.x"
- uses: quarto-dev/quarto-actions/setup@v2
+ - name: Clone vcpkg
+ uses: actions/checkout@v6
+ with:
+ repository: microsoft/vcpkg
+ ref: ${{ env.VCPKG_REF }}
+ path: vcpkg
+
+ - name: Set up environment variables and bootstrap vcpkg
+ env:
+ VCPKG_ROOT: ${{ github.workspace }}/vcpkg
+ CMAKE_TOOLCHAIN_FILE: ${{ github.workspace
}}/vcpkg/scripts/buildsystems/vcpkg.cmake
+ run: |
+ cd vcpkg
+ ./bootstrap-vcpkg.sh
+ cd ..
+
+ echo "VCPKG_ROOT=$VCPKG_ROOT" >> $GITHUB_ENV
+ echo "PATH=$VCPKG_ROOT:$PATH" >> $GITHUB_ENV
+ echo "CMAKE_TOOLCHAIN_FILE=$CMAKE_TOOLCHAIN_FILE" >> $GITHUB_ENV
+
+ - name: Cache vcpkg binaries
+ id: cache-vcpkg
+ uses: actions/cache@v5
+ with:
+ path: vcpkg/packages
+ # Bump the number at the end of this line to force a new dependency
build
+ key: vcpkg-installed-${{ runner.os }}-${{ runner.arch }}-${{
env.VCPKG_REF }}-3
+
+ - name: Install vcpkg dependencies
+ if: steps.cache-vcpkg.outputs.cache-hit != 'true'
+ run: |
+ ./vcpkg/vcpkg install abseil openssl
Review Comment:
This is probably correct but I'm going to defer it for now since this is
what we do for some of our other workflows. I needed this because the examples
have Geography and we need vcpkg to build that support.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]