Skip to content

Commit 56a7521

Browse files
authored
Add support for more examples (#195)
* Multithreaded genExamples.py * Fix more wifi examples & examples with compile warnings * Add action to run genExamples.py * Maintain examples order
1 parent 9180f62 commit 56a7521

File tree

5 files changed

+458
-51
lines changed

5 files changed

+458
-51
lines changed

.github/workflows/genExamples.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Update examples.json
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
develop:
7+
description: "Test with develop branch"
8+
required: false
9+
type: boolean
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
- name: Install Dependencies
18+
run: |
19+
pip install pycryptodomex
20+
- name: Cache ~/.pico-sdk
21+
uses: actions/cache@v4
22+
with:
23+
path: ~/.pico-sdk
24+
key: pico-sdk-${{ hashFiles('scripts/genExamples.py') }}
25+
- name: Run genExamples.py
26+
env:
27+
SDK_VERSION: ${{ inputs.develop && '2-develop' || '' }}
28+
run: |
29+
python scripts/genExamples.py
30+
- name: List errors
31+
run: |
32+
ls -la errors-pico*
33+
- name: Upload Artifact
34+
uses: actions/upload-artifact@v4
35+
with:
36+
name: examples.json
37+
path: |
38+
data/0.17.0/examples.json
39+
- name: Print diff
40+
run: |
41+
git diff data/0.17.0/examples.json

data/0.17.0/examples.json

Lines changed: 80 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,19 @@
756756
],
757757
"supportRiscV": true
758758
},
759+
"dev_multi_cdc": {
760+
"path": "usb/device/dev_multi_cdc",
761+
"name": "dev_multi_cdc",
762+
"libPaths": [],
763+
"libNames": [],
764+
"boards": [
765+
"pico",
766+
"pico_w",
767+
"pico2",
768+
"pico2_w"
769+
],
770+
"supportRiscV": true
771+
},
759772
"dev_hid_composite": {
760773
"path": "usb/device/dev_hid_composite",
761774
"name": "dev_hid_composite",
@@ -1342,6 +1355,28 @@
13421355
],
13431356
"supportRiscV": true
13441357
},
1358+
"picow_http_client": {
1359+
"path": "pico_w/wifi/http_client",
1360+
"name": "picow_http_client",
1361+
"libPaths": [],
1362+
"libNames": [],
1363+
"boards": [
1364+
"pico_w",
1365+
"pico2_w"
1366+
],
1367+
"supportRiscV": true
1368+
},
1369+
"picow_http_client_verify": {
1370+
"path": "pico_w/wifi/http_client",
1371+
"name": "picow_http_client_verify",
1372+
"libPaths": [],
1373+
"libNames": [],
1374+
"boards": [
1375+
"pico_w",
1376+
"pico2_w"
1377+
],
1378+
"supportRiscV": true
1379+
},
13451380
"picow_blink": {
13461381
"path": "pico_w/wifi/blink",
13471382
"name": "picow_blink",
@@ -1386,6 +1421,39 @@
13861421
],
13871422
"supportRiscV": true
13881423
},
1424+
"picow_tcpip_client": {
1425+
"path": "pico_w/wifi/tcp_client",
1426+
"name": "picow_tcpip_client",
1427+
"libPaths": [],
1428+
"libNames": [],
1429+
"boards": [
1430+
"pico_w",
1431+
"pico2_w"
1432+
],
1433+
"supportRiscV": true
1434+
},
1435+
"picow_tls_client": {
1436+
"path": "pico_w/wifi/tls_client",
1437+
"name": "picow_tls_client",
1438+
"libPaths": [],
1439+
"libNames": [],
1440+
"boards": [
1441+
"pico_w",
1442+
"pico2_w"
1443+
],
1444+
"supportRiscV": true
1445+
},
1446+
"picow_tls_verify": {
1447+
"path": "pico_w/wifi/tls_client",
1448+
"name": "picow_tls_verify",
1449+
"libPaths": [],
1450+
"libNames": [],
1451+
"boards": [
1452+
"pico_w",
1453+
"pico2_w"
1454+
],
1455+
"supportRiscV": true
1456+
},
13891457
"picow_udp_beacon": {
13901458
"path": "pico_w/wifi/udp_beacon",
13911459
"name": "picow_udp_beacon",
@@ -1430,6 +1498,17 @@
14301498
],
14311499
"supportRiscV": true
14321500
},
1501+
"picow_httpd": {
1502+
"path": "pico_w/wifi/httpd",
1503+
"name": "picow_httpd",
1504+
"libPaths": [],
1505+
"libNames": [],
1506+
"boards": [
1507+
"pico_w",
1508+
"pico2_w"
1509+
],
1510+
"supportRiscV": true
1511+
},
14331512
"picow_ble_temp_reader": {
14341513
"path": "pico_w/bt/standalone",
14351514
"name": "picow_ble_temp_reader",
@@ -1584,4 +1663,4 @@
15841663
],
15851664
"supportRiscV": true
15861665
}
1587-
}
1666+
}

0 commit comments

Comments
 (0)