Skip to content

Commit 889f13a

Browse files
authored
Update idf-build.yml
1 parent fd1df51 commit 889f13a

1 file changed

Lines changed: 26 additions & 6 deletions

File tree

.github/workflows/idf-build.yml

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,35 @@ jobs:
1111
- name: Checkout repository
1212
uses: actions/checkout@v4
1313
with:
14-
lfs: false
14+
lfs: true # if you track any assets with Git LFS
15+
16+
- name: Set up Python (for fetch script)
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: '3.11'
20+
21+
- name: Install Python deps (if any)
22+
run: |
23+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
24+
25+
- name: Fetch external repos (matches your local step)
26+
run: python ./fetch_repos.py
27+
# runs in repo root, same as your local flow
1528

1629
- name: Build with ESP-IDF 5.4.2 for ESP32-P4
1730
uses: espressif/esp-idf-ci-action@v1
1831
with:
1932
esp_idf_version: v5.4.2
2033
target: esp32p4
21-
command: |
22-
. /opt/esp/idf/export.sh
23-
cd platforms/tab5
24-
idf.py set-target esp32p4
25-
idf.py build
34+
path: platforms/tab5
35+
command: idf.py build
36+
# The CI action already sets up the IDF environment. :contentReference[oaicite:2]{index=2}
37+
38+
- name: Upload firmware artifacts
39+
uses: actions/upload-artifact@v4
40+
with:
41+
name: tab5-firmware-${{ github.sha }}
42+
path: |
43+
platforms/tab5/build/**/*.bin
44+
platforms/tab5/build/**/*.elf
45+
platforms/tab5/build/**/*.map

0 commit comments

Comments
 (0)