Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
7458ee1
linux works
nilsnolde Apr 16, 2026
d4e62f9
add to agent.md
nilsnolde Apr 16, 2026
9fe055b
trigger CI
nilsnolde Apr 16, 2026
77de8bd
try CI
nilsnolde Apr 16, 2026
a752d92
try windows
nilsnolde Apr 16, 2026
e16b525
trigger CI
nilsnolde Apr 16, 2026
54ec941
more ci
nilsnolde Apr 16, 2026
0dd6b0d
suppress clang warnings
nilsnolde Apr 16, 2026
91855bc
suppress more
nilsnolde Apr 16, 2026
cfa1065
fix mac & win
nilsnolde Apr 17, 2026
3f3e452
fix path to conanrun.bat
nilsnolde Apr 17, 2026
3713f44
add sdist so that version resolves properly for linux
nilsnolde Apr 17, 2026
2493aeb
fix sdist to wheel
nilsnolde Apr 17, 2026
d2f5e1a
debug
nilsnolde Apr 17, 2026
a3d2ef7
try embedding in huge workflow
nilsnolde Apr 17, 2026
da8e068
trigger CI
nilsnolde Apr 17, 2026
ab38ab8
minor fix
nilsnolde Apr 17, 2026
3c5770f
huh, needs explicit vesion
nilsnolde Apr 17, 2026
062c020
more excluded for sdist
nilsnolde Apr 17, 2026
216bc0d
osx diagnostics
nilsnolde Apr 17, 2026
7dbde9a
Merge remote-tracking branch 'origin/master' into nn-py-bindings
nilsnolde Apr 17, 2026
427b420
trigger CI
nilsnolde Apr 17, 2026
a1209b0
more ci
nilsnolde Apr 17, 2026
89b2322
try again macos
nilsnolde Apr 20, 2026
636123b
Merge remote-tracking branch 'origin/master' into nn-py-bindings
nilsnolde Apr 20, 2026
f932c2e
let's try
nilsnolde Apr 21, 2026
1a6c95a
change caching behavior, try to remove libiconv workaround for macos
nilsnolde Apr 21, 2026
a964f66
change runner back to 15. alternatively python bindings could become …
nilsnolde Apr 21, 2026
74a9b4d
disable all other workflows
nilsnolde Apr 21, 2026
63c50f1
try pinning boost to 1.85
nilsnolde Apr 21, 2026
e203d40
push clang diagnostic around boost crc header include
nilsnolde Apr 21, 2026
5f713d0
trigger CI
nilsnolde Apr 21, 2026
4ccad42
use ccache cache on osx & linux for cibuildwheel
nilsnolde Apr 21, 2026
25d54d4
try forcing brew headers to be -isystem
nilsnolde Apr 21, 2026
f26f848
try windows now
nilsnolde Apr 22, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
137 changes: 137 additions & 0 deletions .github/workflows-disabled/python-bindings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
name: Python Bindings

on:
push:
branches:
- nn-py-bindings
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build_sdist:
name: Build sdist
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
fetch-tags: true

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"

- name: Build sdist
run: |
python -m pip install build
python -m build --sdist
echo "=== sdist produced ==="
ls -la dist/

- name: Upload sdist
uses: actions/upload-artifact@v4
with:
name: sdist
path: dist/*.tar.gz

build_wheels:
name: Build - cp312, ${{ matrix.name }}
needs: [build_sdist]
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
include:
- name: Linux x86_64
runner: ubuntu-latest
- name: Linux aarch64
runner: ubuntu-24.04-arm
- name: macOS arm64
runner: macos-14
- name: Windows amd64
runner: windows-latest

steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
fetch-tags: true

- name: Download sdist
if: runner.os == 'Linux'
uses: actions/download-artifact@v4
with:
name: sdist
path: dist

- name: Locate sdist
if: runner.os == 'Linux'
id: sdist
shell: bash
run: echo "path=$(ls dist/*.tar.gz | head -n1)" >> "$GITHUB_OUTPUT"

- name: Restore Conan cache
id: conan-cache
if: runner.os == 'Windows'
uses: actions/cache/restore@v5
with:
path: ~/.conan2
key: v4-conan-${{ runner.os }}-${{ hashFiles('pyproject.toml') }}
restore-keys: |
v4-conan-${{ runner.os }}-

- name: Run cibuildwheel
uses: pypa/cibuildwheel@v3.4.0
with:
# for linux build the wheel from the sdist
package-dir: ${{ runner.os == 'Linux' && steps.sdist.outputs.path || '.' }}
env:
CIBW_CONTAINER_ENGINE: "docker; create_args: --volume /tmp/ccache:/ccache"
CIBW_ENVIRONMENT_LINUX: "LD_LIBRARY_PATH=/usr/local/lib64:${LD_LIBRARY_PATH} CCACHE_DIR=/ccache"
CIBW_CONFIG_SETTINGS_MACOS: "cmake.define.CMAKE_CXX_COMPILER_LAUNCHER=ccache cmake.define.CMAKE_C_COMPILER_LAUNCHER=ccache"
CIBW_CONFIG_SETTINGS_WINDOWS: "cmake.define.ENABLE_CONAN=ON"

- name: Save Conan cache
uses: actions/cache/save@v5
if: "!cancelled() && runner.os == 'Windows' && steps.conan-cache.outputs.cache-hit != 'true'"
with:
path: ~/.conan2
key: v4-conan-${{ runner.os }}-${{ hashFiles('pyproject.toml') }}

- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels-${{ matrix.name }}
path: wheelhouse/*.whl

publish_test_pypi:
name: Publish to TestPyPI
needs: [build_wheels]
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Download wheels
uses: actions/download-artifact@v4
with:
path: dist
pattern: wheels-*
merge-multiple: true

- name: Download sdist
uses: actions/download-artifact@v4
with:
name: sdist
path: dist

- name: Publish to TestPyPI
uses: pypa/gh-action-pypi-publish@v1.13.0
with:
repository-url: https://test.pypi.org/legacy/
verbose: true
File renamed without changes.
Loading
Loading