mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-21 21:06:10 +02:00
0.8.122
* update workflow to upload elf file to fw.ahoydtu.de
This commit is contained in:
parent
b40e815320
commit
73ca5aae9f
2 changed files with 20 additions and 9 deletions
28
.github/workflows/compile_development.yml
vendored
28
.github/workflows/compile_development.yml
vendored
|
@ -132,6 +132,11 @@ jobs:
|
||||||
- name: Run PlatformIO
|
- name: Run PlatformIO
|
||||||
run: pio run -d src -e ${{ matrix.variant }}
|
run: pio run -d src -e ${{ matrix.variant }}
|
||||||
|
|
||||||
|
- name: Compress .elf
|
||||||
|
uses: edgarrc/action-7z@v1
|
||||||
|
with:
|
||||||
|
args: 7z a -t7z -mx=9 src/.pio/build/${{ matrix.variant }}firmware.elf.7z src/.pio/build/${{ matrix.variant }}firmware.elf
|
||||||
|
|
||||||
- name: Rename Firmware
|
- name: Rename Firmware
|
||||||
run: python scripts/getVersion.py ${{ matrix.variant }} >> $GITHUB_OUTPUT
|
run: python scripts/getVersion.py ${{ matrix.variant }} >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
@ -188,15 +193,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: dev-*
|
name: dev-*
|
||||||
|
|
||||||
- name: Create Artifact
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: dev-${{ steps.version_name.outputs.name }}
|
|
||||||
path: |
|
|
||||||
${{ steps.version_name.outputs.name }}/*
|
|
||||||
manual/User_Manual.md
|
|
||||||
manual/Getting_Started.md
|
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
uses: nogsantos/scp-deploy@master
|
uses: nogsantos/scp-deploy@master
|
||||||
with:
|
with:
|
||||||
|
@ -206,3 +202,17 @@ jobs:
|
||||||
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 }}
|
||||||
|
|
||||||
|
- name: Clean elf files (7z compressed) for Artifact
|
||||||
|
run: |
|
||||||
|
rm -f \
|
||||||
|
${{ steps.version_name.outputs.name }}/*/firmware.elf.7z
|
||||||
|
|
||||||
|
- name: Create Artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: dev-${{ steps.version_name.outputs.name }}
|
||||||
|
path: |
|
||||||
|
${{ steps.version_name.outputs.name }}/*
|
||||||
|
manual/User_Manual.md
|
||||||
|
manual/Getting_Started.md
|
||||||
|
|
|
@ -80,6 +80,7 @@ def renameFw(path_define, env):
|
||||||
if env[:5] == "esp32":
|
if env[:5] == "esp32":
|
||||||
os.rename("src/.pio/build/" + env + "/bootloader.bin", dst + "bootloader.bin")
|
os.rename("src/.pio/build/" + env + "/bootloader.bin", dst + "bootloader.bin")
|
||||||
os.rename("src/.pio/build/" + env + "/partitions.bin", dst + "partitions.bin")
|
os.rename("src/.pio/build/" + env + "/partitions.bin", dst + "partitions.bin")
|
||||||
|
os.rename("src/.pio/build/" + env + "/firmware.elf.7z", dst + "firmware.elf.7z")
|
||||||
genOtaBin(dst)
|
genOtaBin(dst)
|
||||||
|
|
||||||
if env[:7] == "esp8285":
|
if env[:7] == "esp8285":
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue