From 3e9f7f361bbefc259659e3ca9770fdafa6211cfb Mon Sep 17 00:00:00 2001 From: bitmaker Date: Tue, 2 Sep 2025 00:46:05 +0200 Subject: [PATCH] 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 --- .github/workflows/prerelease.yml | 27 +++++++-------------------- .github/workflows/release.yml | 27 +++++++-------------------- 2 files changed, 14 insertions(+), 40 deletions(-) diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index 968e7dd..eec3048 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4f32f58..6fd47a1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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