Skip to content

Commit 3a2ce42

Browse files
add action for wheel builds
1 parent f51d4ad commit 3a2ce42

2 files changed

Lines changed: 45 additions & 4 deletions

File tree

.github/workflows/wheels.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Build
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
push:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build_wheels:
13+
name: Build wheels on ${{ matrix.os }}
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
matrix:
17+
os: [ubuntu-latest]
18+
19+
steps:
20+
- uses: actions/checkout@v6
21+
with:
22+
submodules: recursive
23+
persist-credentials: false
24+
25+
# Used to host cibuildwheel
26+
- uses: actions/setup-python@v6
27+
28+
- name: Install cibuildwheel
29+
run: python -m pip install cibuildwheel==4.0.0rc1
30+
31+
- name: Build wheels
32+
run: python -m cibuildwheel --output-dir wheelhouse
33+
# to supply options, put them in 'env', like:
34+
# env:
35+
# CIBW_SOME_OPTION: value
36+
# ...
37+
38+
- uses: actions/upload-artifact@v6
39+
with:
40+
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
41+
path: ./wheelhouse/*.whl

rayx/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ add_custom_command(
4444
)
4545

4646
# Install the core library, *.py files and the share subdirectory to the "." install location for scikit_build_core
47-
install(TARGETS core DESTINATION ./rayx)
48-
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/core.pyi" DESTINATION ./rayx)
49-
install(FILES ${PY_SRC} DESTINATION ./rayx)
50-
install(DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/share/RAYX/Data" DESTINATION ./rayx/share/RAYX)
47+
install(TARGETS core DESTINATION rayx)
48+
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/core.pyi" DESTINATION rayx)
49+
install(FILES ${PY_SRC} DESTINATION rayx)
50+
install(DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/share/RAYX/Data" DESTINATION rayx/share/RAYX)

0 commit comments

Comments
 (0)