-
Notifications
You must be signed in to change notification settings - Fork 10
143 lines (114 loc) · 4.69 KB
/
builds.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
name: Create Release on Tag
on:
push:
tags:
- 'v*.*.*.*'
permissions:
contents: write
jobs:
build:
strategy:
fail-fast: true
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
submodules: 'recursive'
fetch-tags: true
fetch-depth: 0
- name: Extract tag version
id: extract_tag
run: echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: esp-idf build
uses: espressif/esp-idf-ci-action@v1
with:
esp_idf_version: v5.3.2
target: esp32c6
path: './firmware'
command: "./get_builds.sh ${{ env.TAG_NAME }}"
- name: Upload release artifact
uses: actions/upload-artifact@v4
with:
name: minino-release-${{ env.TAG_NAME }}
path: ./firmware/minino-release-${{ env.TAG_NAME }}
- name: Generate ChangeLog
run: ./change change
- name: Upload ChangeLog.md as artifact
uses: actions/upload-artifact@v4
with:
name: changelog-${{ env.TAG_NAME }}
path: ./ChangeLog.md
release:
needs: build
runs-on: ubuntu-latest
steps:
- name: Extract tag version
id: extract_tag
run: echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: Download release files
uses: actions/download-artifact@v4
with:
name: minino-release-${{ env.TAG_NAME }}
path: ./release/
- name: Download ChangeLog.md artifact
uses: actions/download-artifact@v4
with:
name: changelog-${{ env.TAG_NAME }}
path: ./changelog/
- name: Release Firmware
uses: ncipollo/release-action@v1
if: startsWith(github.ref, 'refs/tags/')
with:
artifacts: release/*
generateReleaseNotes: true
allowUpdates: true
draft: true
body: |
$(cat ./changelog/ChangeLog.md)
# Flashing release
## Minino
### Table for [ESP Tool](https://espressif.github.io/esptool-js/)
| Flash Address | File |
|---------------|----------------------------|
| 0x0 | minino_${{ env.TAG_NAME }}.bin |
### Command
```bash
python -m esptool --chip esp32c6 -b 460800 --before default_reset --after hard_reset write_flash --flash_mode dio --flash_size 8MB --flash_freq 80m 0x0 minino_${{ env.TAG_NAME }}.bin
```
## BSides
### Table for [ESP Tool](https://espressif.github.io/esptool-js/)
| Flash Address | File |
|---------------|----------------------------|
| 0x0 | bsides_${{ env.TAG_NAME }}.bin |
### Command
```bash
python -m esptool --chip esp32c6 -b 460800 --before default_reset --after hard_reset write_flash --flash_mode dio --flash_size 4MB --flash_freq 80m 0x0 bsides_${{ env.TAG_NAME }}.bin
```
## DragonJar
### Table for [ESP Tool](https://espressif.github.io/esptool-js/)
| Flash Address | File |
|---------------|----------------------------|
| 0x0 | dragonjar_${{ env.TAG_NAME }}.bin |
### Command
```bash
python -m esptool --chip esp32c6 -b 460800 --before default_reset --after hard_reset write_flash --flash_mode dio --flash_size 4MB --flash_freq 80m 0x0 dragonjar_${{ env.TAG_NAME }}.bin
```
## EkoParty
### Table for [ESP Tool](https://espressif.github.io/esptool-js/)
| Flash Address | File |
|---------------|----------------------------|
| 0x0 | ekoparty_${{ env.TAG_NAME }}.bin |
### Command
```bash
python -m esptool --chip esp32c6 -b 460800 --before default_reset --after hard_reset write_flash --flash_mode dio --flash_size 4MB --flash_freq 80m 0x0 ekoparty_${{ env.TAG_NAME }}.bin
```
## BugCon
### Table for [ESP Tool](https://espressif.github.io/esptool-js/)
| Flash Address | File |
|---------------|----------------------------|
| 0x0 | bugcon_${{ env.TAG_NAME }}.bin |
### Command
```bash
python -m esptool --chip esp32c6 -b 460800 --before default_reset --after hard_reset write_flash --flash_mode dio --flash_size 4MB --flash_freq 80m 0x0 bugcon_${{ env.TAG_NAME }}.bin
```