Skip to content

Commit 4bc6852

Browse files
committed
Try to fix windows build
1 parent d250846 commit 4bc6852

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.github/workflows/test.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Publish Python Release to PyPI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
build-rs:
14+
strategy:
15+
matrix:
16+
os: [linux, macos, windows]
17+
target: [x86_64, aarch64]
18+
include:
19+
- os: linux
20+
target: i686
21+
- os: linux
22+
target: armv7
23+
- os: linux
24+
target: s390x
25+
- os: linux
26+
target: ppc64le
27+
- os: windows
28+
target: i686
29+
python-architecture: x86
30+
exclude:
31+
- os: windows
32+
target: aarch64
33+
runs-on: ${{ (matrix.os == 'linux' && 'ubuntu') || matrix.os }}-latest
34+
steps:
35+
- uses: actions/checkout@v3
36+
- uses: actions/setup-python@v3
37+
with:
38+
python-version: '3.11'
39+
architecture: ${{ matrix.python-architecture || 'x64' }}
40+
- uses: actions/setup-python@v3
41+
if: matrix.os == 'windows'
42+
with:
43+
python-version: '3.7'
44+
architecture: ${{ matrix.python-architecture || 'x64' }}
45+
- name: Build wheels
46+
uses: PyO3/maturin-action@v1
47+
with:
48+
target: ${{ matrix.target }}
49+
args: --release --out dist --interpreter 3.7 3.8 3.9 3.10 3.11 3.12
50+
sccache: 'true'
51+
manylinux: auto
52+
working-directory: ./sqlglotrs

0 commit comments

Comments
 (0)