mirror of
https://github.com/espressif/esp-drone.git
synced 2026-07-21 02:05:37 +00:00
ci: add build workflow
link https://github.com/espressif/esp-drone/issues/100 https://github.com/espressif/esp-drone/issues/96
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
/:
|
||||
enable:
|
||||
- if: IDF_TARGET in ["esp32s3","esp32s2","esp32"]
|
||||
@@ -0,0 +1,22 @@
|
||||
name: Build project
|
||||
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
idf_ver: ["release-v4.4", "release-v5.0"]
|
||||
runs-on: ubuntu-20.04
|
||||
container: espressif/idf:${{ matrix.idf_ver }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: 'recursive'
|
||||
- name: Build project
|
||||
shell: bash
|
||||
run: |
|
||||
. ${IDF_PATH}/export.sh
|
||||
pip install idf-component-manager idf-build-apps --upgrade
|
||||
idf-build-apps find
|
||||
idf-build-apps build
|
||||
+2
-2
@@ -21,7 +21,7 @@ before_script:
|
||||
tags:
|
||||
- build
|
||||
|
||||
build_demo_cmake_idf44:
|
||||
build_project_idf44:
|
||||
<<: *build_examples_template
|
||||
image: espressif/idf:release-v4.4
|
||||
script:
|
||||
@@ -34,7 +34,7 @@ build_demo_cmake_idf44:
|
||||
- idf.py set-target esp32s3
|
||||
- idf.py build
|
||||
|
||||
build_demo_cmake_idf50:
|
||||
build_project_idf50:
|
||||
<<: *build_examples_template
|
||||
image: espressif/idf:release-v5.0
|
||||
script:
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
paths = "."
|
||||
check_warnings = false
|
||||
build_dir = "build_@t"
|
||||
manifest_filepatterns = [
|
||||
'**/.build-test-rules.yml',
|
||||
]
|
||||
Reference in New Issue
Block a user