Skip to content
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

workflows: update to artifacts v4 #207

Merged
merged 3 commits into from
Dec 22, 2023
Merged

Conversation

bgilbert
Copy link
Member

It's no longer possible for multiple jobs to accumulate results into the same artifact. Upload separate artifacts for the sdist and bdist archives, and have the release job download both via wildcard.

Unlike OpenSlide Python, which still needs the artifact Zips to have a containing directory name with build information, openslide-bin includes build information in archive names. Drop the containing directory from the artifact Zips in favor of directly wrapping the enclosed archives.

Continue using job output variables to pass artifact details within the workflow. However, since there's no longer a single artifact name or directory, workflow-level outputs would need separate variables for each artifact. Instead, drop the artifact output var, and require callers to use wildcards as needed.

The sdist/bdist archives are already compressed, so disable compression in their wrapper Zips.

Fixes: c18933e ("Redo versioning scheme")
Signed-off-by: Benjamin Gilbert <[email protected]>
Minor cleanup.

Signed-off-by: Benjamin Gilbert <[email protected]>
@openslide-bot
Copy link
Contributor

openslide-bot commented Dec 22, 2023

DCO signed off ✔️

All commits have been signed off. You have certified to the terms of the Developer Certificate of Origin, version 1.1. In particular, you certify that this contribution has not been developed using information obtained under a non-disclosure agreement or other license terms that forbid you from contributing it under the GNU Lesser General Public License, version 2.1.

It's no longer possible for multiple jobs to accumulate results into the
same artifact.  Upload separate artifacts for the sdist and bdist
archives, and have the release job download both via wildcard.

Unlike OpenSlide Python, which still needs the artifact Zips to have a
containing directory name with build information, openslide-bin includes
build information in archive names.  Drop the containing directory from
the artifact Zips in favor of directly wrapping the enclosed archives.

Continue using job output variables to pass artifact details within the
workflow.  However, since there's no longer a single artifact name or
directory, workflow-level outputs would need separate variables for each
artifact.  Instead, drop the `artifact` output var, and require callers to
use wildcards as needed.

The sdist/bdist archives are already compressed, so disable compression in
their wrapper Zips.

Signed-off-by: Benjamin Gilbert <[email protected]>
@bgilbert bgilbert merged commit 7c7f2d0 into openslide:main Dec 22, 2023
11 checks passed
@bgilbert bgilbert deleted the artifacts branch December 22, 2023 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants