Skip to content

Commit 0274955

Browse files
committed
wip: update CI
1 parent 3dd5651 commit 0274955

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

.github/workflows/build-esp32-rust.yaml

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,11 @@ jobs:
7777
cargo espflash save-image --chip ${CHIP} --release --merge --skip-padding spooky-maze-${FIRMWARE_DIR}.bin
7878
7979
# If skip-wokwi-test.toml exists, skip Wokwi test
80-
if [ -f "skip-wokwi-test.toml" ]; then
81-
echo "Skipping Wokwi test for $FIRMWARE_DIR"
82-
else
83-
/home/esp/bin/wokwi-cli --timeout 5000 --timeout-exit-code 0 --screenshot-part "lcd1" --screenshot-time 5000 --screenshot-file "screenshot.png" "."
84-
#convert screenshot.png -rotate 90 screenshot.png
85-
fi
80+
#if [ -f "skip-wokwi-test.toml" ]; then
81+
# echo "Skipping Wokwi test for $FIRMWARE_DIR"
82+
#else
83+
# /home/esp/bin/wokwi-cli --timeout 5000 --timeout-exit-code 0 --screenshot-part "lcd1" --screenshot-time 5000 --screenshot-file "screenshot.png" "."
84+
#fi
8685
8786
asset_path="/home/esp/project/${FIRMWARE_DIR}/spooky-maze-${FIRMWARE_DIR}.bin"
8887
asset_name="spooky-maze-${FIRMWARE_DIR}-${{ github.event.inputs.release_tag }}.bin"
@@ -94,16 +93,16 @@ jobs:
9493
--url "${{ needs.get_release.outputs.upload_url }}?name=${asset_name}"
9594
9695
# If skip-wokwi-test.toml exists, skip Wokwi test
97-
if [ ! -f "skip-wokwi-test.toml" ]; then
98-
asset_path="/home/esp/project/${FIRMWARE_DIR}/screenshot.png"
99-
asset_name="spooky-maze-${FIRMWARE_DIR}-${{ github.event.inputs.release_tag }}.png"
100-
curl \
101-
--request POST \
102-
--header "authorization: Bearer $GITHUB_TOKEN" \
103-
--header "Content-Type: application/octet-stream" \
104-
--data-binary "@$asset_path" \
105-
--url "${{ needs.get_release.outputs.upload_url }}?name=${asset_name}"
106-
fi
96+
#if [ ! -f "skip-wokwi-test.toml" ]; then
97+
# asset_path="/home/esp/project/${FIRMWARE_DIR}/screenshot.png"
98+
# asset_name="spooky-maze-${FIRMWARE_DIR}-${{ github.event.inputs.release_tag }}.png"
99+
# curl \
100+
# --request POST \
101+
# --header "authorization: Bearer $GITHUB_TOKEN" \
102+
# --header "Content-Type: application/octet-stream" \
103+
# --data-binary "@$asset_path" \
104+
# --url "${{ needs.get_release.outputs.upload_url }}?name=${asset_name}"
105+
#fi
107106
108107
cd -
109108
done

0 commit comments

Comments
 (0)