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

Upload build artifacts for each PR #232

Merged
merged 2 commits into from
Feb 26, 2025
Merged

Conversation

sosthene-nitrokey
Copy link
Contributor

No description provided.

- name: Archive Artifact
uses: actions/upload-artifact@v4
with:
name: nethsm_pkcs11.dll
Copy link
Member

Choose a reason for hiding this comment

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

AFAIS this overrides the output of check-windows. Include the platform in the artifact name?

Copy link
Member

Choose a reason for hiding this comment

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

Actually it’s also missing, but I think it would collide with the windows artifact if it would exist.

Warning: No files were found with the provided path: target/release/nethsm_pkcs11.dll. No artifacts will be uploaded.

Maybe set if-no-files-found: error?

uses: actions/upload-artifact@v4
with:
name: nethsm_pkcs11.dll
path: target/release/nethsm_pkcs11.so
Copy link
Member

Choose a reason for hiding this comment

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

Warning: No files were found with the provided path: target/release/nethsm_pkcs11.so. No artifacts will be uploaded.

@sosthene-nitrokey sosthene-nitrokey force-pushed the windows-build-each-pr branch 2 times, most recently from 9d78ee1 to 62bd587 Compare February 21, 2025 09:54
@sosthene-nitrokey
Copy link
Contributor Author

Not sure if we want to merge this and build for each PR. It's mostly useful to have those builds on a specific branch when needed for testing fixes with customers (here specifically to test #231 on windows).

@robin-nitrokey
Copy link
Member

I think it generally makes sense to always build instead of check as some errors (linking problems, errors in const contexts, ...) could be missed otherwise. I don’t have a strong opinion on whether to store the artifacts.

This makes testing easier
@sosthene-nitrokey
Copy link
Contributor Author

If we build it makes sense to have the artifacts. I could also see the appeal of only building in the debug profile, but that could make the binaries useless even for testing.

@daringer
Copy link

I'd prefer to have the artifacts uploded - we'll have similar situations regularly where we need the binaries built for certain changes only...

@sosthene-nitrokey
Copy link
Contributor Author

sosthene-nitrokey commented Feb 21, 2025

Yes and being able to go back and grab a binary from before a change is also interesting.

Once reviewed I'll merge.

@sosthene-nitrokey sosthene-nitrokey merged commit 03469bd into main Feb 26, 2025
6 checks passed
@sosthene-nitrokey sosthene-nitrokey deleted the windows-build-each-pr branch February 26, 2025 10:23
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.

3 participants