Skip to content

Commit

Permalink
Merge branch 'fix_Windows_wheels' of https://github.com/PennyLaneAI/p…
Browse files Browse the repository at this point in the history
…ennylane-lightning into fix_Windows_wheels
  • Loading branch information
AmintorDusko committed Apr 23, 2024
2 parents 505bb39 + 999fd82 commit d7e1fdf
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@
* Improve support for new operator arithmetic with `QuantumScriptSerializer.serialize_observables`.
[(#670)](https://github.com/PennyLaneAI/pennylane-lightning/pull/670)

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

### Documentation

### Bug fixes
Expand Down
22 changes: 15 additions & 7 deletions .github/workflows/wheel_win_x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
- master
release:
types: [published]
workflow_dispatch:

env:
DISTUTILS_USE_SDK: 1
Expand All @@ -23,7 +24,10 @@ concurrency:

jobs:
set_wheel_build_matrix:
if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'ci:build_wheels')
if: |
github.event_name != 'pull_request' ||
contains(github.event.pull_request.labels.*.name, 'ci:build_wheels') ||
github.event_name == 'workflow_dispatch'
name: "Set wheel build matrix"
uses: ./.github/workflows/set_wheel_build_matrix.yml
with:
Expand Down Expand Up @@ -167,10 +171,8 @@ jobs:
python -m ensurepip --upgrade
python -m pip install setuptools
python -m pip install -r requirements-tests.txt
if ('${{ matrix.pl_backend }}' -eq 'lightning_kokkos'){
$SKIP_COMPILATION=true
$PL_BACKEND="lightning_qubit"
python -m pip install -e . -vv
if (${{ matrix.pl_backend == 'lightning_kokkos'}}) {
SKIP_COMPILATION=True PL_BACKEND="lightning_qubit" python -m pip install -e . -vv
}
cd wheelhouse
$wheels = Get-ChildItem "./" -Filter *.whl
Expand All @@ -193,7 +195,11 @@ jobs:
regex: '.*[0-9]+.[0-9]+.[0-9]+[-_]?rc[0-9]+'

- uses: actions/upload-artifact@v3
if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master' || steps.rc_build.outputs.match != ''}}
if: |
github.event_name == 'release' ||
github.event_name == 'workflow_dispatch' ||
github.ref == 'refs/heads/master' ||
steps.rc_build.outputs.match != ''
with:
name: ${{ runner.os }}-wheels-${{ matrix.pl_backend }}-${{ matrix.arch }}.zip
path: ./wheelhouse/*.whl
Expand All @@ -206,7 +212,9 @@ jobs:
pl_backend: ["lightning_kokkos", "lightning_qubit"]
runs-on: ubuntu-latest

if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master'}}
if: |
github.event_name == 'release' ||
github.ref == 'refs/heads/master'
steps:
- uses: actions/download-artifact@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion pennylane_lightning/core/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
Version number (major.minor.patch[-label])
"""

__version__ = "0.36.0-dev35"
__version__ = "0.36.0-dev36"

0 comments on commit d7e1fdf

Please sign in to comment.