forked from FuelLabs/sway
-
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.
Move build all examples (FuelLabs#1398)
* Move build-all-examples to scripts * Remove print * Reorder scripts/build-all-examples alphabetically * use clap for build-all-examples * Cargo.lock update * Take paths for build-all-examples * Remove unused import * Rename build-all-examples -> build-examples * Update ci.yml with new build-examples command * Update Cargo.lock * Add help text for build-examples script * Use --all and --paths args to differentiate between building all and specific paths * build-examples --all -> --all-examples to make it even more explicit * Better description for script * Refactor script * Rename build-examples to examples-checker * update Cargo.toml and Cargo.lock with new script name * Update CI workflow * Better usage of Path * Remove redundant builds, add dedicated fmt job * Remove usage of success bool in run_forc_command * Use [] instead of &Vec<> * handle print_summary failure as error instead of exit(1) Co-authored-by: bing <[email protected]>
- Loading branch information
bing
and
bing
authored
May 2, 2022
1 parent
1d149d8
commit b89ec66
Showing
7 changed files
with
226 additions
and
119 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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[package] | ||
name = "examples-checker" | ||
description = "Runs `forc build` or `forc fmt --check` on Sway projects specified by paths or within Sway `examples` directory." | ||
version = "0.0.0" | ||
edition = "2021" | ||
publish = false | ||
|
||
[dependencies] | ||
anyhow = "1.0.41" | ||
clap = { version = "3.1", features = ["env", "derive"] } |
Oops, something went wrong.