diff --git a/ci-esp.sh b/ci-esp.sh index 62af45b..2065026 100755 --- a/ci-esp.sh +++ b/ci-esp.sh @@ -5,6 +5,14 @@ set -euxo pipefail # build cargo-embassy cargo build --release +# esp toolchain +if [ "${1-""}" = "--install-esp" ]; then + cargo install espup + espup install +else + echo "Skipping ESP toolchain installation." +fi + test_dir="/tmp/ci" # create test directory @@ -22,14 +30,6 @@ $cwd/target/release/cargo-embassy embassy init test-esp32c3 --chip esp32c3 $cwd/target/release/cargo-embassy embassy init test-esp32s2 --chip esp32s2 $cwd/target/release/cargo-embassy embassy init test-esp32s3 --chip esp32s3 -# esp toolchain -if [ "${1-""}" = "--install-esp" ]; then - cargo install espup - espup install -else - echo "Skipping ESP toolchain installation." -fi - . $HOME/export-esp.sh # compile