-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e851d14
commit 3de7a66
Showing
9 changed files
with
131 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,37 +8,34 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
# os: [ubuntu-latest, windows-latest, macos-13, macos-14] | ||
os: [ubuntu-latest, macos-13, macos-14] | ||
os: [ubuntu-latest, windows-latest, macos-13, macos-14] | ||
# os: [ubuntu-latest, macos-13, macos-14] | ||
# os: [windows-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
# Used to host cibuildwheel | ||
- uses: actions/setup-python@v5 | ||
|
||
- name: setup devcmd | ||
if: ${{ matrix.os == 'windows-latest' }} | ||
# NOTE: this is necessary to correctly find and use cl.exe | ||
uses: ilammy/[email protected] | ||
- name: Install cibuildwheel | ||
run: python -m pip install cibuildwheel==2.19.1 pipx pytest apsw numpy | ||
|
||
- name: Install linux deps | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
run: | | ||
sudo apt-get install zip -y | ||
- uses: ilammy/msvc-dev-cmd@v1 | ||
|
||
- name: Setup cmake | ||
uses: jwlawson/actions-setup-cmake@v2 | ||
|
||
- name: Setup Ninja | ||
uses: seanmiddleditch/gha-setup-ninja@v5 | ||
|
||
- name: Bootstrap vcpkg | ||
run: | | ||
git submodule update --init --recursive | ||
python bootstrap_vcpkg.py | ||
- name: Install cibuildwheel | ||
run: python -m pip install cibuildwheel==2.19.1 | ||
|
||
- name: Build wheels | ||
run: python -m cibuildwheel --output-dir wheelhouse | ||
env: | ||
MACOSX_DEPLOYMENT_TARGET: '10.15' # 10.15 is the minimum version that fully supports c++17 | ||
run: pipx run cibuildwheel --output-dir wheelhouse | ||
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
[build-system] | ||
requires = ["setuptools>=59", "wheel", "cmake", "ninja"] | ||
requires = ["setuptools>=59", "wheel"] | ||
|
||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.cibuildwheel] | ||
test-requires = ["pytest", "numpy", "apsw>=3.46"] | ||
test-command = "pytest {project}/integration_test/python/test" | ||
skip = ["*-win32", "*-manylinux_i686", "*musllinux*", "pp*", "cp36*", "cp37*", "cp38*"] | ||
skip = ["*-win32", "*-win_arm64", "*-manylinux_i686", "*musllinux*", "pp*", "cp36*", "cp37*", "cp38*", "cp39*"] | ||
|
||
[tool.cibuildwheel.macos] | ||
environment = {MACOSX_DEPLOYMENT_TARGET = "10.15"} # 10.15 is the minimum version that fully supports c++17 | ||
|
||
# todo: support musllinux | ||
[tool.cibuilidwheel.linux] | ||
before-build = "yum install -y ninja-build" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters