10
10
description : " Build and publish both qcs-sdk-python and qcs-sdk-python-grpc-web wheels to PyPI"
11
11
type : boolean
12
12
default : false
13
- pull_request :
14
13
15
14
jobs :
16
15
is-python-release :
@@ -26,15 +25,13 @@ jobs:
26
25
27
26
macos :
28
27
runs-on : macos-latest
29
- # needs: [is-python-release, should-publish-wheels]
28
+ needs : [is-python-release, should-publish-wheels]
30
29
env :
31
30
CXXFLAGS : " -std=c++11 -stdlib=libc++"
32
31
strategy :
33
32
matrix :
34
- # package-name: [qcs-sdk-python, qcs-sdk-python-grpc-web]
35
- package-name : [qcs-sdk-python-grpc-web]
36
- # python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
37
- python-version : ["3.12"]
33
+ package-name : [qcs-sdk-python, qcs-sdk-python-grpc-web]
34
+ python-version : ["3.8", "3.9", "3.10", "3.11", "3.12"]
38
35
target : [x86_64-apple-darwin, aarch64-apple-darwin]
39
36
steps :
40
37
- uses : actions/checkout@v4
@@ -52,13 +49,12 @@ jobs:
52
49
53
50
linux-x86_64 :
54
51
runs-on : ubuntu-latest
55
- # needs: [is-python-release, should-publish-wheels]
52
+ needs : [is-python-release, should-publish-wheels]
56
53
env :
57
54
CXXFLAGS : " -std=c++11"
58
55
strategy :
59
56
matrix :
60
- # python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
61
- python-version : ["3.12"]
57
+ python-version : ["3.8", "3.9", "3.10", "3.11", "3.12"]
62
58
steps :
63
59
- uses : actions/checkout@v4
64
60
- name : Install protoc
@@ -75,13 +71,12 @@ jobs:
75
71
76
72
linux-aarch64 :
77
73
runs-on : ubuntu-24.04-arm
78
- # needs: [is-python-release, should-publish-wheels]
74
+ needs : [is-python-release, should-publish-wheels]
79
75
env :
80
76
CXXFLAGS : " -std=c++11"
81
77
strategy :
82
78
matrix :
83
- # python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
84
- python-version : ["3.12"]
79
+ python-version : ["3.8", "3.9", "3.10", "3.11", "3.12"]
85
80
steps :
86
81
- uses : actions/checkout@v4
87
82
- name : Install protoc
@@ -98,13 +93,12 @@ jobs:
98
93
99
94
linux-grpc-web-x86_64 :
100
95
runs-on : ubuntu-latest
101
- # needs: [is-python-release, should-publish-wheels]
96
+ needs : [is-python-release, should-publish-wheels]
102
97
env :
103
98
CXXFLAGS : " -std=c++11"
104
99
strategy :
105
100
matrix :
106
- # python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
107
- python-version : ["3.12"]
101
+ python-version : ["3.8", "3.9", "3.10", "3.11", "3.12"]
108
102
steps :
109
103
- uses : actions/checkout@v4
110
104
- name : Install protoc
@@ -121,13 +115,12 @@ jobs:
121
115
122
116
linux-grpc-web-ppc64le :
123
117
runs-on : ubuntu-latest
124
- # needs: [is-python-release, should-publish-wheels]
118
+ needs : [is-python-release, should-publish-wheels]
125
119
env :
126
120
CXXFLAGS : " -std=c++11"
127
121
strategy :
128
122
matrix :
129
- # python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
130
- python-version : ["3.12"]
123
+ python-version : ["3.8", "3.9", "3.10", "3.11", "3.12"]
131
124
steps :
132
125
- uses : actions/checkout@v4
133
126
- name : Install protoc
@@ -144,13 +137,11 @@ jobs:
144
137
145
138
windows :
146
139
runs-on : windows-latest
147
- # needs: [is-python-release, should-publish-wheels]
140
+ needs : [is-python-release, should-publish-wheels]
148
141
strategy :
149
142
matrix :
150
- # package-name: [qcs-sdk-python, qcs-sdk-python-grpc-web]
151
- package-name : [qcs-sdk-python-grpc-web]
152
- # python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
153
- python-version : ["3.12"]
143
+ package-name : [qcs-sdk-python, qcs-sdk-python-grpc-web]
144
+ python-version : ["3.8", "3.9", "3.10", "3.11", "3.12"]
154
145
steps :
155
146
- name : Enable long path support
156
147
run : |
@@ -172,15 +163,13 @@ jobs:
172
163
173
164
sdist :
174
165
runs-on : ubuntu-latest
175
- # needs: is-python-release
166
+ needs : is-python-release
176
167
env :
177
168
CXXFLAGS : " -std=c++11"
178
169
strategy :
179
170
matrix :
180
- # package-name: [qcs-sdk-python, qcs-sdk-python-grpc-web]
181
- package-name : [qcs-sdk-python-grpc-web]
182
- # python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
183
- python-version : ["3.12"]
171
+ package-name : [qcs-sdk-python, qcs-sdk-python-grpc-web]
172
+ python-version : ["3.8", "3.9", "3.10", "3.11", "3.12"]
184
173
steps :
185
174
- uses : actions/checkout@v4
186
175
- name : Install protoc
@@ -220,9 +209,9 @@ jobs:
220
209
merge-multiple : true
221
210
- name : List wheels to upload
222
211
run : ls -R wheels
223
- # - name: Publish to PyPI
224
- # uses: messense/maturin-action@v1
225
- # with:
226
- # command: upload
227
- # args: --skip-existing wheels/*
228
- # maturin-version: v1.8.2 # coordinate this with crates/python/pyproject.toml
212
+ - name : Publish to PyPI
213
+ uses : messense/maturin-action@v1
214
+ with :
215
+ command : upload
216
+ args : --skip-existing wheels/*
217
+ maturin-version : v1.8.2 # coordinate this with crates/python/pyproject.toml
0 commit comments