From 7e3a0f801788d5b9ebcd88f9a034173b8b119b20 Mon Sep 17 00:00:00 2001 From: Phil Howard Date: Wed, 17 Jul 2024 09:41:15 +0100 Subject: [PATCH] CI: Update dir2uf2 and use --fs-compact. Use the --fs-compact option to shrink the with-examples .uf2 to the size of the files rather than the full user flash. --- .github/workflows/micropython.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/micropython.yml b/.github/workflows/micropython.yml index 1d61ec1..06417d9 100644 --- a/.github/workflows/micropython.yml +++ b/.github/workflows/micropython.yml @@ -117,7 +117,7 @@ jobs: - uses: actions/checkout@v4 with: repository: gadgetoid/dir2uf2 - ref: v0.0.4 + ref: v0.0.5 path: dir2uf2 # HACK: Patch startup overclock into Pico SDK @@ -168,8 +168,8 @@ jobs: - name: Append Filesystem shell: bash run: | - python3 -m pip install littlefs-python==0.4.0 - ./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}}/ + python3 -m pip install littlefs-python==0.12.0 + ./dir2uf2/dir2uf2 --fs-compact --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