Switch to using GitHub Actions for CI#72
Conversation
I have tried to keep it functionally identical to the travis workflow. There are some minor changes though. - Added MSRV of 1.51.0 - I just picked a version out of thin air here. - I could not see an easy way of preventing master branch runs for PRs that have passed so this should run on all. - For deploying to github pages I'm using a 3rd party action. It looks reasonable and just uses the default repo scoped token.
|
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @andre-richter (or someone else) soon. Please see the contribution instructions for more information. |
adamgreig
left a comment
There was a problem hiding this comment.
Wow, thanks for putting this together!
On the whole this looks good but I'd like for it to be slightly more in line with our various other mdbook repos to make ongoing maintenance easier:
The main things to change are:
- use cargo to install mdbook and cache it: example
- use
peaceiris/actions-gh-pages@v3for gh-pages: example - update bors.toml to require the new check passes, instead of the old one (example)
Hopefully those aren't too bad to do, and thanks again for the PR!
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest |
There was a problem hiding this comment.
| runs-on: ubuntu-latest | |
| runs-on: ubuntu-20.04 |
We've mostly specified specific versions just to ensure there are no surprises when -latest next changes. Same deal applies to the deploy job below, though you could also make that a final and optional step in the build job, I don't mind either way.
|
That's great. Thanks for the review. I'll take a look at it later today. |
|
@adamgreig I have tried to follow the other book repos as much as possible. However, it looks like this repo does a bit more testing so it feels like it needs to be tested across different versions of rust, which the other workflows do not. |
There was a problem hiding this comment.
Thanks, looks good! Couple last changes then let's give it a go. Sadly since no actions have been run I don't have a button to try running them for this PR, but once the bors.toml file is updated I can have bors try it instead.
- I think we can delete
ci/install.shand the newci/install-mdbook.shnow? - Currently nightly builds failing will fail CI, but we probably want to allow nightly to fail; there's an example here
-
.github/bors.tomlneeds updating or bors will refuse to merge this PR -
.travis.ymlcan be deleted too
- Remove redundant install and travis config files - Allow nightly to fail - Update bors.toml (I was sure I had done this)
72: Switch to using GitHub Actions for CI r=adamgreig a=robyoung I have tried to keep it functionally identical to the travis workflow. This is a bit tricky for me to test. There are some minor changes though. - Added MSRV of 1.51.0 - I just picked a version out of thin air here. - I could not see an easy way of preventing master branch runs for PRs that have passed so this should run on all. - For deploying to github pages I'm using a 3rd party action. It looks reasonable and just uses the default repo scoped token. Co-authored-by: Rob Young <rob@robyoung.digital> Co-authored-by: Adam Greig <adam@adamgreig.com>
|
Canceled. |
Also update format of command line arguments to nm to use double dashes.
|
Ugh, that's enough whack-a-mole for tonight. Please don't be put off, this is mostly the test script needing some updates for the latest version of |
1e62dd7 to
0182f7e
Compare
c090191 to
df623d6
Compare
df623d6 to
66af410
Compare
|
Whew, that was an endeavour. It turns out you can't copy arm-none-eabi-gcc into a new directory, it needs to stay relative to the directory structure it was extracted from. Who knew. bors merge |
|
👎 Rejected by too few approved reviews |
72: Switch to using GitHub Actions for CI r=adamgreig a=robyoung I have tried to keep it functionally identical to the travis workflow. This is a bit tricky for me to test. There are some minor changes though. - Added MSRV of 1.51.0 - I just picked a version out of thin air here. - I could not see an easy way of preventing master branch runs for PRs that have passed so this should run on all. - For deploying to github pages I'm using a 3rd party action. It looks reasonable and just uses the default repo scoped token. Co-authored-by: Rob Young <rob@robyoung.digital> Co-authored-by: Adam Greig <adam@adamgreig.com>
|
bors cancel |
|
Canceled. |
|
Build succeeded: |
|
🎉 thanks @robyoung! |
|
Woop! Thank you for fixing it. I was totally stumped. |
I have tried to keep it functionally identical to the travis workflow. This is a bit tricky for me to test.
There are some minor changes though.