Skip to content

Commit 36cc53a

Browse files
committed
try self-compiled sqlite on macos
1 parent 9776991 commit 36cc53a

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/python_packages.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,16 @@ jobs:
153153
name: Build wheels on macos-14 (arm64)
154154
runs-on: macos-14
155155
env:
156-
SQLite3_ROOT: /opt/homebrew/opt/sqlite
156+
SQLite3_ROOT: ${{ github.workspace }}/libs
157157
MACOSX_DEPLOYMENT_TARGET: '14.0'
158158
CIBW_SKIP: cp27-* cp35-* cp36-*
159159
CIBW_TEST_COMMAND: python -c "import pygeodiff; pygeodiff.GeoDiff().version()"
160+
CIBW_BEFORE_ALL: >
161+
wget https://www.sqlite.org/2024/sqlite-autoconf-3460100.tar.gz &&
162+
tar -xzvf sqlite-autoconf-3460100.tar.gz &&
163+
cd sqlite-autoconf-3460100 &&
164+
CC=clang CFLAGS="-arch arm64 -O3 -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_COLUMN_METADATA" ./configure --enable-dynamic-extensions --prefix=${{ github.workspace }}/libs/ &&
165+
make install
160166
161167
steps:
162168
- uses: actions/checkout@v3
@@ -168,10 +174,7 @@ jobs:
168174

169175
- name: Install Deps
170176
run: |
171-
brew install sqlite3
172177
pip install setuptools scikit-build wheel cmake
173-
174-
ls -la /opt/homebrew
175178
176179
- name: Build wheels
177180
uses: pypa/[email protected]

0 commit comments

Comments
 (0)