-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump Docker's Lightning version & add Docker build workflow. (#593)
* Bump Docker's Lightning version & add Docker build workflow. * Auto update version * Mod pull_request triggers. * No sudo. * run on ubuntu-22.04 * Put back sudo. * Install wget. * Build lightning-qubit only. * apt-get -y * Fix LIGHTNING_VERSION * test and push * Use docker actions * Fix l_version * Add dockerfile path * Add test. * ubuntu-latest * Fix cmake/support_kokkos.cmake for kokkos-cuda. * Remove test which does not test much. * Revert triggers * Auto update version * trigger ci * save disk with no-cache=true * commet pull_req trigger. * Use GHA cache. * Do not test. * Fix trig. * Fix trig. * Revert trigs. * runs-on: * revert triggers * Add latest tag. * push: true --------- Co-authored-by: Dev version update bot <github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
2143239
commit 9c0ad27
Showing
5 changed files
with
89 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
name: Docker::Linux::x86_64 | ||
|
||
# **What it does**: Builds Docker images for Linux (ubuntu-22.04) architecture x86_64 and store it as artifacts. | ||
# **Why we have it**: To build Docker images to be uploaded to Docker Hub. | ||
# **Who does it impact**: Docker images uploaded to Docker Hub provide yet another way to install and use PennyLane + Lightning. It is especially useful on HPC platforms where environments can be difficult to set up. | ||
|
||
on: | ||
release: | ||
types: [published] | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: docker_linux_x86_64-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
|
||
docker: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
pl_version: ["0.34.0"] | ||
pl_backend: ["lightning-qubit", "lightning-gpu", "lightning-kokkos-openmp", "lightning-kokkos-cuda", "lightning-kokkos-rocm"] | ||
timeout-minutes: 180 | ||
name: docker::${{ matrix.os }}::${{ matrix.pl_backend }}::${{ matrix.pl_version }} | ||
runs-on: | ||
group: 'Lightning Additional Runners' | ||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Build and export to Docker | ||
uses: docker/build-push-action@v5 | ||
with: | ||
load: true | ||
push: false | ||
context: . | ||
file: docker/Dockerfile | ||
tags: test:${{ matrix.pl_version }}-${{ matrix.pl_backend }} | ||
target: wheel-${{ matrix.pl_backend }} | ||
build-args: | | ||
LIGHTNING_VERSION=${{ matrix.pl_version }} | ||
- name: Test | ||
run: | | ||
docker run --rm test:${{ matrix.pl_version }}-${{ matrix.pl_backend }} | ||
- name: Build and push | ||
uses: docker/build-push-action@v5 | ||
with: | ||
push: true | ||
context: . | ||
file: docker/Dockerfile | ||
tags: pennylaneai/pennylane:${{ matrix.pl_version }}-${{ matrix.pl_backend }} | ||
target: wheel-${{ matrix.pl_backend }} | ||
build-args: | | ||
LIGHTNING_VERSION=${{ matrix.pl_version }} | ||
- name: Build and push | ||
uses: docker/build-push-action@v5 | ||
with: | ||
push: true | ||
context: . | ||
file: docker/Dockerfile | ||
tags: pennylaneai/pennylane:latest-${{ matrix.pl_backend }} | ||
target: wheel-${{ matrix.pl_backend }} | ||
build-args: | | ||
LIGHTNING_VERSION=${{ matrix.pl_version }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,4 +16,4 @@ | |
Version number (major.minor.patch[-label]) | ||
""" | ||
|
||
__version__ = "0.35.0-dev2" | ||
__version__ = "0.35.0-dev3" |