Skip to content

Commit 23ae44d

Browse files
authored
github: Publish Windows package (#99)
2 parents eed81ab + 14c5988 commit 23ae44d

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

.github/workflows/CI.yml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,31 @@ jobs:
8686
name: wheels-macos-arm64
8787
path: dist
8888

89+
windows-x86_64:
90+
runs-on: windows-latest
91+
strategy:
92+
matrix:
93+
target: [x86_64]
94+
steps:
95+
- uses: actions/checkout@v3
96+
- uses: actions/setup-python@v4
97+
with:
98+
python-version: '3.10'
99+
- name: Build wheels
100+
uses: PyO3/maturin-action@v1
101+
env:
102+
CXX: clang++
103+
CC: clang
104+
with:
105+
target: ${{ matrix.target }}
106+
args: --release --out dist --find-interpreter
107+
sccache: 'true'
108+
- name: Upload wheels
109+
uses: actions/upload-artifact@v4
110+
with:
111+
name: wheels-windows-x86_64
112+
path: dist
113+
89114
sdist:
90115
runs-on: ubuntu-latest
91116
steps:
@@ -105,7 +130,7 @@ jobs:
105130
name: Release
106131
runs-on: ubuntu-latest
107132
if: "startsWith(github.ref, 'refs/tags/')"
108-
needs: [linux, macos-arm64, macos-x86_64, sdist]
133+
needs: [linux, macos-arm64, macos-x86_64, windows-x86_64, sdist]
109134
steps:
110135
- uses: actions/download-artifact@v4
111136
with:

0 commit comments

Comments
 (0)