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

Update Depreciated Workflow Action #631

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

brentru
Copy link
Member

@brentru brentru commented Sep 13, 2024

upload-artifact@v3 will be deprecated in November 2024. This pull request updates build-clang-doxy.yml and release-callee.yml to use upload-artifact@v4 instead of upload-artifact@v3 and addresses the breaking changes for v4.

Resolves: #611

@brentru brentru requested a review from tyeth September 13, 2024 19:23
@@ -729,7 +729,7 @@ jobs:
run: |
zip -r wippersnapper.${{ matrix.arduino-platform }}.littlefs.${{ env.WS_VERSION }}.zip wippersnapper.${{ matrix.arduino-platform }}.littlefs.${{ env.WS_VERSION }}.*
- name: upload build artifacts zip
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: build-files-dev
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Think this should also be build-files-dev-${{ matrix.arduino-platform }}.${{ env.WS_VERSION }} to make it easier to identify the inner contents of build zip assets

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tyeth Which line are you specifically referring to? with: name: build-files-dev?

with:
name: build-files
path: .
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to test this with a pre-release.

I think we'll need to do some updating of io-rails to look for different files and now un-nest the build-files-{board}.{version}.zip to then get the original firmware uf2's and zips.
Alternatively we could alter the CI job, to either unzip the extra zip nesting, or unzip and merge all the build-files-(^dev).zip into a build-files.zip maybe as part of the previous build-clang-doxy CI job.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see what you're saying, everything is combined and io-rails is looking for the individually ZIPed assets

Alternatively we could alter the CI job, to either unzip the extra zip nesting, or unzip and merge all the build-files-(^dev).zip into a build-files.zip maybe as part of the previous build-clang-doxy CI job.

IMO this is preferable to modifying io-rails. Would you want to take this on?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added it to my todos

Copy link
Contributor

@tyeth tyeth Sep 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in branch add-merge-to-fix-upload-download-artifact-v4

Compare link: fix-upload-download-artifact...refs/heads/add-merge-to-fix-upload-download-artifact-v4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate Actions to upload-artifact v4 - Requires separately named artifacts per build task, then a merge step
2 participants