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

[Merged by Bors] - Xtask CI #1387

Closed
wants to merge 6 commits into from
Closed

[Merged by Bors] - Xtask CI #1387

wants to merge 6 commits into from

Conversation

CleanCut
Copy link
Member

@CleanCut CleanCut commented Feb 3, 2021

This PR is easiest to review commit by commit.

Followup on #1309 (comment)

  • Switch from a bash script to an xtask rust workspace member.
    • Results in ~30s longer CI due to compilation of the xtask itself
    • Enables Bevy contributors on any platform to run cargo ci to run linting -- if the default available Rust is the same version as on CI, then the command should give an identical result.
  • Use the xtask from official CI so there's only one place to update.
  • Bonus: Run clippy on the entire workspace (existing CI setup was missing the --workspace flag
    • Clean up newly-exposed clippy errors

#1388 builds on this to clean up newly discovered clippy errors -- I thought it might be nicer as a separate PR. Nope, merged it into this one so CI would pass.

@CleanCut
Copy link
Member Author

CleanCut commented Feb 3, 2021

❓ Odd, this works for me locally with both stable and nightly...but CI doesn't seem to find the .cargo/config file. I'll look into this tomorrow night unless someone beats me to it. Update: I ended up punting and running the task without using the alias in CI.

tools/ci/Cargo.toml Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
@CleanCut CleanCut mentioned this pull request Feb 4, 2021
tools/ci/Cargo.toml Outdated Show resolved Hide resolved
@alice-i-cecile alice-i-cecile added the A-Build-System Related to build systems or continuous integration label Feb 17, 2021
@CleanCut CleanCut added C-Feature A new feature, making something new possible and removed C-Feature A new feature, making something new possible labels Feb 18, 2021
Base automatically changed from master to main February 19, 2021 20:44
@cart
Copy link
Member

cart commented Feb 22, 2021

I dig this. I'm definitely looking forward to consistent (and easy to run) ci validation. Resolve merge conflicts and we're good to go!.

@CleanCut
Copy link
Member Author

✅ Resolved

@cart
Copy link
Member

cart commented Feb 22, 2021

bors r+

bors bot pushed a commit that referenced this pull request Feb 22, 2021
This PR is easiest to review commit by commit.

Followup on #1309 (comment)

- [x] Switch from a bash script to an xtask rust workspace member.
  - Results in ~30s longer CI due to compilation of the xtask itself
  - Enables Bevy contributors on any platform to run `cargo ci` to run linting -- if the default available Rust is the same version as on CI, then the command should give an identical result.
- [x] Use the xtask from official CI so there's only one place to update.
- [x] Bonus: Run clippy on the _entire_ workspace (existing CI setup was missing the `--workspace` flag
  - [x] Clean up newly-exposed clippy errors 

~#1388 builds on this to clean up newly discovered clippy errors -- I thought it might be nicer as a separate PR.~  Nope, merged it into this one so CI would pass.

Co-authored-by: Carter Anderson <mcanders1@gmail.com>
@bors bors bot changed the title Xtask CI [Merged by Bors] - Xtask CI Feb 22, 2021
@bors bors bot closed this Feb 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Build-System Related to build systems or continuous integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants