Browse Source

0.8.122

* update workflow to upload elf file to fw.ahoydtu.de
pull/1541/head
lumapu 8 months ago
parent
commit
73ca5aae9f
  1. 28
      .github/workflows/compile_development.yml
  2. 1
      scripts/getVersion.py

28
.github/workflows/compile_development.yml

@ -132,6 +132,11 @@ jobs:
- name: Run PlatformIO
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
run: python scripts/getVersion.py ${{ matrix.variant }} >> $GITHUB_OUTPUT
@ -188,15 +193,6 @@ jobs:
with:
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
uses: nogsantos/scp-deploy@master
with:
@ -206,3 +202,17 @@ jobs:
port: ${{ secrets.FW_SSH_PORT }}
user: ${{ secrets.FW_SSH_USER }}
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

1
scripts/getVersion.py

@ -80,6 +80,7 @@ def renameFw(path_define, env):
if env[:5] == "esp32":
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 + "/firmware.elf.7z", dst + "firmware.elf.7z")
genOtaBin(dst)
if env[:7] == "esp8285":

Loading…
Cancel
Save