Skip to content

Commit 0d03db2

Browse files
committed
update workflows
1 parent 9fa6dfb commit 0d03db2

File tree

2 files changed

+6
-173
lines changed

2 files changed

+6
-173
lines changed

.github/workflows/build mpy with camera and jpeg.yml

Lines changed: 0 additions & 161 deletions
This file was deleted.

.github/workflows/new build.yml renamed to .github/workflows/build mpy with camera.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: build mpy with camera and jpeg (single job)
1+
name: build mpy with camera
22

33
# 仅手动触发
44
on:
@@ -87,26 +87,20 @@ jobs:
8787
cp -r ${{ github.workspace }}/esp-adf-libs/esp_new_jpeg \
8888
${{ env.ESP_IDF_DIR }}/components/esp_new_jpeg
8989
90-
# 6. 导入 ESP-IDF 环境变量(每次都需要)
91-
- name: Export ESP-IDF environment
92-
run: |
93-
source ${{ env.ESP_IDF_DIR }}/export.sh
94-
echo "ESP-IDF ready."
95-
96-
# 7. 克隆 JPEG 模块
90+
# 6. 克隆 JPEG 模块
9791
- name: Clone JPEG module
9892
run: |
9993
git clone https://github.com/cnadler86/mp_jpeg.git ${{ github.workspace }}/mp_jpeg
10094
101-
# 8. 生成 user_modules.cmake(聚合本仓库与 JPEG 模块)
95+
# 7. 生成 user_modules.cmake(聚合本仓库与 JPEG 模块)
10296
- name: Generate user_modules.cmake
10397
run: |
10498
cat > ${{ github.workspace }}/user_modules.cmake <<'EOF'
10599
include("${CMAKE_CURRENT_LIST_DIR}/src/micropython.cmake")
106100
include("${CMAKE_CURRENT_LIST_DIR}/mp_jpeg/src/micropython.cmake")
107101
EOF
108102
109-
# 9. 编译固件
103+
# 8. 编译固件
110104
- name: Build firmware
111105
run: |
112106
source ${{ env.ESP_IDF_DIR }}/export.sh
@@ -117,7 +111,7 @@ jobs:
117111
USER_C_MODULES="${{ github.workspace }}/user_modules.cmake" \
118112
-j$(nproc)
119113
120-
# 10. 重命名并收集固件
114+
# 9. 重命名并收集固件
121115
- name: Rename firmware
122116
run: |
123117
mkdir -p ${{ env.ARTIFACTS_DIR }}
@@ -134,7 +128,7 @@ jobs:
134128
exit 1
135129
fi
136130
137-
# 11. 上传构建产物
131+
# 10. 上传构建产物
138132
- name: Upload artifact
139133
uses: actions/upload-artifact@v4
140134
with:

0 commit comments

Comments
 (0)