修复命令冗余问题,调整注释
This commit is contained in:
parent
ea289fac6e
commit
517aec46ae
17
.github/workflows/main.yml
vendored
17
.github/workflows/main.yml
vendored
@ -15,27 +15,20 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# 步骤1: 拉取你的代码到云端服务器
|
# 步骤1: 拉取代码到云端服务器
|
||||||
- name: 拉取代码
|
- name: 拉取代码
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: 'recursive' # 如果项目有子模块,必须加上这行
|
submodules: 'recursive' # 如果项目有子模块,必须加上这行
|
||||||
|
|
||||||
# 步骤2: 安装 ESP-IDF 环境(核心步骤)
|
# 步骤2: 使用ESP-IDF构建
|
||||||
- name: 安装 ESP-IDF v5.5
|
- name: 使用ESP-IDF v5.5构建
|
||||||
uses: espressif/esp-idf-ci-action@v1
|
uses: espressif/esp-idf-ci-action@v1
|
||||||
with:
|
with:
|
||||||
esp_idf_version: 'v5.5' # 指定使用 ESP-IDF v5.5.x 版本
|
esp_idf_version: 'v5.5' # 指定使用 ESP-IDF v5.5.x 版本
|
||||||
|
target: esp32c3
|
||||||
|
|
||||||
# 步骤3: 配置项目、选择目标芯片并编译
|
# 步骤3: 上传编译好的固件作为构建产物,方便下载
|
||||||
- name: 配置项目
|
|
||||||
run: |
|
|
||||||
. $IDF_PATH/export.sh
|
|
||||||
idf.py set-target esp32c3 # 请根据你的芯片型号修改,例如 esp32s3, esp32c3
|
|
||||||
# idf.py menuconfig # 如果你需要自定义配置,可以在这里添加,或者注释掉
|
|
||||||
idf.py build
|
|
||||||
|
|
||||||
# 步骤4: 上传编译好的固件作为构建产物,方便下载
|
|
||||||
- name: 上传固件产物
|
- name: 上传固件产物
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user