2023-09-01 21:01:15 +08:00
|
|
|
# This script runs all `burn` checks locally. It may take around 15 minutes on
|
|
|
|
# the first run.
|
2023-08-15 05:43:21 +08:00
|
|
|
#
|
|
|
|
# Run `run-checks` using this command:
|
|
|
|
#
|
2023-11-03 02:30:07 +08:00
|
|
|
# ./run-checks.ps1 environment
|
2023-08-15 05:43:21 +08:00
|
|
|
#
|
|
|
|
# where `environment` can assume **ONLY** the following values:
|
|
|
|
#
|
|
|
|
# - `std` to perform checks using `libstd`
|
2024-08-06 02:32:17 +08:00
|
|
|
# - `no-std` to perform checks on an embedded environment using `libcore`
|
2023-08-17 06:44:16 +08:00
|
|
|
# - `typos` to check for typos in the codebase
|
2023-09-01 21:28:58 +08:00
|
|
|
# - `examples` to check the examples compile
|
|
|
|
# If no `environment` value has been passed, run all checks except examples.
|
2023-08-17 06:44:16 +08:00
|
|
|
|
|
|
|
# Exit if any command fails
|
|
|
|
$ErrorActionPreference = "Stop"
|
2023-08-15 05:43:21 +08:00
|
|
|
|
|
|
|
# Run binary passing the first input parameter, who is mandatory.
|
|
|
|
# If the input parameter is missing or wrong, it will be the `run-checks`
|
|
|
|
# binary which will be responsible of arising an error.
|
2023-09-06 20:22:00 +08:00
|
|
|
cargo xtask run-checks $args[0]
|