-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(ci): improve rustfmt perf and cleanup (#2779)
- Install nightly through moonrepo, so it'll be cached. - Always run rustfmt on --all for both push/pull. It doesn't compile anything and runs on `--all` in a few seconds. Benchmark: seems to reduce time from ~15 seconds to ~5 seconds, and logs indeed show that nothing is installed, only rustfmt is run. Unrelated: remove clippy/rustfmt from the components in rust-toolchain.toml, when using the `default` profile they are already included. Co-Authored-By: Gilad Chase <[email protected]>
- Loading branch information
1 parent
95f04ef
commit 4ccbf3a
Showing
6 changed files
with
27 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
name: Bootsrap rust installation | ||
name: Bootstrap rust installation | ||
description: Setup rust environment and its components, also caching the build results. | ||
|
||
inputs: | ||
extra_rust_toolchains: | ||
description: "Extra toolchains to install, but aren't used by default" | ||
required: false | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
|
@@ -9,5 +14,7 @@ runs: | |
cache-base: main(-v[0-9].*)? | ||
inherit-toolchain: true | ||
bins: [email protected], cargo-machete | ||
# Install additional non-default toolchains (for rustfmt for example), NOP if input omitted. | ||
channel: ${{ inputs.extra_rust_toolchains }} | ||
env: | ||
RUSTFLAGS: "-C link-arg=-fuse-ld=lld" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[toolchain] | ||
channel = "1.83" | ||
components = ["clippy", "rustc-dev", "rustfmt"] | ||
components = ["rustc-dev"] | ||
profile = "default" | ||
targets = ["x86_64-unknown-linux-gnu"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.