Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minino February Features #23

Merged
merged 35 commits into from
Feb 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
c2973df
feat: add binaries merge Make command
Otrebor671 Feb 14, 2025
6591e28
refactor: disable apps by technology
Otrebor671 Feb 17, 2025
b2b3183
Merge branch 'prerelease' into dev
Otrebor671 Feb 17, 2025
3c73213
feat: add make builds cmd
Otrebor671 Feb 17, 2025
46c3fc3
feat: rename partition tables & add get_builds.sh
Otrebor671 Feb 17, 2025
70e7e32
feat: get version from script execution command
Otrebor671 Feb 18, 2025
367dc46
feat: add build action test
Otrebor671 Feb 18, 2025
7b2c642
feat: execute action on push
Otrebor671 Feb 18, 2025
21c242e
test: action test
Otrebor671 Feb 18, 2025
3881779
feat: automatic release on new tags
Otrebor671 Feb 18, 2025
24dfca5
refactor: remove unused defaults
Otrebor671 Feb 18, 2025
66f8652
feat: 8MB flash as default
Otrebor671 Feb 18, 2025
7b0189a
feat: hide OTA on badges
Otrebor671 Feb 18, 2025
784dc47
feat: add release folders to git ignore
Otrebor671 Feb 18, 2025
b2abec8
feat: release draft on new tag with flashing instructions as body
Otrebor671 Feb 18, 2025
771681e
feat: release file names updated & files ziped
Otrebor671 Feb 19, 2025
557052b
fix: update gpio menus conditions
Otrebor671 Feb 19, 2025
03a207f
test: change log since las tag
Otrebor671 Feb 20, 2025
8d044d7
test: attempt to get changelog automatically
Otrebor671 Feb 20, 2025
65f1c1d
test: attempt without all boards
Otrebor671 Feb 20, 2025
a0aaf02
test: add extension to changelog
Otrebor671 Feb 20, 2025
6f42b16
test: remove extension
Otrebor671 Feb 20, 2025
ba8235f
test: update changelog download path
Otrebor671 Feb 20, 2025
1a7fee6
feat: Add Country Code
JahazielLem Feb 21, 2025
e675e8f
test: change log temporal path
Otrebor671 Feb 21, 2025
8a3e598
test: scape sequences
Otrebor671 Feb 21, 2025
eca5916
test: pass output directly
Otrebor671 Feb 21, 2025
b09e3b8
test: use printf instead of echo
Otrebor671 Feb 21, 2025
eef583a
test: use cat instead of vars
Otrebor671 Feb 21, 2025
a934710
test: use EOF
Otrebor671 Feb 21, 2025
907e929
feat: wifi region configuration menu
Otrebor671 Feb 25, 2025
ecf29db
Merge branch 'make_builds' into dev
Otrebor671 Feb 25, 2025
1647560
Merge branch 'changelog' into dev
Otrebor671 Feb 25, 2025
a30d6e3
feat: make all boards on new tag
Otrebor671 Feb 25, 2025
34f3e5b
Merge branch 'contrycode' into dev
Otrebor671 Feb 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
100 changes: 0 additions & 100 deletions .github/workflows/build.yml

This file was deleted.

151 changes: 151 additions & 0 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
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: Set ChangeLog body
id: set_changelog
run: |
BODY=$(cat ./changelog/ChangeLog.md)
echo "BODY<<EOF" >> $GITHUB_ENV
echo "$BODY" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV

- name: Release Firmware
uses: ncipollo/release-action@v1
if: startsWith(github.ref, 'refs/tags/')
with:
artifacts: release/*
generateReleaseNotes: true
allowUpdates: true
draft: true
body: |
${{ env.BODY }}
# 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
```
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,13 @@ hardware/minino-backups/
/**/build-ota/
/**/build-noota/
/**/managed_components/
/**/minino-*.zip
/firmware/build-bSides
/firmware/build-bugCon
/firmware/build-dragonJar
/firmware/build-ekoParty
/firmware/build-minino
/firmware/minino-release-*
/**/minino-release-*.zip

# IDF sdkconfig
/**/sdkconfig
Expand Down
Loading