From 517aec46ae2790ecfadbdc50413cea96c5da5311 Mon Sep 17 00:00:00 2001 From: Tan <63716982+kirltrz@users.noreply.github.com> Date: Tue, 24 Feb 2026 14:58:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=91=BD=E4=BB=A4=E5=86=97?= =?UTF-8?q?=E4=BD=99=E9=97=AE=E9=A2=98=EF=BC=8C=E8=B0=83=E6=95=B4=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/main.yml | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 526e218..eb9a6bf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,27 +15,20 @@ jobs: runs-on: ubuntu-latest steps: - # 步骤1: 拉取你的代码到云端服务器 + # 步骤1: 拉取代码到云端服务器 - name: 拉取代码 uses: actions/checkout@v4 with: submodules: 'recursive' # 如果项目有子模块,必须加上这行 - # 步骤2: 安装 ESP-IDF 环境(核心步骤) - - name: 安装 ESP-IDF v5.5 + # 步骤2: 使用ESP-IDF构建 + - name: 使用ESP-IDF v5.5构建 uses: espressif/esp-idf-ci-action@v1 with: esp_idf_version: 'v5.5' # 指定使用 ESP-IDF v5.5.x 版本 + target: esp32c3 - # 步骤3: 配置项目、选择目标芯片并编译 - - name: 配置项目 - run: | - . $IDF_PATH/export.sh - idf.py set-target esp32c3 # 请根据你的芯片型号修改,例如 esp32s3, esp32c3 - # idf.py menuconfig # 如果你需要自定义配置,可以在这里添加,或者注释掉 - idf.py build - - # 步骤4: 上传编译好的固件作为构建产物,方便下载 + # 步骤3: 上传编译好的固件作为构建产物,方便下载 - name: 上传固件产物 uses: actions/upload-artifact@v4 with: