-
Notifications
You must be signed in to change notification settings - Fork 378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds unique name for upload-artifact jobs #2285
Changes from 5 commits
1446eee
fe9e1bd
3273497
2e5a233
def4f4f
d9d7fb7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ jobs: | |
- uses: actions/upload-artifact@v4 | ||
with: | ||
path: ./wheelhouse/*.whl | ||
name: publish-shared-wheels | ||
name: aer-deploy-wheel-build-${{ matrix.os }} | ||
build_wheels_aarch64: | ||
name: Build wheels on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
|
@@ -60,6 +60,7 @@ jobs: | |
- uses: actions/upload-artifact@v4 | ||
with: | ||
path: ./wheelhouse/*.whl | ||
name: aer-deploy-build_wheels_aarch64-${{ matrix.os }} | ||
- name: Publish package distributions to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
|
@@ -87,7 +88,7 @@ jobs: | |
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: ./wheelhouse/*.whl | ||
name: publish-shared-wheels | ||
name: aer-deploy-wheel-arm64-macos-${{ matrix.os }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is still This is the only other There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bumped to v4 in d9d7fb7 and changed the name to include "shared". I was hesitant to change to v4 in my original PR since I am not aware of the reasons to the original bump to v4 and why only it affected only part of the file. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The change from v3 to v4 was a huge breaking change in the upload/download-artifact jobs. You certainly always have to match (v4 download can't find v3 uploads, and so on), and I think GitHub will be pushing to deprecate and remove the old v3 system soon too - iirc, it was completely piggy-backed onto their logging framework, and never properly designed as an artifact store. |
||
sdist: | ||
name: Publish qiskit-aer sdist | ||
runs-on: ubuntu-latest | ||
|
@@ -110,6 +111,7 @@ jobs: | |
- uses: actions/upload-artifact@v4 | ||
with: | ||
path: ./dist/qiskit* | ||
name: aer-deploy-sdist-${{ matrix.os }} | ||
- name: Publish package distributions to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Deployed right after - maybe give a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added the prefix as you suggested in d9d7fb7 |
||
with: | ||
|
@@ -154,6 +156,7 @@ jobs: | |
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: ./wheelhouse/*.whl | ||
name: aer-deploy-gpu-build-cuda11-${{ matrix.os }} | ||
- name: Publish package distributions to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Deployed here. Also, it's still There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bumped to v4 and added "separate" in d9d7fb7 |
||
with: | ||
|
@@ -198,6 +201,7 @@ jobs: | |
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: ./wheelhouse/*.whl | ||
name: aer-deploy-gpu-build-cuda12-${{ matrix.os }} | ||
- name: Publish package distributions to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Deployed here. Also, it's There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bumped to 4 and added "separate" in d9d7fb7 |
||
with: | ||
|
@@ -234,6 +238,7 @@ jobs: | |
- uses: actions/upload-artifact@v4 | ||
with: | ||
path: ./wheelhouse/*.whl | ||
name: aer-deploy-build_wheels_s390x-${{ matrix.os }} | ||
- name: Publish package distributions to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
|
@@ -270,6 +275,7 @@ jobs: | |
- uses: actions/upload-artifact@v4 | ||
with: | ||
path: ./wheelhouse/*.whl | ||
name: aer-deploy-build_wheels_ppc64le-${{ matrix.os }} | ||
- name: Publish package distributions to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
|
@@ -285,7 +291,8 @@ jobs: | |
- uses: actions/download-artifact@v4 | ||
with: | ||
path: deploy | ||
name: publish-shared-wheels | ||
pattern: 'aer-deploy-' | ||
merge-multiple: true | ||
- name: Publish package distributions to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Strictly, this set of artifacts (and a couple more noted below) gets uploaded in the line right below this one, so it doesn't need to be pulled down by the
download-artifact
run in thepublish_shared_wheels
job. Perhaps we could have the prefix bedeploy-shared-
, then jobs that previously uploaded to thepublish-shared-wheels
artifact name can become (e.g.)deploy-shared-x86_64-${{ matrix.os }}
anddeploy-shared-arm64-macos
, while the others becomedeploy-separate-aarch64-linux
etc? So then the glob is ondeploy-shared-*
, which won't attempt to re-download the wheels that aren't marked as job dependencies.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree. I changed this to "separate" in d9d7fb7 and set the upload prefix to handle "shared".