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 to Github Actions #399

Closed
wants to merge 2 commits into from
Closed

Switch to Github Actions #399

wants to merge 2 commits into from

Conversation

emschwartz
Copy link
Member

@emschwartz emschwartz commented Oct 8, 2019

This switches the project to use Github actions instead of CircleCI and is an alternative to #398.

Advantages of Github Actions:

  • Very nice integration with Github to show problems without looking at terminal logs
  • Ability to import actions created by others
  • Free

Advantages of Circle:

  • Build takes 4-5 min instead of 8-11(note Github Actions is planning to support caching in November)
  • Allows SSH access to the machines it's building on to help debug issues

Resolves #292

What do you think?

@emschwartz emschwartz force-pushed the es-github-actions branch 3 times, most recently from 0a05cf6 to 03fd080 Compare October 8, 2019 19:54
@emschwartz emschwartz marked this pull request as ready for review October 8, 2019 20:19

jobs:
audit:
runs-on: ubuntu-latest
Copy link
Contributor

Choose a reason for hiding this comment

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

What are the options here? Is this the platform that we encourage people to use?

Copy link
Member Author

Choose a reason for hiding this comment

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

Virtual environment YAML workflow label
Windows Server 2019 windows-latest or windows-2019
Windows Server 2016 R2 windows-2016
Ubuntu 18.04 ubuntu-latest or ubuntu-18.04
Ubuntu 16.04 ubuntu-16.04
macOS X Mojave 10.14 macOS-latest or macOS-10.14

Source

Not necessarily, but it's what we were building on Circle already. If we want to support others, we can add steps to build it on other platforms too (as a separate PR)

@@ -0,0 +1,22 @@
name: Build and Test
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a semantic reason why the name is at the top for this one?

crates/interledger-ccp/src/server.rs Show resolved Hide resolved
Copy link
Member

@gakonst gakonst left a comment

Choose a reason for hiding this comment

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

If we end up going with this let's not forget to remove the Circle job which is currently failing with a not configured msg.

Also it looks like the build & test jobs are indeed taking much more time: https://github.com/interledger-rs/interledger-rs/pull/399/checks?check_run_id=258562730

@@ -0,0 +1,27 @@
on:
pull_request:
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't cargo audit be run on: push, instead of on: pull_request?

steps:
- uses: actions/checkout@v1
- id: component
uses: actions-rs/components-nightly@v1
Copy link
Member

@gakonst gakonst Oct 14, 2019

Choose a reason for hiding this comment

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

Should we be using nightly here? Just being conservative in case nightly clippy tells us to do something that works in nightly, but does not work on stable

@gakonst
Copy link
Member

gakonst commented Oct 14, 2019

image

Wonder why Build and Test appears twice, once with "build" and once with "clippy" next to it?

Copy link
Collaborator

@dora-gt dora-gt left a comment

Choose a reason for hiding this comment

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

Can't we use SSH for the host with GitHub actions? I think that is a huge disadvantage. We would have difficulties in investigating some errors in the CI process itself.

So personally I'm not so in favor of GitHub actions so far though the test results look very well-integrated, that is awesome.

@dora-gt dora-gt mentioned this pull request Oct 14, 2019
@emschwartz
Copy link
Member Author

Since this is quite a bit slower than Circle, I think we should hold off on this switch for now. We can revisit this later when they add caching

@emschwartz emschwartz closed this Oct 16, 2019
@gakonst gakonst mentioned this pull request Nov 29, 2019
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.

Try out Github actions
4 participants