12
12
- master
13
13
release :
14
14
types : [published]
15
+ workflow_dispatch :
15
16
16
17
env :
17
18
DISTUTILS_USE_SDK : 1
@@ -23,7 +24,10 @@ concurrency:
23
24
24
25
jobs :
25
26
set_wheel_build_matrix :
26
- if : github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'ci:build_wheels')
27
+ if : |
28
+ github.event_name != 'pull_request' ||
29
+ contains(github.event.pull_request.labels.*.name, 'ci:build_wheels') ||
30
+ github.event_name == 'workflow_dispatch'
27
31
name : " Set wheel build matrix"
28
32
uses : ./.github/workflows/set_wheel_build_matrix.yml
29
33
with :
@@ -167,10 +171,8 @@ jobs:
167
171
python -m ensurepip --upgrade
168
172
python -m pip install setuptools
169
173
python -m pip install -r requirements-tests.txt
170
- if ('${{ matrix.pl_backend }}' -eq 'lightning_kokkos'){
171
- $SKIP_COMPILATION=true
172
- $PL_BACKEND="lightning_qubit"
173
- python -m pip install -e . -vv
174
+ if (${{ matrix.pl_backend == 'lightning_kokkos'}}) {
175
+ SKIP_COMPILATION=True PL_BACKEND="lightning_qubit" python -m pip install -e . -vv
174
176
}
175
177
cd wheelhouse
176
178
$wheels = Get-ChildItem "./" -Filter *.whl
@@ -193,7 +195,11 @@ jobs:
193
195
regex : ' .*[0-9]+.[0-9]+.[0-9]+[-_]?rc[0-9]+'
194
196
195
197
- uses : actions/upload-artifact@v3
196
- if : ${{ github.event_name == 'release' || github.ref == 'refs/heads/master' || steps.rc_build.outputs.match != ''}}
198
+ if : |
199
+ github.event_name == 'release' ||
200
+ github.event_name == 'workflow_dispatch' ||
201
+ github.ref == 'refs/heads/master' ||
202
+ steps.rc_build.outputs.match != ''
197
203
with :
198
204
name : ${{ runner.os }}-wheels-${{ matrix.pl_backend }}-${{ matrix.arch }}.zip
199
205
path : ./wheelhouse/*.whl
@@ -206,7 +212,9 @@ jobs:
206
212
pl_backend : ["lightning_kokkos", "lightning_qubit"]
207
213
runs-on : ubuntu-latest
208
214
209
- if : ${{ github.event_name == 'release' || github.ref == 'refs/heads/master'}}
215
+ if : |
216
+ github.event_name == 'release' ||
217
+ github.ref == 'refs/heads/master'
210
218
steps :
211
219
- uses : actions/download-artifact@v3
212
220
with :
0 commit comments