-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: use fixed nightly, add scheduled workflow with latest nightly
- Loading branch information
1 parent
1e0987f
commit f2e9ece
Showing
4 changed files
with
31 additions
and
12 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,31 @@ | ||
set shell := ["bash", "-uc"] | ||
|
||
check: | ||
@echo "using toolchain $RUSTUP_TOOLCHAIN" | ||
cargo check --tests --all-features | ||
|
||
fmt: | ||
cargo +nightly fmt | ||
@echo "using toolchain $RUSTUP_TOOLCHAIN" | ||
cargo fmt | ||
|
||
fmt_check: | ||
cargo +nightly fmt --check | ||
@echo "using toolchain $RUSTUP_TOOLCHAIN" | ||
cargo check | ||
|
||
lint: | ||
@echo "using toolchain $RUSTUP_TOOLCHAIN" | ||
cargo clippy --no-deps --all-features -- -D warnings | ||
|
||
test: | ||
@echo "using toolchain $RUSTUP_TOOLCHAIN" | ||
cargo test --all-features | ||
|
||
fix: | ||
@echo "using toolchain $RUSTUP_TOOLCHAIN" | ||
cargo fix --allow-dirty --allow-staged --all-features | ||
|
||
doc: | ||
@echo "using toolchain $RUSTUP_TOOLCHAIN" | ||
RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --all-features | ||
|
||
all: fmt check lint test doc |
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,2 +1,2 @@ | ||
[toolchain] | ||
channel = "nightly" | ||
channel = "nightly-2023-10-21" |