Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
Add back rustfmt, with catch to print error if it fails
Browse files Browse the repository at this point in the history
  • Loading branch information
MabezDev committed Jan 11, 2024
1 parent bb88e26 commit 03bc1a7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/verify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ perform_checks() {

# Generate templates
cargo generate \
-a \
--path $template_path --name=test-complex --silent --vcs=none \
-d advanced=true -d ci=false -d devcontainer=false -d wokwi=false \
-d alloc=true -d wifi=true -d mcu=$1

cargo generate \
-a \
--path $template_path --name=test-simple --silent --vcs=none \
-d advanced=false -d mcu=$1

Expand Down
9 changes: 8 additions & 1 deletion post-script.rhai
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
if variable::get("wifi"){
print("\nFor more information and examples of esp-wifi showcasing Wifi,BLE and ESP-NOW, see https://github.com/esp-rs/esp-wifi/blob/main/examples.md\n");
print("\nFor more information and examples of esp-wifi showcasing Wifi,BLE and ESP-NOW, see https://github.com/esp-rs/esp-wifi/blob/main/esp-wifi/docs/examples.md\n");
}

if variable::get("ci") {
file::rename(".github/rust_ci.yml", ".github/workflows/rust_ci.yml");
}


try {
system::command("cargo", ["fmt"]);
} catch {
print("Failed to run rustfmt, please ensure rustfmt is installed and in your PATH variable.");
}

0 comments on commit 03bc1a7

Please sign in to comment.