Skip to content

Commit d7e1fdf

Browse files
committed
Merge branch 'fix_Windows_wheels' of https://github.com/PennyLaneAI/pennylane-lightning into fix_Windows_wheels
2 parents 505bb39 + 999fd82 commit d7e1fdf

File tree

3 files changed

+19
-8
lines changed

3 files changed

+19
-8
lines changed

.github/CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@
8585
* Improve support for new operator arithmetic with `QuantumScriptSerializer.serialize_observables`.
8686
[(#670)](https://github.com/PennyLaneAI/pennylane-lightning/pull/670)
8787

88+
* Add `workflow_dispatch` to wheels recipes; allowing developers to build wheels manually on a branch instead of temporarily changing the headers.
89+
[(#679)](https://github.com/PennyLaneAI/pennylane-lightning/pull/679)
90+
8891
### Documentation
8992

9093
### Bug fixes

.github/workflows/wheel_win_x86_64.yml

+15-7
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ on:
1212
- master
1313
release:
1414
types: [published]
15+
workflow_dispatch:
1516

1617
env:
1718
DISTUTILS_USE_SDK: 1
@@ -23,7 +24,10 @@ concurrency:
2324

2425
jobs:
2526
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'
2731
name: "Set wheel build matrix"
2832
uses: ./.github/workflows/set_wheel_build_matrix.yml
2933
with:
@@ -167,10 +171,8 @@ jobs:
167171
python -m ensurepip --upgrade
168172
python -m pip install setuptools
169173
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
174176
}
175177
cd wheelhouse
176178
$wheels = Get-ChildItem "./" -Filter *.whl
@@ -193,7 +195,11 @@ jobs:
193195
regex: '.*[0-9]+.[0-9]+.[0-9]+[-_]?rc[0-9]+'
194196

195197
- 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 != ''
197203
with:
198204
name: ${{ runner.os }}-wheels-${{ matrix.pl_backend }}-${{ matrix.arch }}.zip
199205
path: ./wheelhouse/*.whl
@@ -206,7 +212,9 @@ jobs:
206212
pl_backend: ["lightning_kokkos", "lightning_qubit"]
207213
runs-on: ubuntu-latest
208214

209-
if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master'}}
215+
if: |
216+
github.event_name == 'release' ||
217+
github.ref == 'refs/heads/master'
210218
steps:
211219
- uses: actions/download-artifact@v3
212220
with:

pennylane_lightning/core/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
Version number (major.minor.patch[-label])
1717
"""
1818

19-
__version__ = "0.36.0-dev35"
19+
__version__ = "0.36.0-dev36"

0 commit comments

Comments
 (0)