forked from micropython/micropython
-
Notifications
You must be signed in to change notification settings - Fork 208
Merge upstream micropython master (for m_tracked_realloc and other 1.25-1.29 changes) #106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
andrewleech
wants to merge
2,099
commits into
lvgl:master
Choose a base branch
from
andrewleech:update/micropython_master-usermod
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2099 commits
Select commit
Hold shift + click to select a range
cda49be
py/objlist,stm32,esp32: Add helpers for creating/ensuring list args.
projectgus 6768325
stm32: Add can_get_state() function, use from pyb.CAN.
projectgus 0225704
extmod,docs: Add generic machine.CAN helpers & docs.
projectgus 6f835b3
stm32: Implement index-aware STM32G4 FDCAN HAL TX functions.
projectgus 6cac2d2
stm32: Add machine.CAN implementation.
projectgus c802a13
stm32: Fix printing value of pyb.CAN auto_restart on FDCAN hardware.
projectgus e74f3d5
stm32/timer: Use HAL macro to determine if TIM is 32-bit.
dpgeorge 2d3241f
stm32/timer: Expose functions to convert id to reg and enable TIM clock.
dpgeorge dbe6a11
stm32/machine_pwm: Implement machine.PWM class.
dpgeorge 094c268
stm32/machine_pwm: Use heuristic to assign TIMx_CHy to a pin.
dpgeorge 6e9d35b
tests/extmod_hardware/machine_pwm.py: Round expected timing calculation.
dpgeorge 142f8b9
tests/extmod_hardware/machine_pwm.py: Add pin settings for stm32 port.
dpgeorge 1d5073f
extmod/machine_pwm: Fix use of object when pointer is needed.
dpgeorge af31472
stm32/boards: Disable some features on boards with small flash.
dpgeorge 2b64d6d
stm32/boards/stm32f091_af.csv: Split TIM2_CH1 from TIM2_ETR.
dpgeorge 98ab12a
stm32/boards/stm32n657_af.csv: Add TIM alt funcs to PA0-PA3.
dpgeorge ef2b30b
docs/library/machine.PWM: Add alif,stm32 to list of ports with invert.
dpgeorge 47871a4
docs/library/machine.PWM: Document hardware PWM layout.
dpgeorge 8f24c86
tests/extmod_hardware/machine_pwm.py: Convert test to use target_wiring.
dpgeorge 2ccf78a
ci,esp32: Build oldest & newest ESP-IDF versions in CI.
projectgus e0beace
LICENSE,docs: Update copyright year range to include 2026.
dpgeorge b1d635f
docs/reference/speed_python: Update native emitter limitations.
agatti b3d88cf
extmod/nimble/modbluetooth_nimble: Handle port init failures.
agatti 406356e
extmod/modlwip: Ensure socket is finalisable if error during creation.
dpgeorge 8a3c9f0
extmod/modlwip: Call user callback on newly-received UDP or RAW packet.
jwhitham 134bf4d
alif/irq: Add missing IRQ priorities.
iabdalkader 82e44e0
stm32/mpthreadport: Increase minimum thread stack size to 2.5k.
dpgeorge 702f15a
stm32/boards/PYBD_SF2: Free up some space in internal flash.
dpgeorge 803a4d7
py/objtemplate: Correctly cast qstr literals when printing.
jepler 74e9457
py/modweakref: Implement weakref module with ref and finalize classes.
dpgeorge c91d09a
tests/basics: Add tests for weakref.ref and weakref.finalize.
dpgeorge 2cca348
tests/basics: Add test for weakref having exception in callback.
dpgeorge f83f363
webassembly/Makefile: Add test//% target.
dpgeorge 6f96d26
webassembly/variants/pyscript: Enable weakref module and add tests.
dpgeorge 44d8f70
docs/library/weakref: Add documentation for weakref module.
dpgeorge 5c00edc
tools/ci.sh: Increase qemu_arm test run timeout.
dpgeorge 85e8f61
lib/micropython-lib: Update submodule to latest.
dpgeorge bce8549
tests/feature_check/tstring.py: Remove check for string.templatelib.
dpgeorge 93201ff
lib/cyw43-driver: Update driver to latest version v1.1.1.
dpgeorge ac48088
rp2/boards/SEEED_XIAO_RP2040: Add XIAO RP2040 board definition.
mattytrentini f4d2447
esp32/boards/SPARKFUN_THINGPLUS_ESP32C5: Add SF Thing Plus ESP32-C5.
sfe-SparkFro 2dc2e30
esp32/boards/SEEED_XIAO_ESP32C6: Add new XIAO board definition.
pi-mst d41b8dc
py/emitglue: Fix macro logic that selects cache flushing code.
dpgeorge e8a3ee0
esp32/esp32_common.cmake: Add missing C flags to user C module sources.
dpgeorge e0e9fbb
all: Bump version to 1.28.0.
dpgeorge 367178f
all: Bump version to 1.29.0-preview.
dpgeorge c20302d
shared/netutils/dhcpserver: Set default DNS to the server address.
pi-anl 4fe08ff
all: Avoid `qstr_str` calls when printing a qstr.
jepler 8abca6b
py/objexcept: Use mp_obj_get_type_str when printing exception name.
jepler c16a484
zephyr/machine_uart: Ignore return value of uart_irq_update.
maass-hamburg 47fc0d5
docs/library: Document Pin.board and Pin.cpu attributes.
pi-anl c3b3f20
py/objint: Fix comment for true operand in binary op extra cases.
cuiweixie e29bcdc
tests/cpydiff: Add test file for annotation expressions.
jepler b6bc2d4
esp32/adc: Raise error if ADC read result is invalid.
DvdGiessen e8992eb
esp32/machine_uart: Allow passing -1 to specify pin will be unused.
DvdGiessen 6b2488f
qemu: Add basic ROMFS support.
iabdalkader a22d9da
qemu/boards/MPS3_AN547: Configure and enable ROMFS.
iabdalkader ed463ed
qemu/boards/MPS2_AN500: Configure and enable ROMFS.
iabdalkader 501b0e6
alif/tinyusb_port: Fix _xfer_trb cache alignment.
kwagyeman dc0b2c7
py/malloc: Add m_tracked_realloc.
pi-anl 18735dd
tests/ports/unix: Add tests for m_tracked_realloc.
pi-anl 41137f0
py/parse: Recognise const assignments with type hints.
agatti f89112d
py/obj: Refactor MP_DEFINE_CONST_OBJ_TYPE_NARGS script for readability.
AJMansfield 8223287
py/obj: Eliminate trailing comma from MP_DEFINE_CONST_OBJ_TYPE_NARGS.
AJMansfield 483715d
py/obj: Reorganize slot access macros to put with slot definitions.
AJMansfield e274a38
py/obj: Enforce slot function signatures at compile time.
AJMansfield 8af714e
py/obj: Explicitly cast slot initializer values to `(const void *)`.
AJMansfield a91910c
py/persistentcode: Use MP_ENCODE_UINT_MAX_BYTES instead of custom macro.
dpgeorge 0241784
unix/modsocket: Add "sendall" method to socket class.
agatti 71d2314
esp32/boards/LILYGO_T3_S3: Add LILYGO T3-S3 board definition.
pgaufillet e57e522
esp32/machine_sdcard: Make default SDMMC slot configurable.
sfe-SparkFro 2f16bf4
esp32/network_wlan: Look up IP addresses for the stations list.
agatti f456a23
esp32/machine_pin: Make all pins on ESP32-P4 output capable.
sfe-SparkFro 295df7c
github/workflows: Drop VS2017, use preinstalled v142 toolset for VS2019.
pi-anl da0149f
github: Improve error on "Build mpremote wheel" if fork is missing tags.
projectgus b0d2072
github: Ignore codecov upload failure on forks with no token set.
projectgus ba28b8f
github/workflows: Bump microsoft/setup-msbuild from 2 to 3.
dependabot[bot] 8c6dfa5
github/workflows: Bump codecov/codecov-action from 5 to 6.
dependabot[bot] a179cb6
tests: Use a unique domain name for tests/multi_wlan/getaddrinfo.
projectgus 6d327a1
mimxrt: Provide abort so that C++ libunwind can link.
projectgus 523ad2c
tools/ci.sh: Build the usercmodule example in CI for more ports.
projectgus c080565
ports: Refactor C++ compilation support.
projectgus 5ce74c3
tests/misc: Skip cexample_subclass.py on minimal unix variant.
projectgus bc92f5a
nrf: Add support for building C++ user modules.
projectgus e379cb4
rp2: Allow setting MICROPY_C_HEAP_SIZE from make command line.
projectgus 3eb617d
docs/develop/cmodules: Add some notes about C dynamic memory and C++.
projectgus 4f04f08
docs/develop/memorymgt: Expand on MicroPython memory management from C.
projectgus 50218dd
docs: Link memory management & gc docs more, reduce duplication.
projectgus c9bb925
docs/develop: Link to module docs, remove extraneous example code.
projectgus 5e7d4bf
docs/library/gc: Add documentation for gc.isenabled().
projectgus 35652ff
docs/library/gc: Add some simple examples for gc.threshold().
projectgus 1a8c835
docs/library/machine.Pin: Update pull-up/down constants.
agatti b67c55c
py/emitinlinethumb: Shrink condition code lookups.
agatti 5ddc551
py/compile: Reject *arg after keyword argument.
jepler 5b127f0
py/modio: Error out on over-long read()/write() in user IO code.
jepler 1834dcf
py/objtuple: Support __add__ and __iadd__ with tuple subclasses.
jepler a43a8ac
py/mpconfig: Automatically configure thumb2 and float emitter features.
dpgeorge 02f2683
py/objint_longlong: Fix signed comparison error.
jepler eeed037
extmod/machine_usb_device: Document xfer_cb result value, add enums.
projectgus 98e4264
tests/run-tests.py: Correct spelling errors.
jepler bd69a0d
lib/re1.5: Check stack during compilecode.
jepler cf0ef5a
rp2/rp2_dma: Reduce footprint of the DMA control fields table.
agatti 083b0cc
qemu/Makefile: Refactor shared ROMFS definitions.
agatti acaba3f
qemu/boards/VIRT_RV32: Add ROMFS support.
agatti f3e79c8
qemu/boards/VIRT_RV64: Add ROMFS support.
agatti 809cf6f
qemu/boards/MPS2_AN385: Add ROMFS support.
agatti 75441f4
qemu/boards/SABRELITE: Add ROMFS support.
agatti 67de20a
tests: Rename "tests/frozen" into "tests/assets".
agatti c895770
tests/ports/qemu: Add ROMFS tests to CI.
agatti 2752d39
esp32/modules: Use "from machine import *" instead of __getattr__.
dpgeorge 50348ce
stm32/mpconfigport: Enable machine.CAN if CAN2 is used.
iabdalkader 036bd81
stm32: Fix mboot build with TinyUSB-enabled boards.
pi-anl 941cc31
mimxrt: Convert port to use new event waiting functions.
dpgeorge 1f601e8
samd: Convert port to use new event waiting functions.
dpgeorge 8a56be6
extmod/moductypes: Be more defensive with uctypes_struct_agg_size args.
djlowther 06f27ec
stm32/boards/STM32H747I_DISCO: Add STM32H747I-DISCO board definition.
pi-anl a23f69e
stm32/machine_adc: Fix ADC V2 CR register writes and timeouts.
pi-anl d1c61ca
stm32/boards: Extend RAM section by 192K on STM32H723.
dpgeorge 9ca3b74
stm32/usbd_conf: Fix USB VBUS sensing for newer STM32F4/F7 HAL versions.
pi-anl 1dda231
ports: Consolidate TinyUSB src include across build systems.
pi-anl efe6d3b
lib/mbedtls: Update to mbedtls v3.6.6.
stratakis 6b97759
tests: Protect trailing spaces with "\$".
dhalbert fa17886
tests/cmdline/repl_autocomplete_underscore.py: Remove trailing spaces.
dhalbert 9b36eed
tests/run-tests.py: Fix hex parsing of {\xnn} escapes.
dhalbert 93a7340
tests/run-tests.py: Allow .native.exp files to contain regexs.
dhalbert 9d989e4
tests: Remove further trailing spaces when possible.
dhalbert d54e675
tests/ports/unix: Remove trailing spaces in unix coverage output.
dhalbert 2c37f06
tests/run-tests.py: Update the list of tests requiring floats.
agatti ca85a1e
tools/boardgen.py: Make per-pin content output extensible.
agatti 05740fd
qemu/boards/NETDUINO2: Change heap size to 114k.
dpgeorge 0124bd5
qemu/Makefile: Do not mount ROMFS partition on non-test targets.
agatti 09c0a3c
qemu/mcu/arm/imx6.ld: Fix C++ linking.
agatti 2f52e1d
qemu/mcu/arm/mps2.ld: Fix C++ linking.
agatti dbd3eaa
qemu/mcu/arm/mps3.ld: Fix C++ linking.
agatti 086534a
qemu/mcu/arm/nrf51.ld: Fix C++ linking.
agatti 65dabf8
qemu/mcu/arm/stm32.ld: Fix C++ linking.
agatti 1ff9f9e
qemu/mcu/arm/startup: Add an implementation for "abort".
agatti 70bb728
tools/ci.sh: Let QEMU try to build with a user module.
agatti 02d2e9f
zephyr/CMakeLists.txt: Add support for USER_C_MODULES.
jonnor cfe9048
zephyr: Add ability to set feature level in conf file.
VynDragon 8f1a8d4
zephyr: Enable FULL feature level for rp2.
VynDragon 0657a80
zephyr/boards/mimxrt1020_evk: Use conf file to select feature level.
dpgeorge 35d09a7
zephyr/boards/xiao_ble_nrf52840_sense: Use conf to select feature level.
dpgeorge 00c5968
zephyr/boards: Add some Bouffalolab-based boards.
VynDragon 56b168b
zephyr/machine_i2c: Rework I2C driver to make continuous transactions.
maass-hamburg 9d10e29
zephyr/mpconfigport_minimal: Configure MICROPY_STACK_CHECK_MARGIN.
dpgeorge 37399d5
zephyr/mphalport: Allow mp_hal_wait_sem() to exit early when signalled.
dpgeorge c7187da
zephyr: Convert port to use new event waiting functions.
dpgeorge 4814df9
zephyr/machine_uart: Fix stop bits config and swapped buffer defaults.
cfaja 7515a49
zephyr/boards/arduino_uno_q: Add board config for Arduino UNO Q.
ramalamadingdong 953773c
alif/system_tick: Document differences between SysTick/LPTIMER/UTIMER.
dpgeorge b3806c5
alif/system_tick: Add system_tick_get_ms_fast when SysTick is enabled.
dpgeorge 65399bc
alif/mphalport: Use DWT->CYCCNT for CPU tick if SysTick/LPTIMER is used.
dpgeorge b5e1974
alif: Add support for building C++ user modules.
dpgeorge bad1c60
tools/ci.sh: Build user C example modules as part of alif CI.
dpgeorge 42141e9
mimxrt/systick: Remove unused systick helper functions.
dpgeorge 829d770
mimxrt/mphalport: Remove unused uwTick macro definition.
dpgeorge eaa7ca6
mimxrt/systick: Clean up header file includes.
dpgeorge 7f7adad
mimxrt/mphalport: Run events at least once in mp_hal_delay_ms.
dpgeorge 586ad0d
docs/library/io: Add documentation for the io.IOBase class.
pi-anl 9f396bb
docs/develop/porting: Update session log for example port.
yf13 7466e22
samd/dma_manager: Add a DMA manager.
robert-hh 6853cfb
samd/tc_manager: Add a tc_manager function set.
robert-hh f4b3b58
samd/machine_dac: Add dac.write_timed() method.
robert-hh 8b4dd11
samd/machine_adc: Add adc.read_timed() method.
robert-hh ac2f452
samd/machine_dac: Add a callback keyword option to machine.DAC().
robert-hh 0214d93
samd/machine_adc: Add a callback keyword option to machine.ADC().
robert-hh 490d63a
samd: Add new adc.busy() and dac.busy() methods.
robert-hh cc42bf9
docs/samd: Document the extensions to DAC and ADC.
robert-hh e4a0609
samd/machine_dac: Rework the DAC deinit() semantics.
robert-hh e029a9a
samd: Make adc.read_timed() and dac.write_timed() configurable.
robert-hh 285b737
samd: Fix init and deinit for adc_timed() and dac_timed().
robert-hh 92201f8
samd/machine_adc: Factor out machine.adc_timed() to extmod code.
robert-hh 21b3a51
samd/machine_adc: Fix the configuration with averaging enabled.
robert-hh f5af529
py/objstr: Add support for bytes.find(int).
jimmo b7e3220
tests/basics: Add tests for bytes/bytearray.find/index(int).
jimmo 05fcc8c
tests/basics: Add coverage for bytes find/index with out-of-bounds arg.
dpgeorge 01df5a1
py/py.mk: Add LIBS_USERMOD to LIBS.
sfe-SparkFro 234bac4
py/mkrules.mk: Change LIB to LIBS.
sfe-SparkFro 416eadf
ports: Use mp_obj_is_float instead of mp_obj_is_type.
dpgeorge d6a1d37
py/obj: Add assert that float isn't used with mp_obj_is_type.
dpgeorge a254bbc
py/nlrx86: Fix nlr_push to build with Clang 19.
jepler 5e94df1
py/modbuiltins: Treat pow(x, y, None) as pow(x, y).
jseop-lim 72d4c4d
py/builtinhelp: Add options for changing help('modules') format.
radiofan 8800733
lib/nrfx: Update submodule to v3.14.0.
pi-anl a6f90f3
nrf: Adapt port configuration and startup for nrfx v3.
pi-anl 7ac25f7
nrf: Rewrite GPIOTE pin IRQ handling for nrfx v3 API.
pi-anl a9fc9e4
nrf: Update peripheral drivers for nrfx v3 API.
pi-anl 77a9f3e
nrf: Fix nRF9160 secureboot build for nrfx v3.
pi-anl 5a60aa2
nrf: Modernize Pin.irq to use shared mp_irq infrastructure.
pi-anl 080e2ed
nrf: Preserve SPI config across init calls.
pi-anl ac0af10
nrf: Add I2C timeout parameter and fix disable on error.
pi-anl 7d3cf41
nrf/Makefile: Update nrfutil deploy rules for latest nrfutil.
dpgeorge 18e83d1
nrf/boards: Change all boards to use "nrf" for sys.platform value.
dpgeorge 6bbd7bc
nrf/boards: Use 64 byte raw-paste buffer on PCA10031.
DvdGiessen a876a2a
unix/unix_mphal: Use TCSANOW for terminal mode switching.
pi-anl 30781dc
tests/cmdline: Add Ctrl-C interrupt test for the repl_ test framework.
pi-anl 72222a6
tests/extmod: Don't require constructor to raise for bad socket type.
dpgeorge c8b71b0
tests/perf_bench: Skip import tests when vfs module doesn't exist.
dpgeorge 551a568
tests/run-perfbench.py: Skip misc_mandel if target doesn't have complex.
dpgeorge fc8857a
tests/multi_net/udp_data_multi.py: Reduce number of UDP groups to 4.
dpgeorge 722aacf
tests/extmod/machine_soft_timer.py: Skip test on nrf boards.
dpgeorge 0b8fbe3
tests/micropython/ringio_big.py: Improve running on low-memory targets.
dpgeorge 1d9b8b4
tests/extmod/machine_uart_tx.py: Make string longer for more accuracy.
dpgeorge 0ead967
tests/extmod/framebuf_polygon.py: Skip test if buf can't be allocated.
dpgeorge 98c76a9
tests/extmod/machine_spi_rate.py: Skip test if bufs can't be allocated.
dpgeorge 9ecdeb6
tests/run-tests.py: Skip tests depending on error reporting capability.
dpgeorge 0a55311
tests/micropython: Remove dependence on exact exception message.
dpgeorge 2cebe9f
tests/misc/rge_sm.py: Skip test if target doesn't have enough memory.
dpgeorge 10b6247
tests/float/float_format_ints.py: Add another valid alternative result.
jepler 9ee7ac8
tests/cpydiff: Document dir() not post-processing __dir__ result.
jseop-lim 14b26b9
stm32/tinyusb_port: Add High Speed USB controller support with TinyUSB.
pi-anl b001b71
stm32/factoryreset: Add TinyUSB-specific boot.py examples.
pi-anl 8d3597c
shared/tinyusb: Fix CDC reconnect stall and TX FIFO.
pi-anl 693f33a
stm32/usbd: Match ST DFU bootloader serial number in TinyUSB.
pi-anl d2e0d20
stm32,extmod: Use full path for shared/tinyusb/mp_usbd.h include.
pi-anl c5df954
stm32/Makefile: Provide definitions of CFLAGS_MCU & MPY_CROSS_MCU_ARCH.
dpgeorge a6144fb
stm32/make-stmconst.py: Point periph reg defns to S/NS on CM33/CM55.
dpgeorge a755503
stm32/boards: Allow overriding USB PID for Arduino boards.
iabdalkader 2c57e9d
stm32: Conditionally disable USB interrupts during SD operations.
projectgus 7a5eae8
tests/ports/stm32: Add DMA alignment test for SDCard driver.
projectgus d2e87fd
stm32/sdcard: Use dma_protect_rx_region on read operations.
projectgus e496000
esp8266: Remove obsolete --verify option from ESP8266.
projectgus cc502ab
esp32/machine_pin: Add mode, pull and drive to machine_pin_print().
IhorNehrutsa f563d3c
esp32/modmachine: Add new machine.wake_pins() function.
meirarmon a8ba8fa
esp32/machine_sdcard: Add support for SDMMC power ctrl via internal LDO.
sfe-SparkFro 169678c
esp32/boards/ESP32_GENERIC_P4: Set SDMMC LDO channel.
sfe-SparkFro dc44bdb
esp32/machine_sdcard: Make LDO channel configurable from Python.
sfe-SparkFro f640267
docs/library/machine.SDCard: Document new LDO argument for ESP32-P4.
sfe-SparkFro 4cf5c50
esp32/modnetwork: Always enable PHY_GENERIC.
sfe-SparkFro 2e04624
esp32/network_lan: Make EMAC RMII pins configurable on ESP32-P4.
sfe-SparkFro 2b5f5f5
esp32/network_lan: Fix LAN event handler base filtering.
mohnazemi e28c15f
esp32/machine_i2c: Allow SoftI2C to be disabled.
IhorNehrutsa ea1e10f
esp32/machine_hw_spi: Allow SoftSPI to be disabled.
IhorNehrutsa 6fa7d5b
rp2/machine_spi: Detect RX overrun when using DMA transfers.
sfe-SparkFro c4979d4
rp2/mphalport: Optimise cycle counter retrieval in RV32 mode.
agatti aba71b3
rp2/machine_bitstream: Shorten time-critical function init in RV32 mode.
agatti 4e6dc0b
lib/littlefs: Update LittleFS to v2.11.3.
DvdGiessen 64f0394
extmod/vfs_blockdev: Use memoryview when available.
jepler 80a9abb
extmod/machine_i2c: Add a deinit method to machine.I2C.
agatti e47c528
extmod/machine_i2c: Transfer WRITE1 address in single buffer adaptor.
midnightveil 3288766
shared/tinyusb: Add USB device qualifier descriptor.
iabdalkader 6443130
tools/mpremote: Fix length calculation in RemoteCommand for arrays.
Josverl 670d775
tools/mpremote: Add tests for array readinto and write.
Josverl a595bbb
tools/mpremote: Add an alias for codeberg repos.
agatti cc62017
py/modbuiltins: Let "dir" be disabled if requested.
agatti 7eaa522
py/asmarm: Fix UBsan diagnostics for left-shift of int.
jepler 91dadc5
py/asmthumb: Fix UBsan diagnostics for left-shift of negative.
jepler 8ecd995
py/emitinlinerv32: Fix UBsan diagnostics for left-shift of mp_int_t.
jepler 995cc14
Merge upstream micropython master for m_tracked_realloc and other ups…
andrewleech File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| name: Setup ESP-IDF for CI | ||
| description: Install ESP-IDF | ||
| inputs: | ||
| idf_ver: | ||
| required: true | ||
| type: string | ||
| ccache_key: | ||
| required: true | ||
| type: string | ||
|
|
||
| runs: | ||
| using: "composite" | ||
|
|
||
| steps: | ||
| - id: python_ver | ||
| name: Read the Python version | ||
| run: echo PYTHON_VER=py$(python --version | cut -d' ' -f2) | tee "${GITHUB_OUTPUT}" | ||
| shell: bash | ||
|
|
||
| - name: Cached ESP-IDF install | ||
| id: cache_esp_idf | ||
| uses: actions/cache@v5 | ||
| with: | ||
| path: | | ||
| ./esp-idf/ | ||
| ~/.espressif/ | ||
| !~/.espressif/dist/ | ||
| ~/.cache/pip/ | ||
| # Cache is keyed on both IDF version (from the job) and Python version (from the runner) | ||
| key: esp-idf-${{ inputs.idf_ver }}-${{ steps.python_ver.outputs.PYTHON_VER }} | ||
|
|
||
| - name: Install ESP-IDF packages | ||
| if: steps.cache_esp_idf.outputs.cache-hit != 'true' | ||
| env: | ||
| IDF_VER: ${{ inputs.idf_ver }} | ||
| run: tools/ci.sh esp32_idf_setup | ||
| shell: bash | ||
|
|
||
| - name: ccache | ||
| uses: hendrikmuhs/ccache-action@v1.2 | ||
| with: | ||
| key: esp32-${{ inputs.idf_ver }}-${{ inputs.ccache_key }} | ||
|
|
||
| - name: Enable CCache for ESP-IDF | ||
| run: echo "IDF_CCACHE_ENABLE=1" >> ${GITHUB_ENV} | ||
| shell: bash | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| name: alif port | ||
|
|
||
| on: | ||
| push: | ||
| pull_request: | ||
| paths: | ||
| - '.github/workflows/*.yml' | ||
| - 'tools/**' | ||
| - 'py/**' | ||
| - 'extmod/**' | ||
| - 'shared/**' | ||
| - 'lib/**' | ||
| - 'drivers/**' | ||
| - 'ports/alif/**' | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| build_alif: | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| ci_func: # names are functions in ci.sh | ||
| - alif_ae3_build | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| - name: Install packages | ||
| run: tools/ci.sh alif_setup | ||
| - name: Build ci_${{matrix.ci_func }} | ||
| run: tools/ci.sh ${{ matrix.ci_func }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P2: Third-party GitHub Actions are pinned to mutable tags instead of immutable SHAs.
Prompt for AI agents