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

Replace travis with GitHub Actions #32

Merged
merged 2 commits into from
Dec 28, 2021
Merged

Replace travis with GitHub Actions #32

merged 2 commits into from
Dec 28, 2021

Conversation

dcroote
Copy link
Collaborator

@dcroote dcroote commented Dec 26, 2021

As mentioned in #11 (comment), here is the GitHub Actions build replacement for travis CI. It uses a matrix strategy with 3 targets and leverages the built-in cross functionality of the actions-rs/cargo@v1 Action.

Here is the successful Actions run on my fork.

@rahul-thakoor
Copy link
Owner

thanks, @dcroote :)

what's the easiest way to publish automatically to crates.io?

maybe we publish only prs with semantic version tags?

@dcroote
Copy link
Collaborator Author

dcroote commented Dec 26, 2021

Hi @rahul-thakoor - sure thing!

I added a job to the workflow that depends on the build job and publishes only push commits with a tag to crates.io. Note you'll need to go to this repo's Settings, then Secrets, and add a new repository secret named CRATES_IO_TOKEN for this to work.

Copy link
Owner

@rahul-thakoor rahul-thakoor left a comment

Choose a reason for hiding this comment

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

thanks !

@rahul-thakoor rahul-thakoor merged commit 6e70dc7 into rahul-thakoor:master Dec 28, 2021
@dcroote dcroote mentioned this pull request Dec 29, 2021
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.

2 participants