-
-
Notifications
You must be signed in to change notification settings - Fork 6
82 lines (81 loc) · 2.99 KB
/
main.yml
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: ESP-IDF build
on:
push:
jobs:
build_esp32_v5_2_1:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: ESP-IDF v5.2.1 build esp32
uses: espressif/esp-idf-ci-action@v1
with:
esp_idf_version: v5.2.1
target: esp32
command: 'idf.py set-target esp32 build'
- name: ESP-IDF v5.2.1 pack esp32
uses: espressif/esp-idf-ci-action@v1
with:
esp_idf_version: v5.2.1
target: esp32
command: 'esptool.py --chip ESP32 merge_bin -o firmware.bin --flash_mode dio --flash_size=keep 0x1000 build/bootloader/bootloader.bin 0x8000 build/partition_table/partition-table.bin 0x10000 build/ESPRI.bin 0x160000 build/storage.bin'
- name: 'Upload Artifact'
uses: actions/upload-artifact@v3
with:
name: firmware
path: firmware*.bin
- name: Upload binaries to release
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: firmware.bin
asset_name: espri_$tag.bin
tag: ${{ github.ref }}
overwrite: true
release_name: release ${{ github.ref_name }}
body: |
---
- To flash run: `esptool.py write_flash 0x0 espri.bin`
- Read the Online Manual (Wiki) for instructions [`here`](https://github.com/kamilsss655/ESPRI/wiki/40-%E2%80%90--How2-program-ESP#how2-program-the-esp)
# build_esp32_s3_v5_2_1:
# runs-on: ubuntu-latest
# permissions:
# contents: write
# steps:
# - name: Checkout repo
# uses: actions/checkout@v3
# with:
# submodules: 'recursive'
# - name: ESP-IDF v5.2.1 build esp32s3
# uses: espressif/esp-idf-ci-action@v1
# with:
# esp_idf_version: v5.2.1
# target: esp32s3
# command: 'idf.py set-target esp32s3 build'
# - name: ESP-IDF v5.2.1 pack esp32s3
# uses: espressif/esp-idf-ci-action@v1
# with:
# esp_idf_version: v5.2.1
# target: esp32s3
# command: 'esptool.py --chip esp32s3 merge_bin -o firmware.bin --flash_mode dio --flash_size=keep 0x0 build/bootloader/bootloader.bin 0x8000 build/partition_table/partition-table.bin 0x10000 build/ESPRI.bin 0x110000 build/storage.bin'
# - name: 'Upload Artifact'
# uses: actions/upload-artifact@v3
# with:
# name: firmware-s3
# path: firmware*.bin
# - name: Upload binaries to release
# if: ${{ startsWith(github.ref, 'refs/tags/v') }}
# uses: svenstaro/upload-release-action@v2
# with:
# repo_token: ${{ secrets.GITHUB_TOKEN }}
# file: firmware.bin
# asset_name: espri-s3$tag.bin
# tag: ${{ github.ref }}
# overwrite: true
# release_name: release ${{ github.ref_name }}
# body: "To flash run `esptool.py write_flash 0x0 espri.bin`"