Skip to content

Commit a10bf2b

Browse files
committed
add github workflow for test-pypi cross-OS wheel builds
1 parent b1a3c47 commit a10bf2b

155 files changed

Lines changed: 33484 additions & 47 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/testpypi-linux.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ jobs:
4141
run: python -m cibuildwheel --output-dir wheelhouse
4242
env:
4343
CIBW_BUILD: "cp311-* cp312-* cp313-* cp314-*"
44-
CIBW_SKIP: "pp*"
4544
#CIBW_ARCHS_LINUX: "auto aarch64"
4645

4746
- name: Upload to TestPyPI
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Build and upload wheels to TestPyPI
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*-test*" # only run on tags for experimental versions
7+
8+
jobs:
9+
build_wheels:
10+
name: Build macos wheels
11+
runs-on: macos-26
12+
13+
steps:
14+
- uses: actions/checkout@v6
15+
with:
16+
persist-credentials: false
17+
submodules: recursive
18+
19+
# Used to host cibuildwheel
20+
- uses: actions/setup-python@v6
21+
22+
# install build depdencies
23+
- name: Install build tools
24+
run: python -m pip install setuptools wheel cibuildwheel build twine nanobind
25+
26+
- name: Download Eigen headers
27+
run: |
28+
mkdir -p deps
29+
mkdir -p deps/eigen3
30+
curl -L https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.tar.gz \
31+
| tar xz -C deps/eigen3 --strip-components=1
32+
33+
- name: Build wheels
34+
run: |
35+
python -m cibuildwheel --output-dir wheelhouse
36+
env:
37+
CIBW_BUILD: "cp311-* cp312-* cp313-* cp314-*"
38+
CIBW_ENVIRONMENT: >
39+
CC=$(brew --prefix llvm@20)/bin/clang
40+
CXX=$(brew --prefix llvm@20)/bin/clang++
41+
42+
- name: Upload to TestPyPI
43+
run: |
44+
twine upload \
45+
--repository-url https://test.pypi.org/legacy/ \
46+
wheelhouse/*
47+
env:
48+
TWINE_USERNAME: __token__
49+
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_TOKEN }}

.github/workflows/testpypi-windows.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)