Skip to content

Commit

Permalink
CI: Switch to dir2uf2 0.0.4 for fs autodetect.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gadgetoid committed Jun 19, 2024
1 parent a4d877c commit 88f21e4
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/micropython.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,9 @@ jobs:
- name: Badger 2040
shortname: badger2040
board: PIMORONI_BADGER2040
# 0x10000000 + (2*1024*1024) - (1408*1024)
dir2uf2_fs_start: 269090816
dir2uf2_fs_size: 1441792
- name: Badger 2040 W
shortname: badger2040w
board: PIMORONI_BADGER2040W
# 0x10000000 + (2*1024*1024) - (848*1024)
dir2uf2_fs_start: 269664256
dir2uf2_fs_size: 868352

env:
RELEASE_FILE: pimoroni-${{matrix.shortname}}-${{github.event.release.tag_name || github.sha}}-micropython.uf2
Expand Down Expand Up @@ -123,7 +117,7 @@ jobs:
- uses: actions/checkout@v4
with:
repository: gadgetoid/dir2uf2
ref: v0.0.1
ref: v0.0.4
path: dir2uf2

# HACK: Patch startup overclock into Pico SDK
Expand Down Expand Up @@ -176,7 +170,7 @@ jobs:
shell: bash
run: |
python3 -m pip install littlefs-python==0.4.0
./dir2uf2/dir2uf2 --fs-start ${{matrix.dir2uf2_fs_start}} --fs-size ${{matrix.dir2uf2_fs_size}} --append-to micropython/ports/rp2/build/${{env.RELEASE_FILE}} --manifest ${{env.BOARD_DIR}}/uf2-manifest.txt --filename with-badger-os.uf2 ${{env.BADGER_OS_DIR}}/
./dir2uf2/dir2uf2 --append-to micropython/ports/rp2/build/${{env.RELEASE_FILE}} --manifest ${{env.BOARD_DIR}}/uf2-manifest.txt --filename with-badger-os.uf2 ${{env.BADGER_OS_DIR}}/
- name: Store .uf2 as artifact
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 88f21e4

Please sign in to comment.