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

GitHub actions #2190

Merged
merged 5 commits into from
Jan 7, 2020
Merged

GitHub actions #2190

merged 5 commits into from
Jan 7, 2020

Conversation

kinnison
Copy link
Contributor

@kinnison kinnison commented Jan 7, 2020

This PR introduces github actions for everything and removes the travis and appveyor configurations.

It needs careful checking to ensure everything is right.

With the switch away from Travis to Github actions, the scripts
we use for CI have to be updated.

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
These templates are for Github Actions Workflows and will be processed
by a script for use.  Do not edit workflows in .github/workflows but
rather edit these templates and then run the script.

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
In order to cope with our current release process, these workflows
have to be generated by scripting.  If you need to change the
workflows edit the YAML alongside this script and then run the
script to regenerate the .github/workflows files.

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
This completes the initial transition to Github Actions by
removing appveyor and travis configurations and the last vestiges
of mentions of it in the ci tree.

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
These are the workflows generated by running:

sh ci/actions-templates/gen-workflows.sh

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
@kinnison kinnison merged commit 3008ac7 into rust-lang:master Jan 7, 2020
@kinnison kinnison deleted the github-actions branch January 7, 2020 16:01
jobs:
check:
name: Checks
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.

The name and file name claims to check on centos. This metadata says it checks on ubuntu. I think that this is confusing.

Copy link
Contributor

Choose a reason for hiding this comment

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

Or if it does check on centos a comment would help

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The centos check is done in a docker in one of the actions. fmt, clippy, and shellcheck are not done on centos.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If you want to patch the texts to make things nicer, please file a PR, this was the culmination of two days of frustration, so it's not the prettiest it could be yet :D

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not entirely sure I understand it all yet. What is a 'centos check' vs say a shellcheck run on centos?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the centos check is the docker run where we validate that rustup-init.sh still works on centos 6 which is the oldest platform (oldest curl etc) which we support.

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