Commit Graph

128 Commits

Author SHA1 Message Date
Phil Howard 9aaed0af03 CI: TEST: Add 1023/1024 split Pico build. 2024-04-12 14:07:41 +01:00
Phil Howard 3b1c8a958a CI: Attempt to catch flash overflow.
Using a custom patch against MicroPython's CMakeLists.txt this will
optionally use a memmap_mp.ld file from the *board* directory and
allow us to check if the allocated app flash overflows.

Linker scripts need configured on a per board basis.
2024-04-11 17:08:55 +01:00
Phil Howard b9cdcf1e93 CI: Print memory usage.
Add a patch for CMakeLists.txt which adds -Wl,--print-memory-usage so
we can get at least some useful information about which builds are
running close to the limits.
2024-04-11 17:08:55 +01:00
Phil Howard 8fc8a8ee06 CI: Rename tiny2040 to tiny2040_8mb.
It was not super obvious that this build is specific to the 8mb
version of Tiny 2040.
2024-04-11 17:01:21 +01:00
Phil Howard 3bfb548686 CI: Continue other MicroPython builds if one fails.
In almost all cases it's more useful to know if a given build
is likely to succeed rather than have *everything* fail. This
change adjusts the workflow to allow other builds to continue
if one fails.
2024-04-11 17:01:09 +01:00
Phil Howard 9c5b529754 CI: Update actions to fix nodejs deprecation warnings. 2024-04-08 12:47:14 +01:00
Phil Howard ad518064e9 CI: Bump MicroPython to v1.22.2. 2024-02-27 16:43:47 +00:00
Phil Howard bd6bd289d1 CI: Try to ccache mpy-cross 2024-01-08 11:20:08 +00:00
Phil Howard b6953c25a1 CI: Tidy up build steps 2024-01-08 11:20:08 +00:00
Phil Howard b5df0ac277 CI: Setup version env, patch skipped message. 2024-01-08 11:20:08 +00:00
Phil Howard 116bbb1296 CI: Use arm-none-eabi-gcc-action
Speeds up toolchain install (when cached) to ~7s an decouples us from the runner OS ARM GCC version.
2024-01-08 11:20:08 +00:00
Phil Howard 6154116662 CI: Move build steps to a bash script. 2024-01-08 11:20:04 +00:00
Phil Howard 3bac13fcc8 CI: Bump MicroPython to v1.22.1. 2024-01-08 09:46:43 +00:00
Phil Howard e691628723 CI: Bump MicroPython to v1.21.0.
I swear I had no idea this was imminent.

Changes: 856e08b193...v1.21.0
2023-10-06 13:55:29 +01:00
Phil Howard 08ce4fbb81 MicroPython: Update boards to match upstream naming conventions. 2023-10-06 13:55:29 +01:00
Phil Howard 20de8a3198 CI: Bump MicroPython to 6f76d1c.
Changes: 856e08b193...6f76d1c7fa
2023-10-06 13:55:29 +01:00
Phil Howard 090ce9d2c6 MicroPython: Enable Bluetooth support for Pico W builds. 2023-06-15 11:58:41 +01:00
ZodiusInfuser aabe789f21 Initial setup for StellarUnicorn build 2023-05-30 10:32:25 +01:00
Phil Howard 0a2e099886 CI: Add workflow version to cache key. 2023-05-18 11:55:21 +01:00
Phil Howard 7951ef9668 CI: Hack: Patch MicroPython to remove exception handling.
Force "-specs=nano.specs" on MicroPython builds and disable various stack unwinding and exception handling features for C++ modules.
2023-05-04 14:09:23 +01:00
Phil Howard 8648597134 CI: Clean ports/rp2/modules before each build. 2023-05-03 17:21:18 +01:00
Phil Howard e90ae33a99 CI: All MicroPython builds use local board dirs.
Simplify the build to use *only* local (to pimoroni-pico) copies of MicroPython board config dirs.

This allows us to specify MICROPY_C_HEAP_SIZE (and potentially other options) in board config rather than at build-time.
2023-05-02 16:21:11 +01:00
Phil Howard dd4347dac3 CI: Grab only necessary modules.
Reduces the MicroPython cache from ~879MB down to ~187MB for a reduction of around 6,920MB across builds.
2023-05-02 15:35:02 +01:00
Phil Howard 22a659a559 CI: Set C heap size.
This broke our release v1.20.0 since we clearly use malloc somewhere. Oops.

Set the heap size to get us a working release.
2023-04-28 16:09:41 +01:00
Phil Howard 70f133dd62 CI: Single-job builds to avoid #761. 2023-04-27 16:10:18 +01:00
Phil Howard c885789ada CI: Bump to MicroPython v1.20.0. 2023-04-27 15:04:06 +01:00
Phil Howard 8e0fe155c5 CI: Fix patch revert hack. 2023-04-27 15:03:59 +01:00
Phil Howard c25de67247 CI: Set MICROPY_GIT_TAG and MICROPY_GIT_HASH for #752. 2023-04-26 10:36:39 +01:00
Phil Howard 1d003a80c2 CI: Revert lib/pico-sdk before build.
Revert lib/pico-sdk back to default before building.

Avoids a patched tree (fetched via the cache) leaking into or breaking subsequent builds.
2023-04-24 11:46:02 +01:00
Phil Howard a19f5943c3 CI: Use name instead of board for build dir.
Disambiguate build dir between multiple firmwares that use the same board, but different config.

Avoids cryptic errors caused by incompatible build artifacts leaking into other builds via the MicroPython cache.
2023-04-24 11:36:21 +01:00
Phil Howard 3a35013667 CI: Apply patch from MicroPython root dir. 2023-03-28 22:24:11 +01:00
Phil Howard cce02feabd CI: Set MICROPY_BOARD_DIR in CI workflow.
Move out of the USER_C_MODULES .cmake file.
2023-03-28 22:04:41 +01:00
Phil Howard aeca08f275 CI: Restore Tufty 2040 board def.
Set the PICO_BOARD_HEADER_DIRS environment variable as per https://github.com/raspberrypi/pico-sdk/blob/master/src/boards/generic_board.cmake

Add our local search path alongside the existing Pico SDK boards dir.
2023-03-28 21:25:22 +01:00
Phil Howard d69797689a CI: Reduce repetition in product names. 2023-03-28 21:06:07 +01:00
Phil Howard af352ff33f CI: Remove repetition of Build from build names. 2023-03-28 21:05:11 +01:00
Phil Howard 883d751f52 CI: Switch to MICROPY_BOARD_DIR and simplify fixups. 2023-03-28 21:05:05 +01:00
Phil Howard acf0e568bd CI: Tidyup and combine MicroPython builds. 2023-03-28 14:16:40 +01:00
Phil Howard 569bcadcae CI: Bump MicroPython to 38e7b84.
Diff 05bb26010e...38e7b842c6
2023-03-27 11:24:01 +01:00
Phil Howard 587588dca5 CI: Bump MicroPython to 05bb260.
Changes: 294098d28e...05bb26010e
2023-03-17 11:22:56 +00:00
Phil Howard bb004e03a6 Badger: Deprecate firmware builds.
Remove builds for Badger 2040 and Badger 2040 W, these now live at: https://github.com/pimoroni/badger2040/
2023-03-17 11:18:45 +00:00
Phil Howard 52f9c33874 CI: Separate CCache cache for Pico/PicoW. 2023-02-23 17:41:21 +00:00
Phil Howard 85881db00c CI: Don't include debug .elf files in artifacts. 2023-02-21 13:28:20 +00:00
Phil Howard 1b2dae45d3 Cosmic Unicorn: Add config and workflow for .uf2. 2023-02-21 12:52:46 +00:00
Phil Howard fd2f285f16 CI: Bump MicroPython to latest commit post Pico SDK 1.5.0 bump. 2023-02-20 10:56:39 +00:00
Phil Howard 25efb91eae CI: Upload Badger 2040 W examples .uf2 to release files. 2023-02-16 15:42:08 +00:00
Phil Howard 3f0efa9765 Badger2040W/CI: Bump MicroPython to 35524a6. 2023-02-10 22:15:09 +00:00
Phil Howard 16e99a5a89 Badger2040W: Bump MicroPython to 67fac4e. 2023-02-10 22:15:09 +00:00
Phil Howard d1646e5d76 CI: Badger2040W: Fix deprecation warnings. 2023-02-10 22:12:02 +00:00
Phil Howard ac2da23c96 Badger2040W: Append filesystem. 2023-02-10 22:12:02 +00:00
Phil Howard d25324d6c7 MicroPython: Add Badger2040W firmware build. 2023-02-10 22:12:02 +00:00