From 7c4a0274c0e834cb06cdf1c6ac5c7f3774ef3eda Mon Sep 17 00:00:00 2001 From: Homin Lee Date: Mon, 16 Dec 2024 22:15:45 +0900 Subject: [PATCH] fix ci --- ci-esp.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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