Skip to content

Commit

Permalink
feat(ci): use finer-grained file modification jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
Lzw655 committed Nov 15, 2024
1 parent 412c15e commit c9d5d11
Show file tree
Hide file tree
Showing 74 changed files with 749 additions and 306 deletions.
122 changes: 104 additions & 18 deletions .gitlab/ci/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,90 +42,176 @@
- pip install idf_build_apps
- python .gitlab/tools/build_apps.py ${EXAMPLE_DIR} --config ${EXAMPLE_CONFIG} -t all -vv

# Target ESP-IDF versions
.build_idf_active_release_version:
# Images for different target ESP-IDF
.build_idf_active_release_image:
parallel:
matrix:
- IMAGE: espressif/idf:release-v5.1
- IMAGE: espressif/idf:release-v5.2
- IMAGE: espressif/idf:release-v5.3
- IMAGE: espressif/idf:release-v5.4

.build_esp32_p4_idf_release_version:
.build_esp32_p4_idf_release_image:
parallel:
matrix:
- IMAGE: espressif/idf:release-v5.3
- IMAGE: espressif/idf:release-v5.4

# Test apps
# Test apps common
build_test_apps_common:
extends:
- .build_examples_template
- .build_idf_active_release_image
- .rules:build:test_apps_common
variables:
EXAMPLE_DIR: test_apps/common

# Test apps lcd
build_test_apps_lcd_3wire_spi_rgb:
extends:
- .build_examples_template
- .build_idf_active_release_version
- .build_idf_active_release_image
- .rules:build:test_apps_lcd_3wire_spi_rgb
variables:
EXAMPLE_DIR: test_apps/lcd/3wire_spi_rgb

build_test_apps_lcd_mipi_dsi:
extends:
- .build_examples_template
- .build_esp32_p4_idf_release_version
- .build_esp32_p4_idf_release_image
- .rules:build:test_apps_lcd_mipi_dsi
variables:
EXAMPLE_DIR: test_apps/lcd/mipi_dsi

build_test_apps_lcd_qspi:
extends:
- .build_examples_template
- .build_idf_active_release_version
- .build_idf_active_release_image
- .rules:build:test_apps_lcd_qspi
variables:
EXAMPLE_DIR: test_apps/lcd/qspi

build_test_apps_lcd_rgb:
extends:
- .build_examples_template
- .build_idf_active_release_version
- .build_idf_active_release_image
- .rules:build:test_apps_lcd_rgb
variables:
EXAMPLE_DIR: test_apps/lcd/rgb

build_test_apps_lcd_spi:
extends:
- .build_examples_template
- .build_idf_active_release_version
- .build_idf_active_release_image
- .rules:build:test_apps_lcd_spi
variables:
EXAMPLE_DIR: test_apps/lcd/spi

build_test_apps_lvgl_port:
# Test apps lvgl_port
build_test_apps_lvgl_port_elecrow:
extends:
- .build_examples_template
- .build_idf_active_release_image
- .rules:build:test_apps_lvgl_port_board_elecrow
variables:
EXAMPLE_DIR: test_apps/lvgl_port
EXAMPLE_CONFIG: sdkconfig.elecrow.*

build_test_apps_lvgl_port_espressif:
extends:
- .build_examples_template
- .build_idf_active_release_image
- .rules:build:test_apps_lvgl_port_board_espressif
variables:
EXAMPLE_DIR: test_apps/lvgl_port
EXAMPLE_CONFIG: sdkconfig.espressif.*

build_test_apps_lvgl_port_jingcai:
extends:
- .build_examples_template
- .build_idf_active_release_image
- .rules:build:test_apps_lvgl_port_board_jingcai
variables:
EXAMPLE_DIR: test_apps/lvgl_port
EXAMPLE_CONFIG: sdkconfig.jingcai.*

build_test_apps_lvgl_port_m5stack:
extends:
- .build_examples_template
- .build_idf_active_release_image
- .rules:build:test_apps_lvgl_port_board_m5stack
variables:
EXAMPLE_DIR: test_apps/lvgl_port
EXAMPLE_CONFIG: sdkconfig.m5stack.*

build_test_apps_lvgl_port_waveshare:
extends:
- .build_examples_template
- .build_idf_active_release_version
- .rules:build:test_apps_lvgl_port
- .build_idf_active_release_image
- .rules:build:test_apps_lvgl_port_board_waveshare
variables:
EXAMPLE_DIR: test_apps/lvgl_port
EXAMPLE_CONFIG: sdkconfig.waveshare.*

# Test apps panel
build_test_apps_panel_elecrow:
extends:
- .build_examples_template
- .build_idf_active_release_image
- .rules:build:test_apps_panel_board_elecrow
variables:
EXAMPLE_DIR: test_apps/panel
EXAMPLE_CONFIG: sdkconfig.elecrow.*

build_test_apps_panel_espressif:
extends:
- .build_examples_template
- .build_idf_active_release_image
- .rules:build:test_apps_panel_board_espressif
variables:
EXAMPLE_DIR: test_apps/panel
EXAMPLE_CONFIG: sdkconfig.espressif.*

build_test_apps_panel_jingcai:
extends:
- .build_examples_template
- .build_idf_active_release_image
- .rules:build:test_apps_panel_board_jingcai
variables:
EXAMPLE_DIR: test_apps/panel
EXAMPLE_CONFIG: sdkconfig.jingcai.*

build_test_apps_panel_m5stack:
extends:
- .build_examples_template
- .build_idf_active_release_image
- .rules:build:test_apps_panel_board_m5stack
variables:
EXAMPLE_DIR: test_apps/panel
EXAMPLE_CONFIG: sdkconfig.m5stack.*

build_test_apps_panel:
build_test_apps_panel_waveshare:
extends:
- .build_examples_template
- .build_idf_active_release_version
- .rules:build:test_apps_panel
- .build_idf_active_release_image
- .rules:build:test_apps_panel_board_waveshare
variables:
EXAMPLE_DIR: test_apps/panel
EXAMPLE_CONFIG: sdkconfig.waveshare.*

# Test apps touch
build_test_apps_touch_i2c:
extends:
- .build_examples_template
- .build_idf_active_release_version
- .build_idf_active_release_image
- .rules:build:test_apps_touch_i2c
variables:
EXAMPLE_DIR: test_apps/touch/i2c

build_test_apps_touch_spi:
extends:
- .build_examples_template
- .build_idf_active_release_version
- .build_idf_active_release_image
- .rules:build:test_apps_touch_spi
variables:
EXAMPLE_DIR: test_apps/touch/spi
Expand All @@ -134,7 +220,7 @@ build_test_apps_touch_spi:
# build_example_esp_brookesia_phone_m5stace_core_s3:
# extends:
# - .build_examples_template
# - .build_esp32_s3_idf_release_version
# - .build_esp32_s3_idf_release_image
# - .rules:build:example_esp_brookesia_phone_m5stace_core_s3
# variables:
# EXAMPLE_DIR: examples/esp_idf/esp_brookesia_phone_m5stace_core_s3
Loading

0 comments on commit c9d5d11

Please sign in to comment.