Skip to content

Commit

Permalink
fix 3rd-party directory
Browse files Browse the repository at this point in the history
  • Loading branch information
benbovy committed Aug 19, 2024
1 parent 338a850 commit 47ac72f
Showing 1 changed file with 6 additions and 17 deletions.
23 changes: 6 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
id: cache-build
uses: actions/cache@v4
with:
path: ${{ runner.temp }}/3rd-party
path: ${{ github.workspace }}/3rd-party
key: ${{ matrix.os }}-${{ matrix.arch }}-${{ env.ABSL_VERSION }}-${{ env.S2GEOMETRY_VERSION }}-${{ env.S2GEOGRAPHY_VERSION }}-${{ hashFiles('ci/*') }}

- name: Fetch absl
Expand All @@ -78,7 +78,7 @@ jobs:
with:
repository: abseil/abseil-cpp
ref: ${{ env.ABSL_VERSION }}
path: ${{ runner.temp }}/3rd-party/absl-src-${{ env.ABSL_VERSION }}
path: ${{ github.workspace }}/3rd-party/absl-src-${{ env.ABSL_VERSION }}
fetch-depth: 0

- name: Fetch s2geometry
Expand All @@ -87,7 +87,7 @@ jobs:
with:
repository: google/s2geometry
ref: v${{ env.S2GEOMETRY_VERSION }}
path: ${{ runner.temp }}/3rd-party/s2geometry-src-${{ env.S2GEOMETRY_VERSION }}
path: ${{ github.workspace }}/3rd-party/s2geometry-src-${{ env.S2GEOMETRY_VERSION }}
fetch-depth: 0

- name: Fetch s2geography
Expand All @@ -96,7 +96,7 @@ jobs:
with:
repository: paleolimbot/s2geography
ref: v${{ env.S2GEOGRAPHY_VERSION }}
path: ${{ runner.temp }}/3rd-party/s2geography-src-${{ env.S2GEOGRAPHY_VERSION }}
path: ${{ github.workspace }}/3rd-party/s2geography-src-${{ env.S2GEOGRAPHY_VERSION }}
fetch-depth: 0

- name: Build wheels
Expand All @@ -105,26 +105,15 @@ jobs:
CIBW_ARCHS: ${{ matrix.arch }}
CIBW_SKIP: cp36-* pp* *musllinux* *-manylinux_i686
CIBW_TEST_SKIP: "cp38-macosx_arm64"
CIBW_ENVIRONMENT_LINUX:
DEPENDENCIES_DIR=${{ runner.temp }}/3rd-party
CIBW_ENVIRONMENT:
DEPENDENCIES_DIR=${{ github.workspace }}/3rd-party
ABSL_VERSION=${{ env.ABSL_VERSION }}
S2GEOMETRY_VERSION=${{ env.S2GEOMETRY_VERSION }}
S2GEOGRAPHY_VERSION=${{ env.S2GEOGRAPHY_VERSION }}
CXXSTANDARD=${{ env.CXXSTANDARD }}
CIBW_ENVIRONMENT_MACOS:
DEPENDENCIES_DIR=${{ runner.temp }}/3rd-party
ABSL_VERSION=${{ env.ABSL_VERSION }}
S2GEOMETRY_VERSION=${{ env.S2GEOMETRY_VERSION }}
S2GEOGRAPHY_VERSION=${{ env.S2GEOGRAPHY_VERSION }}
CXXSTANDARD=${{ env.CXXSTANDARD }}
MACOSX_DEPLOYMENT_TARGET=10.9
CMAKE_OSX_ARCHITECTURES='${{ matrix.cmake_osx_architectures }}'
CIBW_ENVIRONMENT_WINDOWS:
DEPENDENCIES_DIR=${{ runner.temp }}/3rd-party
ABSL_VERSION=${{ env.ABSL_VERSION }}
S2GEOMETRY_VERSION=${{ env.S2GEOMETRY_VERSION }}
S2GEOGRAPHY_VERSION=${{ env.S2GEOGRAPHY_VERSION }}
CXXSTANDARD=${{ env.CXXSTANDARD }}
CIBW_BEFORE_ALL: ./ci/install_3rdparty.sh
CIBW_BEFORE_ALL_WINDOWS: ci\install_geos.cmd
# CIBW_BEFORE_BUILD_WINDOWS: pip install delvewheel
Expand Down

0 comments on commit 47ac72f

Please sign in to comment.