Skip to content

Commit 74b9bcf

Browse files
authored
Update idf-build.yml
1 parent 973aa58 commit 74b9bcf

1 file changed

Lines changed: 20 additions & 17 deletions

File tree

.github/workflows/idf-build.yml

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,39 +7,42 @@ on:
77
jobs:
88
build:
99
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
actions: read
1013
steps:
11-
- name: Checkout repository
14+
- name: Checkout (no LFS, include submodules)
1215
uses: actions/checkout@v4
1316
with:
14-
lfs: false # if you track any assets with Git LFS
17+
lfs: false
18+
submodules: recursive
1519

16-
- name: Set up Python (for fetch script)
20+
- name: Set up Python (for helper scripts)
1721
uses: actions/setup-python@v5
1822
with:
19-
python-version: '3.11'
23+
python-version: '3.x'
2024

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)
25+
- name: Fetch external repos
2626
run: python ./fetch_repos.py
27-
# runs in repo root, same as your local flow
2827

29-
- name: Build with ESP-IDF 5.4.2 for ESP32-P4
28+
- name: Build with ESP-IDF 5.4.2 (esp32p4)
3029
uses: espressif/esp-idf-ci-action@v1
3130
with:
3231
esp_idf_version: v5.4.2
3332
target: esp32p4
3433
path: platforms/tab5
3534
command: idf.py build
36-
# The CI action already sets up the IDF environment. :contentReference[oaicite:2]{index=2}
3735

38-
- name: Upload firmware artifacts
36+
# Optional: show the auto-generated flash args for reference in logs
37+
- name: Show flash args
38+
if: always()
39+
run: |
40+
cat platforms/tab5/build/flash_args || true
41+
42+
- name: Upload build artifacts (entire build dir)
3943
uses: actions/upload-artifact@v4
4044
with:
41-
name: tab5-firmware-${{ github.sha }}
45+
name: tab5-build-${{ github.run_id }}
4246
path: |
43-
platforms/tab5/build/**/*.bin
44-
platforms/tab5/build/**/*.elf
45-
platforms/tab5/build/**/*.map
47+
platforms/tab5/build/**
48+
retention-days: 7

0 commit comments

Comments
 (0)