|
7 | 7 | jobs: |
8 | 8 | build: |
9 | 9 | runs-on: ubuntu-latest |
| 10 | + permissions: |
| 11 | + contents: read |
| 12 | + actions: read |
10 | 13 | steps: |
11 | | - - name: Checkout repository |
| 14 | + - name: Checkout (no LFS, include submodules) |
12 | 15 | uses: actions/checkout@v4 |
13 | 16 | with: |
14 | | - lfs: false # if you track any assets with Git LFS |
| 17 | + lfs: false |
| 18 | + submodules: recursive |
15 | 19 |
|
16 | | - - name: Set up Python (for fetch script) |
| 20 | + - name: Set up Python (for helper scripts) |
17 | 21 | uses: actions/setup-python@v5 |
18 | 22 | with: |
19 | | - python-version: '3.11' |
| 23 | + python-version: '3.x' |
20 | 24 |
|
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 |
26 | 26 | run: python ./fetch_repos.py |
27 | | - # runs in repo root, same as your local flow |
28 | 27 |
|
29 | | - - name: Build with ESP-IDF 5.4.2 for ESP32-P4 |
| 28 | + - name: Build with ESP-IDF 5.4.2 (esp32p4) |
30 | 29 | uses: espressif/esp-idf-ci-action@v1 |
31 | 30 | with: |
32 | 31 | esp_idf_version: v5.4.2 |
33 | 32 | target: esp32p4 |
34 | 33 | path: platforms/tab5 |
35 | 34 | command: idf.py build |
36 | | - # The CI action already sets up the IDF environment. :contentReference[oaicite:2]{index=2} |
37 | 35 |
|
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) |
39 | 43 | uses: actions/upload-artifact@v4 |
40 | 44 | with: |
41 | | - name: tab5-firmware-${{ github.sha }} |
| 45 | + name: tab5-build-${{ github.run_id }} |
42 | 46 | 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