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

Switch from Travis to Github Actions #164

Merged
merged 1 commit into from
Jun 3, 2021
Merged

Conversation

lqd
Copy link
Member

@lqd lqd commented Jun 3, 2021

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.



env:
CARGO_TERM_COLOR: always
Copy link
Member

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.

Copy link
Member Author

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.

book:
name: Build and upload book
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
Copy link
Member

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.

Copy link
Member Author

Choose a reason for hiding this comment

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

That's true

@Mark-Simulacrum
Copy link
Member

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...

@lqd lqd force-pushed the gh-actions branch 2 times, most recently from 468a945 to 61d287c Compare June 3, 2021 21:19
@lqd
Copy link
Member Author

lqd commented Jun 3, 2021

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.

@lqd
Copy link
Member Author

lqd commented Jun 3, 2021

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.

@lqd lqd merged commit d1070b3 into rust-lang:master Jun 3, 2021
@lqd
Copy link
Member Author

lqd commented Jun 3, 2021

Looking good

@lqd lqd deleted the gh-actions branch June 3, 2021 21:30
@bjorn3
Copy link
Member

bjorn3 commented Jun 4, 2021

Github actions is only activated for PRs once a workflow gets merged into the default branch.

ecstatic-morse added a commit to rust-lang/datafrog that referenced this pull request Sep 13, 2021
...using the template from rust-lang/polonius#164.
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.

None yet

3 participants