Skip to content

Commit 6a1d922

Browse files
committed
Add archiving of Red Vision examples
1 parent ac6bef5 commit 6a1d922

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/build_red_vision.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ function build_micropython_red_vision {
1616
# Set Pico SDK path to $GITHUB_WORKSPACE/micropython/lib/pico-sdk if $GITHUB_WORKSPACE is set, otherwise use the current directory
1717
if [ -n "$GITHUB_WORKSPACE" ]; then
1818
export PICO_SDK_PATH="$GITHUB_WORKSPACE/micropython/lib/pico-sdk"
19-
# Ensure we're in the micropython directory
20-
cd micropython
2119
else
2220
export PICO_SDK_PATH=$(dirname "$0")/lib/pico-sdk
2321
fi
@@ -34,6 +32,9 @@ function build_micropython_red_vision {
3432
# Build OpenCV
3533
make -C lib/red_vision/micropython-opencv PLATFORM=rp2350 --no-print-directory ${MAKEOPTS}
3634

35+
# Archive the examples directory
36+
python3 -m freezefs lib/red_vision/red_vision_examples lib/red_vision/extract_red_vision_examples.py --on-import=extract --compress --overwrite always
37+
3738
# Build firmware
3839
make -C lib/red_vision PORT_DIR=~/micropython/ports/rp2 BOARD=SPARKFUN_XRP_CONTROLLER --no-print-directory ${MAKEOPTS}
3940

0 commit comments

Comments
 (0)