Skip to content

Commit cad73a3

Browse files
committed
Fix nanobind in CMake
1 parent 92728a4 commit cad73a3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/macos.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ jobs:
2020

2121
- run: pdm run check-installation
2222

23-
- run: curl https://sshx.io/get | sh -s run
23+
# Without this, future build steps fail in CMake.
24+
- name: Add nanobind to CMake
25+
run: |
26+
nanobind_dir=$(pdm run python -c 'import nanobind, os; print(os.path.join(nanobind.__path__[0], "cmake"))')
27+
echo "nanobind_DIR=${nanobind_dir}" >> $GITHUB_ENV
2428
2529
- name: Try building extensions
2630
run: |

0 commit comments

Comments
 (0)