workflow: Add github Action idf5.0 support

This commit is contained in:
marcus_xu
2022-11-21 17:45:57 +08:00
parent 363c27cd33
commit 52d8a4826c
2 changed files with 51 additions and 5 deletions
+45
View File
@@ -0,0 +1,45 @@
name: Build examples IDF5.0
on:
push:
branches:
- master
pull_request:
jobs:
Build-examples:
runs-on: ubuntu-latest
env:
PROJECT_PATH: examples/factory_demo
BIN_FILE: ESP-Box_Demo_V0.3.0.bin
container: espressif/idf:release-v5.0
steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: esp-idf build
run: |
pwd
ls -al
cd /opt/esp/idf
git checkout 94d9c529f3
git submodule update --init --recursive
tools/idf_tools.py --non-interactive install cmake
./install.sh
source ./export.sh
cd $GITHUB_WORKSPACE/$PROJECT_PATH
idf.py build
cd build
esptool.py --chip ESP32-S3 merge_bin -o $BIN_FILE @flash_args
shell: bash
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
# Artifact name
name: factory-firmware_IDF5.0
# A file, directory or wildcard pattern that describes what to upload
path: |
examples/factory_demo/build/ESP-*.bin
retention-days: 90
+6 -5
View File
@@ -1,4 +1,4 @@
name: Build examples
name: Build examples IDF4.4
on:
push:
branches:
@@ -17,27 +17,28 @@ jobs:
uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: esp-idf build
run: |
pwd
ls -al
cd /opt/esp/idf
git checkout 2bdea81b2a
git checkout c8ce38e60c
git submodule update --init --recursive
tools/idf_tools.py --non-interactive install cmake
rm -f ${IDF_TOOLS_PATH}/idf-env.json
./install.sh
source ./export.sh
cd $GITHUB_WORKSPACE/$PROJECT_PATH
idf.py build
esptool.py --chip esp32s3 merge_bin -o build/$BIN_FILE --flash_mode dio --flash_size 16MB 0x0 build/bootloader/bootloader.bin 0x20000 build/factory_demo.bin 0x8000 build/partition_table/partition-table.bin 0x16000 build/ota_data_initial.bin 0x3bd000 build/storage.bin 0x647000 build/model.bin
cd build
esptool.py --chip ESP32-S3 merge_bin -o $BIN_FILE @flash_args
shell: bash
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
# Artifact name
name: factory-firmware
name: factory-firmware_IDF4.4
# A file, directory or wildcard pattern that describes what to upload
path: |
examples/factory_demo/build/ESP-*.bin