mirror of
https://github.com/lumapu/ahoy.git
synced 2025-04-29 18:26:21 +02:00
0.8.83 release
* updated workflows
This commit is contained in:
parent
8c132048e6
commit
024445b472
4 changed files with 153 additions and 1313 deletions
9
.github/workflows/compile_development.yml
vendored
9
.github/workflows/compile_development.yml
vendored
|
@ -1,4 +1,4 @@
|
||||||
name: Ahoy Dev-Build for ESP8266/ESP32
|
name: Ahoy Development
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
@ -8,6 +8,7 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check:
|
check:
|
||||||
|
name: Check Repository
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.repository == 'lumapu/ahoy' && github.ref_name == 'development03'
|
if: github.repository == 'lumapu/ahoy' && github.ref_name == 'development03'
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
@ -15,6 +16,7 @@ jobs:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
build-en:
|
build-en:
|
||||||
|
name: Build Environments (English)
|
||||||
needs: check
|
needs: check
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
@ -75,6 +77,7 @@ jobs:
|
||||||
path: firmware/*
|
path: firmware/*
|
||||||
|
|
||||||
build-de:
|
build-de:
|
||||||
|
name: Build Environments (German)
|
||||||
needs: check
|
needs: check
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
@ -135,8 +138,10 @@ jobs:
|
||||||
path: firmware/*
|
path: firmware/*
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
|
name: Deploy Environments
|
||||||
needs: [build-en, build-de]
|
needs: [build-en, build-de]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
continue-on-error: false
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
#- name: Copy boot_app0.bin
|
#- name: Copy boot_app0.bin
|
||||||
|
@ -155,7 +160,7 @@ jobs:
|
||||||
- name: Set Version
|
- name: Set Version
|
||||||
uses: cschleiden/replace-tokens@v1
|
uses: cschleiden/replace-tokens@v1
|
||||||
with:
|
with:
|
||||||
files: tools/esp8266/User_Manual.md
|
files: manual/User_Manual.md
|
||||||
env:
|
env:
|
||||||
VERSION: ${{ steps.version_name.outputs.name }}
|
VERSION: ${{ steps.version_name.outputs.name }}
|
||||||
|
|
||||||
|
|
158
.github/workflows/compile_release.yml
vendored
158
.github/workflows/compile_release.yml
vendored
|
@ -1,29 +1,50 @@
|
||||||
name: Ahoy Release for ESP8266/ESP32
|
name: Ahoy Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: main
|
branches: main
|
||||||
paths:
|
paths-ignore:
|
||||||
- 'src/**' # build only when changes occur here
|
- '**.md' # Do no build on *.md changes
|
||||||
- '.github/workflows/compile_release.yml'
|
|
||||||
- '!README.md'
|
|
||||||
- '!CHANGES.md'
|
|
||||||
- '!User_Manual.md'
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
name: Build Environments
|
||||||
|
needs: check
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: github.repository == 'lumapu/ahoy' && github.ref_name == 'main'
|
||||||
|
continue-on-error: false
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
variant:
|
||||||
|
- esp8266
|
||||||
|
- esp8266-prometheus
|
||||||
|
- esp8285
|
||||||
|
- esp32-wroom32
|
||||||
|
- esp32-wroom32-prometheus
|
||||||
|
- esp32-wroom32-ethernet
|
||||||
|
- esp32-s2-mini
|
||||||
|
- esp32-c3-mini
|
||||||
|
- opendtufusion
|
||||||
|
- opendtufusion-ethernet
|
||||||
|
- esp8266-de
|
||||||
|
- esp8266-prometheus-de
|
||||||
|
- esp8285-de
|
||||||
|
- esp32-wroom32-de
|
||||||
|
- esp32-wroom32-prometheus-de
|
||||||
|
- esp32-wroom32-ethernet-de
|
||||||
|
- esp32-s2-mini-de
|
||||||
|
- esp32-c3-mini-de
|
||||||
|
- opendtufusion-de
|
||||||
|
- opendtufusion-ethernet-de
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
- uses: benjlevesque/short-sha@v3.0
|
||||||
ref: main
|
|
||||||
- uses: benjlevesque/short-sha@v2.1
|
|
||||||
id: short-sha
|
id: short-sha
|
||||||
with:
|
with:
|
||||||
length: 7
|
length: 7
|
||||||
|
|
||||||
- name: Cache Pip
|
- name: Cache Pip
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ~/.cache/pip
|
path: ~/.cache/pip
|
||||||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
|
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
|
||||||
|
@ -31,13 +52,13 @@ jobs:
|
||||||
${{ runner.os }}-pip-
|
${{ runner.os }}-pip-
|
||||||
|
|
||||||
- name: Cache PlatformIO
|
- name: Cache PlatformIO
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ~/.platformio
|
path: ~/.platformio
|
||||||
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
|
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
|
||||||
|
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v4.3.0
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: "3.x"
|
python-version: "3.x"
|
||||||
|
|
||||||
|
@ -47,58 +68,91 @@ jobs:
|
||||||
pip install --upgrade platformio
|
pip install --upgrade platformio
|
||||||
|
|
||||||
- name: Run PlatformIO
|
- name: Run PlatformIO
|
||||||
run: pio run -d src --environment esp8266 --environment esp8266-prometheus --environment esp8285 --environment esp32-wroom32 --environment esp32-wroom32-prometheus --environment esp32-wroom32-ethernet --environment esp32-s2-mini --environment esp32-c3-mini --environment opendtufusion --environment opendtufusion-ethernet
|
run: pio run -d src -e ${{ matrix.variant }}
|
||||||
|
|
||||||
- name: Copy boot_app0.bin
|
- name: Rename Firmware
|
||||||
run: cp ~/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin src/.pio/build/opendtufusion/ota.bin
|
run: python scripts/getVersion.py ${{ matrix.variant }} >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Rename Binary files
|
- name: Create Artifact
|
||||||
id: rename-binary-files
|
uses: actions/upload-artifact@v4
|
||||||
working-directory: src
|
|
||||||
run: python ../scripts/getVersion.py >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
- name: Create Release
|
|
||||||
id: create-release
|
|
||||||
uses: actions/create-release@v1
|
|
||||||
with:
|
with:
|
||||||
draft: false
|
name: ${{ matrix.variant }}
|
||||||
prerelease: false
|
path: firmware/*
|
||||||
release_name: ${{ steps.rename-binary-files.outputs.name }}
|
|
||||||
tag_name: ${{ steps.rename-binary-files.outputs.name }}
|
|
||||||
body_path: src/CHANGES.md
|
release:
|
||||||
env:
|
name: Create Release
|
||||||
GITHUB_TOKEN: ${{ github.token }}
|
runs-on: ubuntu-latest
|
||||||
|
needs: [build]
|
||||||
|
continue-on-error: false
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Get Artifacts
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
merge-multiple: true
|
||||||
|
path: firmware
|
||||||
|
|
||||||
|
- name: Get Version from code
|
||||||
|
id: version_name
|
||||||
|
run: python scripts/getVersion.py ${{ matrix.variant }} >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Set Version
|
- name: Set Version
|
||||||
uses: cschleiden/replace-tokens@v1
|
uses: cschleiden/replace-tokens@v1
|
||||||
with:
|
with:
|
||||||
files: User_Manual.md
|
files: manual/User_Manual.md
|
||||||
env:
|
env:
|
||||||
VERSION: ${{ steps.rename-binary-files.outputs.name }}
|
VERSION: ${{ steps.version_name.outputs.name }}
|
||||||
|
|
||||||
- name: Create Artifact
|
|
||||||
run: zip --junk-paths ${{ steps.rename-binary-files.outputs.name }}.zip src/firmware/* User_Manual.md
|
|
||||||
|
|
||||||
- name: Upload Release
|
|
||||||
id: upload-release
|
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
upload_url: ${{ steps.create-release.outputs.upload_url }}
|
|
||||||
asset_path: ./${{ steps.rename-binary-files.outputs.name }}.zip
|
|
||||||
asset_name: ${{ steps.rename-binary-files.outputs.name }}.zip
|
|
||||||
asset_content_type: application/zip
|
|
||||||
|
|
||||||
- name: Rename firmware directory
|
- name: Rename firmware directory
|
||||||
run: mv src/firmware src/${{ steps.rename-binary-files.outputs.name }}
|
run: mv firmware ${{ steps.version_name.outputs.name }}
|
||||||
|
|
||||||
|
- name: Publish Release
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
uses: ncipollo/release-action@v1
|
||||||
|
with:
|
||||||
|
artifacts: ${{ steps.version_name.outputs.name }}
|
||||||
|
bodyFile: src/CHANGES.md
|
||||||
|
commit: "main"
|
||||||
|
tag: ${{ steps.rename-binary-files.outputs.name }}
|
||||||
|
name: ${{ steps.rename-binary-files.outputs.name }}
|
||||||
|
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
name: Deploy Environments to fw.ahoydtu.de
|
||||||
|
needs: [build]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
continue-on-error: false
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Get Artifacts
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
merge-multiple: true
|
||||||
|
path: firmware
|
||||||
|
|
||||||
|
- name: Get Version from code
|
||||||
|
id: version_name
|
||||||
|
run: python scripts/getVersion.py ${{ matrix.variant }} >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: Set Version
|
||||||
|
uses: cschleiden/replace-tokens@v1
|
||||||
|
with:
|
||||||
|
files: manual/User_Manual.md
|
||||||
|
env:
|
||||||
|
VERSION: ${{ steps.version_name.outputs.name }}
|
||||||
|
|
||||||
|
- name: Rename firmware directory
|
||||||
|
run: mv firmware ${{ steps.version_name.outputs.name }}
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
uses: nogsantos/scp-deploy@master
|
uses: nogsantos/scp-deploy@master
|
||||||
with:
|
with:
|
||||||
src: src/${{ steps.rename-binary-files.outputs.name }}/
|
src: ${{ steps.version_name.outputs.name }}/
|
||||||
host: ${{ secrets.FW_SSH_HOST }}
|
host: ${{ secrets.FW_SSH_HOST }}
|
||||||
remote: ${{ secrets.FW_SSH_DIR }}/release
|
remote: ${{ secrets.FW_SSH_DIR }}/dev
|
||||||
port: ${{ secrets.FW_SSH_PORT }}
|
port: ${{ secrets.FW_SSH_PORT }}
|
||||||
user: ${{ secrets.FW_SSH_USER }}
|
user: ${{ secrets.FW_SSH_USER }}
|
||||||
key: ${{ secrets.FW_SSH_KEY }}
|
key: ${{ secrets.FW_SSH_KEY }}
|
||||||
|
|
1297
src/CHANGES.md
1297
src/CHANGES.md
File diff suppressed because it is too large
Load diff
|
@ -13,7 +13,7 @@
|
||||||
//-------------------------------------
|
//-------------------------------------
|
||||||
#define VERSION_MAJOR 0
|
#define VERSION_MAJOR 0
|
||||||
#define VERSION_MINOR 8
|
#define VERSION_MINOR 8
|
||||||
#define VERSION_PATCH 82
|
#define VERSION_PATCH 83
|
||||||
|
|
||||||
//-------------------------------------
|
//-------------------------------------
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|
Loading…
Add table
Reference in a new issue