From a85affed139bc72d4eac0d3ba7ad7ee54a96f6f7 Mon Sep 17 00:00:00 2001 From: zhouli Date: Wed, 9 Mar 2022 16:36:06 +0800 Subject: [PATCH] ci: add artifact upload --- .github/workflows/build.yml | 29 +++++++++++++++++++++++++--- README.md | 11 ++++++++++- README_cn.md | 11 ++++++++++- examples/factory_demo/CMakeLists.txt | 2 +- 4 files changed, 47 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index da75035..23d6d39 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,14 +6,37 @@ on: pull_request: jobs: - build-release-v4_4: + 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-v4.4 steps: - name: Checkout repo uses: actions/checkout@v2 with: submodules: 'recursive' - name: esp-idf build - uses: espressif/esp-idf-ci-action@release-v4.4 + run: | + pwd + ls -al + cd /opt/esp/idf + git checkout 2bdea81b2a + git submodule update --init --recursive + ./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 + shell: bash + + - name: Upload a Build Artifact + uses: actions/upload-artifact@v3.0.0 with: - path: 'examples/factory_demo' + # Artifact name + name: factory-firmware + # A file, directory or wildcard pattern that describes what to upload + path: | + examples/factory_demo/build/ESP-*.bin + retention-days: 90 diff --git a/README.md b/README.md index ea87343..493838f 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,16 @@ # ESP-BOX AIoT Development Framework -[![Build examples](https://github.com/espressif/esp-box/actions/workflows/build.yml/badge.svg)](https://github.com/espressif/esp-box/actions/workflows/build.yml) +

+ + GitHub + + + + + + +

**Important Note:** diff --git a/README_cn.md b/README_cn.md index e80bae0..7890082 100644 --- a/README_cn.md +++ b/README_cn.md @@ -3,7 +3,16 @@ # ESP-BOX AIoT 开发框架 -[![Build examples](https://github.com/espressif/esp-box/actions/workflows/build.yml/badge.svg)](https://github.com/espressif/esp-box/actions/workflows/build.yml) +

+ + GitHub + + + + + + +

**重要提醒:** > 我们建议您在第一次收到产品时[更新应用固件](./docs/firmware_update_cn.md)以获得最新功能和 bug 的修复,点此[链接](./docs/getting_started_cn.md)获取应用固件的使用说明。点击[此处](https://github.com/espressif/esp-box/releases)查看历史固件。 diff --git a/examples/factory_demo/CMakeLists.txt b/examples/factory_demo/CMakeLists.txt index 2218013..96b1663 100644 --- a/examples/factory_demo/CMakeLists.txt +++ b/examples/factory_demo/CMakeLists.txt @@ -19,4 +19,4 @@ set(EXTRA_COMPONENT_DIRS add_compile_options(-fdiagnostics-color=always) -project(lite_demo) +project(factory_demo)