-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Add CI workflow (build nb ext., still misses run/test from Python).
Showing
2 changed files
with
34 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Nanobind | ||
|
||
on: | ||
# TODO probably change/add main later. Ah, perhaps this wf can be part of linux.yml? | ||
push: | ||
branches: [ "nanobind" ] | ||
# pull_request: | ||
# branches: [ ] | ||
|
||
jobs: | ||
build: | ||
name: "Build Python interface" | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Python setup | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11.9' | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt-get install -y libarpack2-dev libcxxopts-dev libeigen3-dev libfmt-dev python3.11-dev | ||
python -m pip install nanobind | ||
- name: Configure | ||
run: cmake -B ${{github.workspace}}/build -DBUILD_NANOBIND=ON | ||
|
||
- name: Build | ||
# TODO there are A LOT of warnings in the logs from nanobind (-pedantic, -Wshadow). | ||
run: cmake --build ${{github.workspace}}/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