forked from fleek-network/lightning
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(hakari): add dev scripts for check and update
- Loading branch information
Showing
5 changed files
with
42 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
#!/bin/bash | ||
set -eou pipefail | ||
script_dir="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" | ||
|
||
set -x | ||
cargo build "$@" |
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 |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
set -eou pipefail | ||
|
||
dev/fmt-check | ||
dev/hakari-check | ||
dev/clippy | ||
dev/build | ||
dev/test |
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 @@ | ||
#!/bin/bash | ||
set -eou pipefail | ||
|
||
# Install cargo-binstall if necessary | ||
if ! cargo --list | grep -q binstall; then | ||
# The workspace toolchain is using rust 1.77.0, so we need to install a version of | ||
# cargo-binstall that is compatible with that. | ||
cargo install cargo-binstall --version "<1.7.0" | ||
fi | ||
|
||
# Install cargo-hakari using cargo binstall if necessary | ||
if ! cargo --list | grep -q hakari; then | ||
cargo binstall cargo-hakari --no-confirm --force | ||
fi | ||
|
||
set -x | ||
|
||
# Check that workspace-hack Cargo.toml is up-to-date | ||
cargo hakari generate --diff | ||
|
||
# Check that all workspace crates depend on workspace-hack | ||
cargo hakari manage-deps --dry-run |
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,18 @@ | ||
#!/bin/bash | ||
set -eou pipefail | ||
|
||
# Install cargo-binstall if necessary | ||
if ! cargo --list | grep -q binstall; then | ||
# The workspace toolchain is using rust 1.77.0, so we need to install a version of | ||
# cargo-binstall that is compatible with that. | ||
cargo install cargo-binstall --version "<1.7.0" | ||
fi | ||
|
||
# Install cargo-hakari using cargo binstall if necessary | ||
if ! cargo --list | grep -q hakari; then | ||
cargo binstall cargo-hakari --no-confirm --force | ||
fi | ||
|
||
set -x | ||
cargo hakari generate | ||
cargo hakari manage-deps |
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