WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 60ebb3e

Browse files
Misc fixes to redvision build script
1 parent 20098b5 commit 60ebb3e

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/workflows/ports_sparkfun.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ jobs:
1313
runs-on: ubuntu-latest
1414
defaults:
1515
run:
16-
working-directory: 'micropython repo'
16+
working-directory: 'micropython'
1717
steps:
1818
- uses: actions/checkout@v4
1919
with:
20-
path: 'micropython repo'
20+
path: 'micropython'
2121
- name: Install RP2 package
2222
run: source tools/ci.sh && ci_rp2_setup
2323
# - name: Install mimxrt package # Currently redundant since it does the same arm setup as rp2, but in future if these diverge, uncomment this...
@@ -34,7 +34,7 @@ jobs:
3434
- name: Upload Release Assets
3535
uses: shogo82148/actions-upload-release-asset@v1
3636
with:
37-
asset_path: "micropython repo/sparkfun_release/*"
37+
asset_path: "micropython/sparkfun_release/*"
3838
github_token: ${{ secrets.GITHUB_TOKEN }}
3939
upload_url: ${{ github.event.release.upload_url }}
4040

sparkfun_build.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,17 +315,23 @@ function build_micropython_red_vision_rp2 {
315315
# https://stackoverflow.com/a/246128/4783963
316316
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
317317
if [ -n "$GITHUB_WORKSPACE" ]; then
318-
export PICO_SDK_PATH="$GITHUB_WORKSPACE/lib/pico-sdk"
318+
export PICO_SDK_PATH="$GITHUB_WORKSPACE/micropython/lib/pico-sdk"
319319
else
320320
export PICO_SDK_PATH="$SCRIPT_DIR/lib/pico-sdk"
321321
fi
322322

323323
# Clone the Red Vision submodule
324324
git submodule update --init --recursive lib/red_vision
325325

326+
# Clone the Pico SDK submodule
327+
git submodule update --init --recursive lib/pico-sdk
328+
326329
# Build OpenCV
327330
make -C lib/red_vision/micropython-opencv PLATFORM=rp2350 --no-print-directory ${MAKEOPTS}
328331

332+
# install freezefs if not already installed
333+
pip install freezefs
334+
329335
# Archive the examples directory
330336
python3 -m freezefs lib/red_vision/red_vision_examples lib/red_vision/extract_red_vision_examples.py --on-import=extract --compress --overwrite always
331337

0 commit comments

Comments
 (0)