-
Notifications
You must be signed in to change notification settings - Fork 74
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
Switch from Travis to Github Actions #164
Conversation
.github/workflows/ci.yml
Outdated
|
||
|
||
env: | ||
CARGO_TERM_COLOR: always |
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.
This is likely not necessary.
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.
yes probably, it's what github has in its rust templates, so I left it in.
.github/workflows/ci.yml
Outdated
book: | ||
name: Build and upload book | ||
runs-on: ubuntu-latest | ||
if: github.ref == 'refs/heads/master' |
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.
FWIW moving this if to the "deploy book" step makes more sense - you likely do want to build things on PRs, just not deploy.
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 true
Not sure if GH CI isn't running on this PR for a particular reason or what's up with that - would probably be good to figure that out. Otherwise modulo one nit I left seems good to me, I would expect best way to test is to merge... |
468a945
to
61d287c
Compare
Maybe for the first GHA workflow has to be enabled via the UI... It's running now, so I'll be able to test the book parts. |
Seems ok up to actually deploying the book, using the tokens. So let's merge and test that. The currently deployed book is out of date anyways. |
Looking good |
Github actions is only activated for PRs once a workflow gets merged into the default branch. |
...using the template from rust-lang/polonius#164.
Our CI has 👻-ed us, so let's try switching to GHA.
@Mark-Simulacrum does that look good to you ?
I've tested this a bit on my fork, and it seemed to work.
I'm a bit unsure about the book job: I don't have the admin rights to check if the actual tokens set up on this repo would keep working with the new simpleinfra job, or if new tokens or deploy keys would be needed.