-
Notifications
You must be signed in to change notification settings - Fork 5
67 lines (60 loc) · 1.82 KB
/
build_example.yml
File metadata and controls
67 lines (60 loc) · 1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
---
name: Build Example
on:
push:
branches-ignore: [master]
pull_request:
branches: [master]
workflow_dispatch: {}
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
espidf_target: [esp32, esp32s2, esp32s3, esp32c2, esp32c3, esp32c5, esp32c6, esp32c61, esp32h2, esp32h21, esp32h4,
esp32p4, esp32p4-rev1]
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Build targets with ESP-IDF
uses: espressif/esp-idf-ci-action@v1
with:
esp_idf_version: "latest"
target: ${{ matrix.espidf_target }}
path: 'example'
command: |
./build.sh ${{ matrix.espidf_target }}
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: stub_${{ matrix.espidf_target }}_artifacts
path: |
example/build/${{ matrix.espidf_target }}/stub_*.elf
example/build/${{ matrix.espidf_target }}/stub_*.map
example/build/${{ matrix.espidf_target }}/stub_*.asm
if-no-files-found: error
build-esp8266:
name: Build (esp8266)
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Build ESP8266 with custom toolchain
run: |
cd example
./build.sh esp8266
- name: Upload ESP8266 build artifacts
uses: actions/upload-artifact@v4
with:
name: stub_esp8266_artifacts
path: |
example/build/esp8266/stub_esp8266.elf
example/build/esp8266/stub_esp8266.map
example/build/esp8266/stub_esp8266.asm
if-no-files-found: error