diff --git a/.github/workflows/compile_development.yml b/.github/workflows/compile_development.yml index 1d536b5e..91a54f4f 100644 --- a/.github/workflows/compile_development.yml +++ b/.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 diff --git a/scripts/getVersion.py b/scripts/getVersion.py index a60a772d..eaea47ba 100644 --- a/scripts/getVersion.py +++ b/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":