Update GitHub Actions to use factory and firmware files only

- Modified release and prerelease workflows to use firmware/ folder instead of separate binaries
- Removed archiving of individual bootloader, partitions, and boot_app0 files
- Releases now contain only factory.bin (complete) and firmware.bin (update) files
- Simplified workflow by removing binary renaming steps
This commit is contained in:
bitmaker
2025-09-02 00:46:05 +02:00
parent 698e6b7317
commit 3e9f7f361b
2 changed files with 14 additions and 40 deletions

View File

@@ -25,17 +25,11 @@ jobs:
run: pip install --upgrade platformio
- name: Build PlatformIO Project
run: pio run
- name: Archive built binaries
- name: Archive firmware files
uses: actions/upload-artifact@v4
with:
name: built-binaries-${{ github.sha }}
path: .pio/build/*/*.bin
if-no-files-found: error
- name: Archive bootapp binary
uses: actions/upload-artifact@v4
with:
name: bootapp-binary-${{ github.sha }}
path: ~/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin
name: firmware-files-${{ github.sha }}
path: firmware/
if-no-files-found: error
- name: Get version
id: version_step
@@ -49,18 +43,11 @@ jobs:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/dev'
steps:
- name: Download built binaries
- name: Download firmware files
uses: actions/download-artifact@v4
with:
path: ${{ github.workspace }}/binaries
name: built-binaries-${{ github.sha }}
- name: Download bootapp binary
uses: actions/download-artifact@v4
with:
path: ${{ github.workspace }}/binaries
name: bootapp-binary-${{ github.sha }}
- name: Rename built binaries
run: find ${{ github.workspace }}/binaries -mindepth 2 -maxdepth 3 -type f -name "*.bin" -exec sh -c 'cp "$0" "${{ github.workspace }}/binaries/$(basename $(dirname "$0"))_$(basename $0)"' {} \;
path: ${{ github.workspace }}/
name: firmware-files-${{ github.sha }}
- name: Pre-release
uses: softprops/action-gh-release@v2
with:
@@ -70,5 +57,5 @@ jobs:
generate_release_notes: true
prerelease: true
fail_on_unmatched_files: true
files: ${{ github.workspace }}/binaries/*.bin
files: ${{ github.workspace }}/firmware/**/*.bin

View File

@@ -25,17 +25,11 @@ jobs:
run: pip install --upgrade platformio
- name: Build PlatformIO Project
run: pio run
- name: Archive built binaries
- name: Archive firmware files
uses: actions/upload-artifact@v4
with:
name: built-binaries-${{ github.sha }}
path: .pio/build/*/*.bin
if-no-files-found: error
- name: Archive bootapp binary
uses: actions/upload-artifact@v4
with:
name: bootapp-binary-${{ github.sha }}
path: ~/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin
name: firmware-files-${{ github.sha }}
path: firmware/
if-no-files-found: error
- name: Get version
id: version_step
@@ -59,18 +53,11 @@ jobs:
issue-title: "Releasing Nerdminer version ${{ needs.build.outputs.version }}"
issue-body: "Please approve or deny the release of ${{ needs.build.outputs.version }}."
exclude-workflow-initiator-as-approver: false
- name: Download built binaries
- name: Download firmware files
uses: actions/download-artifact@v4
with:
path: ${{ github.workspace }}/binaries
name: built-binaries-${{ github.sha }}
- name: Download bootapp binary
uses: actions/download-artifact@v4
with:
path: ${{ github.workspace }}/binaries
name: bootapp-binary-${{ github.sha }}
- name: Rename built binaries
run: find ${{ github.workspace }}/binaries -mindepth 2 -maxdepth 3 -type f -name "*.bin" -exec sh -c 'cp "$0" "${{ github.workspace }}/binaries/$(basename $(dirname "$0"))_$(basename $0)"' {} \;
path: ${{ github.workspace }}/
name: firmware-files-${{ github.sha }}
- name: Release
uses: softprops/action-gh-release@v2
with:
@@ -80,5 +67,5 @@ jobs:
generate_release_notes: true
make_latest: true
fail_on_unmatched_files: true
files: ${{ github.workspace }}/binaries/*.bin
files: ${{ github.workspace }}/firmware/**/*.bin