-
-
Notifications
You must be signed in to change notification settings - Fork 402
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
GitHub actions CI/CD releases #10
Conversation
18fbb06
to
eceeaf8
Compare
Wow, thanks for the contribution! This is great. Let me take a look and get back to you on this. There's almost as many lines of code in CI as there are for the rest of the Rust codebase. :') This is based on https://github.com/japaric/trust, right? |
Yup! Its based on trust and https://github.com/XAMPPRocky/mean-bean-ci-template I'm also using it in: |
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.
Read through the scripts, looks good to me. I'm a little bit cautious about recommending that people pipe a bash script downloaded from the internet to sudo sh
, but I can't think of any better solution than this.
I'll try running CI on your branch, update the README a bit (there's a new "installation" section to update now), and if all looks good will merge.
.github/workflows/mean_bean_ci.yml
Outdated
macos: | ||
runs-on: macos-latest | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
channel: [stable, beta, nightly] | ||
target: | ||
- x86_64-apple-darwin |
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.
That's a lot of CI runs! I'm glad GitHub Actions is free for public repositories. :')
Hm, I think Windows is missing from the CI and deploy steps! Right now it's only building for Linux and macOS. Also |
@ekzhang Added windows and removed beta and nightly |
@ekzhang looks like a test is failing on windows: https://github.com/praveenperera/bore/runs/5983694419?check_suite_focus=true |
Ah, I see, guess the tests don't work on Windows. The problem is likely |
Going to release 0.3.0 for now since there's a few pending features, but I'll try to debug the Windows problem as soon as I get the chance. |
* Will work after a new version is released
6a8894e
to
8b89fb6
Compare
This looks fantastic! The build looks like it works perfectly and the binaries appear to work as well. Do you think it's okay if we remove
I could add something like this in # Installation (requires Rust, see alternatives below)
cargo install bore-cli
# On your local machine
bore local 8000 --to bore.pub (... then, further down) InstallationThe easiest way to install You also can build cargo install bore-cli |
Hey @ekzhang, I personally don't think that sudo install scripts are scary. But both sides have been discussed a lot in other forums. But basically comes down to people are comfortable with package managers, and the bash script is not any more safe or dangerous than a package manager. Also anyone that is afraid can look at the install script right in the repo before installing. It's not too big or complicated. That being said I understand the fear, and this is your repo, I have removed it. And I agree the script not working for Windows isn't great. I don't have a solution for that, I haven't used Windows in a while. Do most people use the linux subsystem? |
Thanks for understanding! I appreciate your thoughts on this. It's definitely true that install scripts aren't necessarily more dangerous than a package manager, and the Perhaps I could try to set up a quick local brew tap (#27) after this so that most people using macOS could install the binary with one command. That way at least (probably?) most users would still a one-click binary install. :) |
Adds CI and CD using GitHub releases. Closes #6
Will create a new release when a new
v*
tag is pushed. You can see it here:https://github.com/praveenperera/bore/tree/github-actions-ci-cd