-
-
Notifications
You must be signed in to change notification settings - Fork 32
58 lines (47 loc) · 1.59 KB
/
build.yaml
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
name: Build
on:
push:
branches:
- '**'
pull_request:
jobs:
env:
uses: ./.github/workflows/env.yaml
build:
name: Build for all platforms
runs-on: ubuntu-latest
needs: env
strategy:
matrix:
platform: [esp32, esp32s2, esp32s3]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
uses: espressif/esp-idf-ci-action@v1
with:
esp_idf_version: ${{ needs.env.outputs.esp_idf_version }}
target: ${{ matrix.platform }}
- name: Merge factory
uses: espressif/esp-idf-ci-action@v1
with:
esp_idf_version: ${{ needs.env.outputs.esp_idf_version }}
target: ${{ matrix.platform }}
command: esptool.py --chip ${{ matrix.platform }} merge_bin -o build/${{ matrix.platform }}-evse.factory.bin --flash_mode dio --flash_freq 40m --flash_size 4MB \
0x1000 build/bootloader/bootloader.bin \
0x10000 build/esp32-evse.bin \
0x8000 build/partition_table/partition-table.bin \
0xd000 build/ota_data_initial.bin
- name: Rename file bin
shell: bash
run: cp build/esp32-evse.bin ${{ matrix.platform }}-evse.bin
- name: Upload artifact bin
uses: actions/upload-artifact@v4
with:
name: firmware-${{ matrix.platform }}
path: ${{ matrix.platform }}-evse.bin
- name: Upload artifact factory
uses: actions/upload-artifact@v4
with:
name: factory-${{ matrix.platform }}
path: build/${{ matrix.platform }}-evse.factory.bin