Skip to content

Commit

Permalink
feat(ci): add p4 example build
Browse files Browse the repository at this point in the history
  • Loading branch information
lijunru-hub committed Feb 12, 2025
1 parent 8264986 commit 12dc5a2
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 3 deletions.
12 changes: 12 additions & 0 deletions .gitlab/ci/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,18 @@ build_esp32_c3_lcdkit:
variables:
IMAGE: espressif/idf:release-v5.1

build_esp32_p4_function_ev_board:
extends:
- .build_examples_template
- .rules:build:esp32_p4_function_ev_board
parallel:
matrix:
- EXAMPLE_DIR: examples/esp32-p4-function-ev-board/examples/esp_brookesia_phone
- EXAMPLE_DIR: examples/esp32-p4-function-ev-board/examples/lvgl_demo_v8
- EXAMPLE_DIR: examples/esp32-p4-function-ev-board/examples/lvgl_demo_v9
variables:
IMAGE: espressif/idf:release-v5.4

build_esp32_s2_hmi_devkit_1:
extends:
- .build_examples_template
Expand Down
12 changes: 12 additions & 0 deletions .gitlab/ci/rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
.patterns-esp32_c3_lcdkit: &patterns-esp32_c3_lcdkit
- "examples/esp32-c3-lcdkit/**/*"

.patterns-esp32_p4_function_ev_board: &patterns-esp32_p4_function_ev_board
- "examples/esp32-p4-function-ev-board/**/*"

.patterns-esp32_s2_hmi_devkit_1: &patterns-esp32_s2_hmi_devkit_1
- "examples/esp32-s2-hmi-devkit-1/**/*"

Expand Down Expand Up @@ -63,6 +66,15 @@
if: '$CI_MERGE_REQUEST_LABELS =~ /^(?:[^,\n\r]+,)*build(?:,[^,\n\r]+)*$/i'

# rules for development board
.rules:build:esp32_p4_function_ev_board:
rules:
- <<: *if-protected
- <<: *if-label-build
- <<: *if-dev-push
changes: *patterns-build_system
- <<: *if-dev-push
changes: *patterns-esp32_p4_function_ev_board

.rules:build:esp32_c3_lcdkit:
rules:
- <<: *if-protected
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ set(EXTRA_COMPONENT_DIRS
)

add_compile_options(-Wno-format)
add_compile_options(-Wno-ignored-qualifiers)
project(lvgl_demo_v8)
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ include($ENV{IDF_PATH}/tools/cmake/project.cmake)
set(EXTRA_COMPONENT_DIRS
../common_components
)

add_compile_options(-Wno-format)
add_compile_options(-Wno-ignored-qualifiers)
add_compile_options(-Wno-attributes)
add_compile_options(-Wno-unused-function)
project(lvgl_demo_v9)
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
/*
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "nvs_flash.h"
#include "nvs.h"
#include "esp_log.h"
Expand Down

0 comments on commit 12dc5a2

Please sign in to comment.