-
Notifications
You must be signed in to change notification settings - Fork 8
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
Set up simple GitHub Actions workflow #3
Conversation
f9b6e55
to
856e690
Compare
Nice, thank you for you PRs! I will merge them, starting by this one (so we have some CI going on before merging the others). Glad that this little pastime of mine actually helps someone. I want the CI to run on stable and beta, as well as the MSRV. I'm open to support 1.34 if you use it in Sequoia, but apparently zeroize supports only Rust 1.39+. Were you able to compile it on 1.34? Because the GitHub Actions seems to fail (see https://github.com/emgre/win-crypto-ng/runs/365365652). Also, be aware that your original action file was actually running on stable, not 1.34. |
Woops, I thought I used the 1.34 in my Actions workflow, nice catch! I'm doing everyday development on most recent stable/nightly so I didn't catch that earlier. If you don't mind, I also opened #4 to support lower MSRVs, so it might be a good idea to merge that first or merge this PR without 1.34 checks for now? Either way, thanks for taking a look! |
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.
Thanks for adjusting my changes here!
I saw you merged a master before applying the change. What's is your preferred way of doing development here? I can rebase my changes on the most recent master if you want, to remove the noisy merge commits and simplify the history.
That merge was not supposed to be pushed on this PR, I was just trying out stuff and I wanted to push in my repo, not yours. That |
I was able to make all the checks pass on |
Yeah, I just pushed the adjustments to the branch here. Let's work with 1.37 first and see how far we can go from there for the time being 😅 |
Here's the actions being run succesfully: https://github.com/emgre/win-crypto-ng/commit/5550c816161f1bb930f2c36ac9ce026d6d88b1e2/checks |
I'm happy with the changes I did in my gh-actions branch. I suggest that I force push this in your repo and then merge in master. You'll still have commit 9d234d8 in the history, showcasing what you did. |
I'm happy with your changes to the workflows and I'm fine with you being the author here! It's your repository and you'll do as you see fit, however I'd like to humbly propose that:
The first one allows to quickly see what introduced important changes to the code (commits) vs what simply adapts the code wrt branches/features merges (merge commits) and also simplifies common workflow operations like cherry-picking (we don't have to manually pick specific commit parent, we don't discard other parent's history etc.). The second one reducing branching factor since the feature branch is always isolated and viewed in the context of a single master parent branch, rather than also including all the merge commits for all the intermediate states of the master parent branch. To better illustrate my point, here are hypothetical merges of this PR: If you'd like to merge the rebased commits, I pushed them just now on my branch here. As a side note, maybe we should enforce formatting outside of this PR? |
Hey 👋 Did you look at the recent changes here, by any chance? |
Sorry about the delay, I was quite busy. 😅 Thanks for your patience and dedication. Your rebasing makes much sense, I'm just not used to it, but I like the history it produces. I had the opportunity to setup a CI for a Rust project at work, so I integrated what I learn in this project, namely:
Now I'll (finally) merge. |
Thank you and no worries at all! As a side note, I think it'd be good to only pull |
I tried that first, but it was not working inside a |
...so we can easily ensure compiling and passing build on Windows (and probably stuff like formatting if we feel like, later on). See https://github.com/Xanewok/win-crypto-ng/runs/364545278 for an example.
I used 1.34.0 since that's what's available in stable Debian and what's currently used to build Sequoia.