forked from Qiskit/qiskit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into token-swapper-permutation-plugin
- Loading branch information
Showing
236 changed files
with
5,520 additions
and
4,455 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -5,9 +5,76 @@ on: | |
tags: | ||
- '*' | ||
jobs: | ||
build_wheels: | ||
name: Build wheels | ||
runs-on: ${{ matrix.os }} | ||
environment: release | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-11, windows-latest] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
name: Install Python | ||
with: | ||
python-version: '3.10' | ||
- uses: dtolnay/rust-toolchain@stable | ||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: ./wheelhouse/*.whl | ||
name: shared-wheel-builds | ||
build_wheels_macos_arm: | ||
name: Build wheels on macOS arm | ||
runs-on: ${{ matrix.os }} | ||
environment: release | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [macos-11] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
name: Install Python | ||
with: | ||
python-version: '3.10' | ||
- uses: dtolnay/rust-toolchain@stable | ||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
env: | ||
CIBW_BEFORE_ALL: rustup target add aarch64-apple-darwin | ||
CIBW_ARCHS_MACOS: arm64 universal2 | ||
CIBW_ENVIRONMENT: >- | ||
CARGO_BUILD_TARGET="aarch64-apple-darwin" | ||
PYO3_CROSS_LIB_DIR="/Library/Frameworks/Python.framework/Versions/$(python -c 'import sys; print(str(sys.version_info[0])+"."+str(sys.version_info[1]))')/lib/python$(python -c 'import sys; print(str(sys.version_info[0])+"."+str(sys.version_info[1]))')" | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: ./wheelhouse/*.whl | ||
name: shared-wheel-builds | ||
upload_shared_wheels: | ||
name: Upload shared build wheels | ||
runs-on: ubuntu-latest | ||
environment: release | ||
permissions: | ||
id-token: write | ||
needs: ["build_wheels", "build_wheels_macos_arm"] | ||
steps: | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: shared-wheel-builds | ||
path: deploy | ||
- name: Publish package distributions to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
packages-dir: deploy | ||
build_wheels_s390x: | ||
name: Build wheels on s390x | ||
runs-on: ${{ matrix.os }} | ||
environment: release | ||
permissions: | ||
id-token: write | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
|
@@ -31,16 +98,16 @@ jobs: | |
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: ./wheelhouse/*.whl | ||
- name: Install twine | ||
run: python -m pip install twine | ||
- name: Upload to PyPI | ||
run: twine upload ./wheelhouse/*.whl | ||
env: | ||
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} | ||
TWINE_USERNAME: qiskit | ||
- name: Publish package distributions to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
packages-dir: wheelhouse/ | ||
build_wheels_ppc64le: | ||
name: Build wheels on ppc64le | ||
runs-on: ${{ matrix.os }} | ||
environment: release | ||
permissions: | ||
id-token: write | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
|
@@ -64,16 +131,16 @@ jobs: | |
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: ./wheelhouse/*.whl | ||
- name: Install twine | ||
run: python -m pip install twine | ||
- name: Upload to PyPI | ||
run: twine upload ./wheelhouse/*.whl | ||
env: | ||
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} | ||
TWINE_USERNAME: qiskit | ||
- name: Publish package distributions to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
packages-dir: wheelhouse/ | ||
build_wheels_aarch64: | ||
name: Build wheels on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
environment: release | ||
permissions: | ||
id-token: write | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
|
@@ -96,10 +163,58 @@ jobs: | |
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: ./wheelhouse/*.whl | ||
- name: Install twine | ||
run: python -m pip install twine | ||
- name: Upload to PyPI | ||
run: twine upload ./wheelhouse/*.whl | ||
env: | ||
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} | ||
TWINE_USERNAME: qiskit | ||
- name: Publish package distributions to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
packages-dir: wheelhouse/ | ||
sdist: | ||
name: Build and publish terra sdist | ||
runs-on: ${{ matrix.os }} | ||
needs: ["upload_shared_wheels"] | ||
environment: release | ||
permissions: | ||
id-token: write | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
name: Install Python | ||
with: | ||
python-version: '3.10' | ||
- name: Install deps | ||
run: pip install -U twine setuptools-rust wheel build | ||
- name: Build sdist | ||
run: python -m build . --sdist | ||
- name: Publish package distributions to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
metapackage: | ||
name: Build and publish terra sdist | ||
runs-on: ${{ matrix.os }} | ||
needs: ["sdist"] | ||
environment: release | ||
permissions: | ||
id-token: write | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
name: Install Python | ||
with: | ||
python-version: '3.10' | ||
- name: Install deps | ||
run: pip install -U twine setuptools-rust wheel build | ||
- name: Build packages | ||
run: | | ||
set -e | ||
cd qiskit_pkg | ||
python -m build . | ||
- name: Publish package distributions to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
packages-dir: qiskit_pkg/dist |
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 |
---|---|---|
|
@@ -6,4 +6,4 @@ pull_request_rules: | |
actions: | ||
backport: | ||
branches: | ||
- stable/0.25 | ||
- stable/0.45 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.