Skip to content

Commit 0f940d0

Browse files
committed
ci: add build workflow
link #100 #96
1 parent 3083f87 commit 0f940d0

File tree

4 files changed

+33
-2
lines changed

4 files changed

+33
-2
lines changed

.build-test-rules.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/:
2+
enable:
3+
- if: IDF_TARGET in ["esp32s3","esp32s2","esp32"]

.github/workflows/build_project.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Build project
2+
3+
on: push
4+
5+
jobs:
6+
build:
7+
strategy:
8+
matrix:
9+
idf_ver: ["release-v4.4", "release-v5.0"]
10+
runs-on: ubuntu-20.04
11+
container: espressif/idf:${{ matrix.idf_ver }}
12+
steps:
13+
- uses: actions/checkout@v3
14+
with:
15+
submodules: 'recursive'
16+
- name: Build project
17+
shell: bash
18+
run: |
19+
. ${IDF_PATH}/export.sh
20+
pip install idf-component-manager idf-build-apps --upgrade
21+
idf-build-apps find
22+
idf-build-apps build

.gitlab-ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ before_script:
2121
tags:
2222
- build
2323

24-
build_demo_cmake_idf44:
24+
build_project_idf44:
2525
<<: *build_examples_template
2626
image: espressif/idf:release-v4.4
2727
script:
@@ -34,7 +34,7 @@ build_demo_cmake_idf44:
3434
- idf.py set-target esp32s3
3535
- idf.py build
3636

37-
build_demo_cmake_idf50:
37+
build_project_idf50:
3838
<<: *build_examples_template
3939
image: espressif/idf:release-v5.0
4040
script:

.idf_build_apps.toml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
paths = "."
2+
check_warnings = false
3+
build_dir = "build_@t"
4+
manifest_filepatterns = [
5+
'**/.build-test-rules.yml',
6+
]

0 commit comments

Comments
 (0)