-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Share a build cache between CI jobs.
Let's not do the work twice.
- Loading branch information
1 parent
0ffd207
commit a51338a
Showing
4 changed files
with
31 additions
and
44 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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: format | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
cargo-fmt: | ||
name: check formatting with cargo fmt | ||
runs-on: ubuntu-latest | ||
env: | ||
CARGO_NET_GIT_FETCH_WITH_CLI: "true" | ||
RUSTFLAGS: "-D warnings" # fail on warnings | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: install tools | ||
run: | | ||
rustup show | ||
- name: check formatting | ||
run: | | ||
cargo fmt --all --check |
This file was deleted.
Oops, something went wrong.
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