-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Optimize CI caching and path filtering #2340
Merged
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
748000d
fix docs.rs logo url
Madoshakalaka f0bc0aa
fix formatting
Madoshakalaka ff29dcc
bump docusaurus to beta14
Madoshakalaka b8a7196
bring back the semicolon
Madoshakalaka 39bb577
cache npm for build-website workflow
Madoshakalaka ef19cc4
Add prebuilt cargo-sweep binary
Madoshakalaka 5f590a8
Optimize website CI
Madoshakalaka 5591ad8
per-job caching, stale cache invalidation
Madoshakalaka 8e55e96
Merge branch 'master' into ci-optimization
Madoshakalaka c09cfca
extract fmt job as workflow
Madoshakalaka 9700bed
fix typo in cargo-sweep executable path
Madoshakalaka 36755af
chmod +x
Madoshakalaka a0700b6
rename to main-checks.yml
Madoshakalaka c107369
--exclude has to be used with --workspace
Madoshakalaka e38f422
revert accidental revert
Madoshakalaka 6d1fab8
Switch from cargo-sweep to rust-cache
Madoshakalaka b852f79
link to this related issue of extra brackets
Madoshakalaka 7961a2f
remove blanks
Madoshakalaka 3b8f182
exclude website-test in main tests
Madoshakalaka b79a3ac
rename suffixes from .mdx to .md
Madoshakalaka 43c97f2
replace actions-rs/install with wasm-pack-action
Madoshakalaka bfea80a
shouldn't ignore .md because website snippet tests depends on .md fil…
Madoshakalaka 1b9a7b0
Merge branch 'master' into ci-optimization
Madoshakalaka e60ba6b
Merge remote-tracking branch 'matt/ci-optimization' into ci-optimization
Madoshakalaka c77cb78
restore accidentally deleted mdx files
Madoshakalaka 7b7c166
include tools/website-test (for real this time)
Madoshakalaka 94a5619
Merge branch 'master' into ci-optimization
Madoshakalaka File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: cargo fmt | ||
on: | ||
pull_request: | ||
paths: | ||
- "**/*.rs" | ||
push: | ||
branches: [master] | ||
paths: | ||
- "**/*.rs" | ||
|
||
jobs: | ||
format: | ||
name: cargo fmt | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
override: true | ||
profile: minimal | ||
components: rustfmt | ||
|
||
- name: Run fmt | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: fmt | ||
args: --all -- --check |
File renamed without changes.
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
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love this.
It inspired me to make actions that add labels that i have been adding manually. (They are needed for changelog generation)