Skip to content

Commit 2aeadb4

Browse files
committed
Build wheel
1 parent 0daade2 commit 2aeadb4

File tree

1 file changed

+25
-6
lines changed

1 file changed

+25
-6
lines changed

.github/workflows/build.yml

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,25 @@ on:
88
branches: [ main ]
99

1010
jobs:
11-
build:
11+
build-binaries:
1212
strategy:
1313
matrix:
1414
include:
1515
- name: x86-windows
1616
image: windows-2022
17-
arch: x86
17+
cmake-args: -A Win32 -D ARCHITECTURE=x86
1818
- name: x86_64-windows
1919
image: windows-2022
20-
arch: x86_64
20+
cmake-args: -A x64 -D ARCHITECTURE=x86_64
2121
- name: x86_64-linux
2222
image: ubuntu-22.04
23-
arch: x86_64
23+
cmake-args: -D ARCHITECTURE=x86_64
2424
- name: x86_64-darwin
25-
image: macos-12
26-
arch: x86_64
25+
image: macos-13
26+
cmake-args: -D CMAKE_OSX_ARCHITECTURES=x86_64 -D ARCHITECTURE=x86_64
27+
- name: aarch-darwin
28+
image: macos-13
29+
cmake-args: -D CMAKE_OSX_ARCHITECTURES=arm64 -D ARCHITECTURE=aarch64
2730
runs-on: ${{ matrix.image }}
2831
steps:
2932
- name: Checkout repository
@@ -39,3 +42,19 @@ jobs:
3942
name: ${{ matrix.name }}
4043
path: src/sdf/ndtable/${{ matrix.name }}
4144
if-no-files-found: error
45+
build-wheel:
46+
runs-on: ubuntu-22.04
47+
needs: [build-binaries]
48+
steps:
49+
- uses: astral-sh/setup-uv@v4
50+
- uses: actions/checkout@v4
51+
- uses: actions/download-artifact@v4
52+
with:
53+
name: x86-windows
54+
path: src/sdf/ndtable/x86-windows
55+
- run: uv build --wheel
56+
- uses: actions/upload-artifact@v4
57+
with:
58+
name: dist
59+
path: dist
60+
if-no-files-found: error

0 commit comments

Comments
 (0)