Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ci/bsp_noglib.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import sys
import argparse
from pathlib import Path
from idf_component_tools.manifest import ManifestManager
from idf_component_tools.manager import ManifestManager
from update_readme_dependencies import check_bsp_readme

DEFINE_NOGLIB_OFF = '#define BSP_CONFIG_NO_GRAPHIC_LIB (0)'
Expand Down
2 changes: 1 addition & 1 deletion .github/ci/release_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def get_change_key(row):
row[3] = pad_visual(row[3], 8)

# Table header
headers = ["Component", "Version", "Released", "Changed", "Files"]
headers = ["Component", "Version", "Released", "Changed", "File Types"]

tz = pytz.timezone("Europe/Prague")
last_updated = datetime.now(tz).strftime("%d.%m.%Y %H:%M:%S %Z")
Expand Down
14 changes: 8 additions & 6 deletions .github/ci/update_readme_dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import subprocess
import urllib.request
from pathlib import Path
from idf_component_tools.manifest import ManifestManager
from idf_component_tools.manager import ManifestManager
from py_markdown_table.markdown_table import markdown_table
from typing import Any

Expand Down Expand Up @@ -81,13 +81,14 @@ def map_capability_to_driver(capability, manifest):
components = []
try:
component_regex = capability_dict[capability]
for item in manifest.dependencies:
result = re.findall(component_regex, item.name)
for name, dependency in manifest.dependencies.items():
result = re.findall(component_regex, name)
if result:
version = item.version_spec if item.version_spec else ""
component = item.name
version = dependency if isinstance(dependency, str) else dependency.version
component = name
# Add hyperlinks to components (but not to IDF component)
if component != "idf":
component = name if name.startswith("espressif/") else f"espressif/{name}"
component = "[{}]({}{})".format(component, ESP_REGISTRY_URL, component)

components.append((component, version))
Expand Down Expand Up @@ -395,7 +396,8 @@ def check_all_bsps(filenames):

try:
check_bsp_readme(bsp_path)
except Exception:
except Exception as e:
print(e)
ret += 1
return ret

Expand Down
66 changes: 0 additions & 66 deletions .github/workflows/build-examples-launchpad.yml

This file was deleted.

35 changes: 0 additions & 35 deletions .github/workflows/deploy_gh_pages.yml

This file was deleted.

113 changes: 113 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
name: Build examples for Launchpad

# This job:
# - Build all examples for Launchpad
# - Prepare release check table
# - Deploy all to github-pages (config.toml, release_checker.html)

on:
push:
branches:
- master

jobs:

build-launchpad:
strategy:
matrix:
idf_ver: ["v5.4"]
runs-on: ubuntu-latest
container: espressif/idf:${{ matrix.idf_ver }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
submodules: 'recursive'

- name: Upgrade component manager
shell: bash
run: |
. ${IDF_PATH}/export.sh
pip install idf-component-manager==2.* --upgrade

- name: Action for building binaries and config.toml
env:
IDF_EXTRA_ACTIONS_PATH: "${{ github.workspace }}/examples"
uses: espressif/[email protected]
with:
idf_version: ${{ matrix.idf_ver }}
config_file: examples/.idf_build_apps.toml

- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: built_files
path: binaries/

release-check:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0 # all git history

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Run release_checker.py
run: |
pip install requests pyyaml tabulate wcwidth pytz
mkdir site
python .github/ci/release_checker.py > site/release_checker.html

- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: release_checker
path: site/

deploy:
needs:
- build-launchpad
- release-check

permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest
steps:
- name: Download built files
uses: actions/download-artifact@v4
with:
name: built_files
path: binaries/

- name: Download built files
uses: actions/download-artifact@v4
with:
name: release_checker
path: site/

- name: Prepare combined site
run: |
mkdir pages
cp -r binaries/* pages/
cp -r site/* pages/

- name: Upload combined site to GitHub Pages
uses: actions/upload-pages-artifact@v4
with:
path: pages/

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

43 changes: 0 additions & 43 deletions .github/workflows/release_checker.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/upload_component_noglib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
env:
BSPs: "bsp/esp_wrover_kit bsp/esp32_s3_eye bsp/esp32_p4_function_ev_board bsp/m5stack_core_s3 bsp/m5stack_core_2 bsp/m5stack_core bsp/m5dial bsp/m5_atom_s3 bsp/esp-box-3 bsp/esp32_s3_lcd_ev_board bsp/esp32_s3_korvo_2"
run: |
pip install idf-component-manager==1.* py-markdown-table --upgrade
pip install idf-component-manager==2.* py-markdown-table --upgrade
python .github/ci/bsp_noglib.py ${BSPs}
- uses: espressif/upload-components-ci-action@v2
with:
Expand Down
5 changes: 3 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ repos:
language: python
files: 'bsp/.*/include/bsp/.*\.h|bsp/.*/idf_component\.yml|bsp/.*/README\.md' # All idf_component.yml, README.md and .h files in bsp directory
additional_dependencies:
- idf_component_manager==1.4.2
- idf_component_manager==2.4.1
- py-markdown-table

- repo: local
Expand All @@ -40,7 +40,8 @@ repos:
language: python
files: ^README\.md$|^bsp/
additional_dependencies:
- idf_component_manager==1.4.2
- PyYAML
- idf_component_manager==2.4.1

- repo: local
hooks:
Expand Down
6 changes: 3 additions & 3 deletions bsp/esp-box-3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ ESP32-S3-BOX-3 also uses a Type-C USB connector that provides 5 V of power input

| Available | Capability |Controller/Codec| Component | Version |
|------------------|------------------------|----------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------|
|:heavy_check_mark:| :pager: DISPLAY | st7789, ili9341| [espressif/esp_lcd_ili9341](https://components.espressif.com/components/espressif/esp_lcd_ili9341)<br/>idf |^2.0.1<br/>>=5.3|
|:heavy_check_mark:| :pager: DISPLAY | st7789, ili9341| idf<br/>[espressif/esp_lcd_ili9341](https://components.espressif.com/components/espressif/esp_lcd_ili9341) |>=5.3<br/>^2.0.1|
|:heavy_check_mark:|:black_circle: LVGL_PORT| | [espressif/esp_lvgl_port](https://components.espressif.com/components/espressif/esp_lvgl_port) | ^2 |
|:heavy_check_mark:| :point_up: TOUCH | tt21100, gt911 |[espressif/esp_lcd_touch_gt911](https://components.espressif.com/components/espressif/esp_lcd_touch_gt911)<br/>[espressif/esp_lcd_touch_tt21100](https://components.espressif.com/components/espressif/esp_lcd_touch_tt21100)| ^1<br/>^1 |
|:heavy_check_mark:| :point_up: TOUCH | tt21100, gt911 |[espressif/esp_lcd_touch_tt21100](https://components.espressif.com/components/espressif/esp_lcd_touch_tt21100)<br/>[espressif/esp_lcd_touch_gt911](https://components.espressif.com/components/espressif/esp_lcd_touch_gt911)| ^1<br/>^1 |
|:heavy_check_mark:| :radio_button: BUTTONS | | [espressif/button](https://components.espressif.com/components/espressif/button) | ^4 |
|:heavy_check_mark:| :musical_note: AUDIO | | [espressif/esp_codec_dev](https://components.espressif.com/components/espressif/esp_codec_dev) | ~1.5 |
|:heavy_check_mark:| :speaker: AUDIO_SPEAKER| es8311 | | |
|:heavy_check_mark:| :microphone: AUDIO_MIC | es7210 | | |
|:heavy_check_mark:| :floppy_disk: SDCARD | | idf | >=5.3 |
|:heavy_check_mark:| :video_game: IMU | | [icm42670](https://components.espressif.com/components/icm42670) | ^2.0.2 |
|:heavy_check_mark:| :video_game: IMU | | [espressif/icm42670](https://components.espressif.com/components/espressif/icm42670) | ^2.0.2 |

<!-- END_DEPENDENCIES -->
</div>
Expand Down
2 changes: 1 addition & 1 deletion bsp/esp32_c3_lcdkit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ ESP32-C3-LCDkit also uses a Type-C USB connector that provides 5 V of power inpu

| Available | Capability |Controller/Codec| Component | Version |
|------------------|------------------------|----------------|--------------------------------------------------------------------------------------------------------|--------------|
|:heavy_check_mark:| :pager: DISPLAY | gc9a01 |[espressif/esp_lcd_gc9a01](https://components.espressif.com/components/espressif/esp_lcd_gc9a01)<br/>idf|^2<br/>>=5.0.0|
|:heavy_check_mark:| :pager: DISPLAY | gc9a01 |idf<br/>[espressif/esp_lcd_gc9a01](https://components.espressif.com/components/espressif/esp_lcd_gc9a01)|>=5.0.0<br/>^2|
|:heavy_check_mark:|:black_circle: LVGL_PORT| | [espressif/esp_lvgl_port](https://components.espressif.com/components/espressif/esp_lvgl_port) | ^2 |
| :x: | :point_up: TOUCH | | | |
| :x: | :radio_button: BUTTONS | | | |
Expand Down
2 changes: 1 addition & 1 deletion bsp/esp32_p4_function_ev_board/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ This BSP supports HDMI converter Lontium LT8912B. Follow these rules for using i

| Available | Capability | Controller/Codec | Component | Version |
|------------------|------------------------|--------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------|
|:heavy_check_mark:| :pager: DISPLAY |ek79007, ili9881c, lt8912b|[espressif/esp_lcd_ek79007](https://components.espressif.com/components/espressif/esp_lcd_ek79007)<br/>[espressif/esp_lcd_ili9881c](https://components.espressif.com/components/espressif/esp_lcd_ili9881c)<br/>[espressif/esp_lcd_lt8912b](https://components.espressif.com/components/espressif/esp_lcd_lt8912b)<br/>idf|1.*<br/>1.*<br/>>=0.1.1,<1.0.0<br/>>=5.3|
|:heavy_check_mark:| :pager: DISPLAY |ek79007, ili9881c, lt8912b|idf<br/>[espressif/esp_lcd_ili9881c](https://components.espressif.com/components/espressif/esp_lcd_ili9881c)<br/>[espressif/esp_lcd_ek79007](https://components.espressif.com/components/espressif/esp_lcd_ek79007)<br/>[espressif/esp_lcd_lt8912b](https://components.espressif.com/components/espressif/esp_lcd_lt8912b)|>=5.3<br/>1.*<br/>1.*<br/>>=0.1.1,<1.0.0|
|:heavy_check_mark:|:black_circle: LVGL_PORT| | [espressif/esp_lvgl_port](https://components.espressif.com/components/espressif/esp_lvgl_port) | ^2 |
|:heavy_check_mark:| :point_up: TOUCH | gt911 | [espressif/esp_lcd_touch_gt911](https://components.espressif.com/components/espressif/esp_lcd_touch_gt911) | ^1 |
| :x: | :radio_button: BUTTONS | | | |
Expand Down
2 changes: 1 addition & 1 deletion bsp/esp32_s3_eye/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ The ESP32-S3-EYE board consists of two parts: the main board (ESP32-S3-EYE-MB) t
| :x: | :speaker: AUDIO_SPEAKER| | | |
|:heavy_check_mark:| :microphone: AUDIO_MIC | | | |
|:heavy_check_mark:| :floppy_disk: SDCARD | | idf | >=5.4 |
|:heavy_check_mark:| :video_game: IMU | | [qma6100p](https://components.espressif.com/components/qma6100p) | ^2 |
|:heavy_check_mark:| :video_game: IMU | | [espressif/qma6100p](https://components.espressif.com/components/espressif/qma6100p) | ^2 |
|:heavy_check_mark:| :camera: CAMERA | | [espressif/esp32-camera](https://components.espressif.com/components/espressif/esp32-camera) |^2.0.13|

<!-- END_DEPENDENCIES -->
Expand Down
Loading
Loading