Skip to content

Commit

Permalink
fix(rust-training-esp32c3) Rust training builder (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioGasquez authored Nov 17, 2023
1 parent 372d44d commit a7e8775
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rust-training-esp32c3/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ if [ -f ${HOME}/build-in/Cargo.toml ]; then
exit 1
;;
esac
cd espressif-trainings/${PROJECT_PATH}
cd std-training/${PROJECT_PATH}
cp ${HOME}/build-in/Cargo.toml Cargo.toml
fi

Expand Down
6 changes: 5 additions & 1 deletion rust-training-esp32c3/fetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

set -ef

export IDF_PATH="/home/esp/.espressif/frameworks/esp-idf"
export IDF_TOOLS_PATH=/home/esp/.espressif
. /home/esp/.espressif/frameworks/esp-idf/export.sh
export ESP_IDF_TOOLS_INSTALL_DIR=fromenv

echo "Compiling $1"

cd /home/esp/std-training/$1
Expand All @@ -17,5 +22,4 @@ if [ -f cfg.toml.example ]; then
sed -i 's/mqtt_host = "yourpc.local"/mqtt_host = "host"/g' cfg.toml
fi

$HOME/.cargo/bin/cargo clean
$HOME/.cargo/bin/cargo build --release

0 comments on commit a7e8775

Please sign in to comment.