Skip to content

Commit 8b2050a

Browse files
authored
Merge branch 'adafruit:main' into main
2 parents 287adf5 + ba414b3 commit 8b2050a

File tree

304 files changed

+7912
-2394
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

304 files changed

+7912
-2394
lines changed

.github/actions/deps/ports/zephyr-cp/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ name: Fetch Zephyr port deps
33
runs:
44
using: composite
55
steps:
6+
- name: Get libusb
7+
if: runner.os == 'Linux'
8+
run: |
9+
sudo apt-get update
10+
sudo apt-get install -y libusb-1.0-0-dev libudev-dev
11+
shell: bash
612
- name: Setup Zephyr project
713
uses: zephyrproject-rtos/action-zephyr-setup@v1
814
with:

.github/workflows/build.yml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ jobs:
107107
cp-version: ${{ needs.scheduler.outputs.cp-version }}
108108

109109
mpy-cross-mac:
110-
runs-on: macos-13
110+
runs-on: macos-latest
111111
needs: scheduler
112112
if: needs.scheduler.outputs.ports != '{}'
113113
env:
@@ -131,33 +131,18 @@ jobs:
131131
gcc --version
132132
python3 --version
133133
msgfmt --version
134-
- name: Build mpy-cross
135-
run: make -C mpy-cross -j4
136-
- uses: actions/upload-artifact@v4
137-
with:
138-
name: mpy-cross-macos-x64
139-
path: mpy-cross/build/mpy-cross
140134
- name: Build mpy-cross (arm64)
141135
run: make -C mpy-cross -j4 -f Makefile.m1 V=2
142136
- uses: actions/upload-artifact@v4
143137
with:
144138
name: mpy-cross-macos-arm64
145139
path: mpy-cross/build-arm64/mpy-cross-arm64
146-
- name: Make universal binary
147-
run: lipo -create -output mpy-cross-macos-universal mpy-cross/build/mpy-cross mpy-cross/build-arm64/mpy-cross-arm64
148-
- name: Upload artifact
149-
uses: actions/upload-artifact@v4
150-
with:
151-
name: mpy-cross-macos-universal
152-
path: mpy-cross-macos-universal
153140
- name: Upload to S3
154141
if: >-
155142
(github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository_owner == 'adafruit') ||
156143
(github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested'))
157144
run: |
158-
[ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp mpy-cross-macos-universal s3://adafruit-circuit-python/bin/mpy-cross/macos/mpy-cross-macos-"${CP_VERSION}"-universal --no-progress --region us-east-1
159145
[ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp mpy-cross/build-arm64/mpy-cross-arm64 s3://adafruit-circuit-python/bin/mpy-cross/macos/mpy-cross-macos-"${CP_VERSION}"-arm64 --no-progress --region us-east-1
160-
[ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp mpy-cross/build/mpy-cross s3://adafruit-circuit-python/bin/mpy-cross/macos/mpy-cross-macos-"${CP_VERSION}"-x64 --no-progress --region us-east-1
161146
env:
162147
AWS_PAGER: ''
163148
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}

.github/workflows/run-tests.yml

Lines changed: 54 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -23,36 +23,36 @@ jobs:
2323
TEST_native: --emit native
2424
TEST_native_mpy: --via-mpy --emit native -d basics float micropython
2525
steps:
26-
- name: Set up repository
27-
uses: actions/checkout@v4
28-
with:
29-
submodules: false
30-
show-progress: false
31-
fetch-depth: 1
32-
- name: Set up python
33-
uses: actions/setup-python@v5
34-
with:
35-
python-version: 3.12
36-
- name: Set up submodules
37-
uses: ./.github/actions/deps/submodules
38-
with:
39-
target: tests
40-
- name: Set up external
41-
if: matrix.test == 'all'
42-
uses: ./.github/actions/deps/external
43-
- name: Set up mpy-cross
44-
uses: ./.github/actions/mpy_cross
45-
with:
46-
cp-version: ${{ inputs.cp-version }}
47-
- name: Build unix port
48-
run: make -C ports/unix VARIANT=coverage -j4
49-
- name: Run tests
50-
run: ./run-tests.py -j4 ${{ env[format('TEST_{0}', matrix.test)] }}
51-
working-directory: tests
52-
- name: Print failure info
53-
run: ./run-tests.py -j4 --print-failures
54-
if: failure()
55-
working-directory: tests
26+
- name: Set up repository
27+
uses: actions/checkout@v4
28+
with:
29+
submodules: false
30+
show-progress: false
31+
fetch-depth: 1
32+
- name: Set up python
33+
uses: actions/setup-python@v5
34+
with:
35+
python-version: 3.12
36+
- name: Set up submodules
37+
uses: ./.github/actions/deps/submodules
38+
with:
39+
target: tests
40+
- name: Set up external
41+
if: matrix.test == 'all'
42+
uses: ./.github/actions/deps/external
43+
- name: Set up mpy-cross
44+
uses: ./.github/actions/mpy_cross
45+
with:
46+
cp-version: ${{ inputs.cp-version }}
47+
- name: Build unix port
48+
run: make -C ports/unix VARIANT=coverage -j4
49+
- name: Run tests
50+
run: ./run-tests.py -j4 ${{ env[format('TEST_{0}', matrix.test)] }}
51+
working-directory: tests
52+
- name: Print failure info
53+
run: ./run-tests.py -j4 --print-failures
54+
if: failure()
55+
working-directory: tests
5656
# Not working after MicroPython v1.23 merge.
5757
# - name: Build native modules
5858
# if: matrix.test == 'all'
@@ -66,3 +66,27 @@ jobs:
6666
# if: matrix.test == 'all'
6767
# run: ./run-natmodtests.py extmod/{heapq*,random*,re*}.py
6868
# working-directory: tests
69+
70+
zephyr:
71+
runs-on: ubuntu-24.04
72+
strategy:
73+
fail-fast: false
74+
env:
75+
CP_VERSION: ${{ inputs.cp-version }}
76+
steps:
77+
- name: Set up repository
78+
uses: actions/checkout@v4
79+
with:
80+
submodules: false
81+
show-progress: false
82+
fetch-depth: 1
83+
- name: Set up python
84+
uses: actions/setup-python@v5
85+
with:
86+
python-version: 3.13
87+
- name: Set up Zephyr
88+
uses: ./.github/actions/deps/ports/zephyr-cp
89+
- name: Set up external
90+
uses: ./.github/actions/deps/external
91+
- name: Run Zephyr build tests
92+
run: make -C ports/zephyr-cp test

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
[submodule "ports/espressif/esp-idf"]
144144
path = ports/espressif/esp-idf
145145
url = https://github.com/adafruit/esp-idf.git
146-
branch = circuitpython-v5.4.1
146+
branch = circuitpython-v5.5.1
147147
[submodule "ports/espressif/esp-protocols"]
148148
path = ports/espressif/esp-protocols
149149
url = https://github.com/adafruit/esp-protocols.git

0 commit comments

Comments
 (0)