From 5a0de0f5e1153af1327b3438588e370021315e4c Mon Sep 17 00:00:00 2001 From: probonopd Date: Tue, 22 Apr 2025 19:40:11 +0200 Subject: [PATCH] merge-multiple: true --- .github/workflows/build.yml | 28 +++++----------------------- 1 file changed, 5 insertions(+), 23 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c28229d..5248d4b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -89,7 +89,7 @@ jobs: id: upload64 uses: actions/upload-artifact@v4 with: - name: MiniDexed_${{ github.run_number }}_${{ env.GIT_INFO }}_build64 + name: MiniDexed_${{ github.run_number }}_${{ env.GIT_INFO }}_64bit path: sdcard/* build32: @@ -130,20 +130,11 @@ jobs: RPI=1 bash -ex build.sh cp ./src/kernel*.img ./sdcard/ - # For the 32-bit build, assume that the additional folders/files are shared so copy them as well. - - name: Copy extra files for 32-bit - run: | - mkdir -p sdcard/firmware sdcard/hardware sdcard/performance - cp -r ./firmware/* sdcard/firmware/ || true - cp -r ./hardware/* sdcard/hardware/ || true - cp -r ./performance/* sdcard/performance/ || true - cp ./wpa_supplicant.conf sdcard/ || true - - name: Upload 32-bit artifacts id: upload32 uses: actions/upload-artifact@v4 with: - name: MiniDexed_${{ github.run_number }}_${{ env.GIT_INFO }}_build32 + name: MiniDexed_${{ github.run_number }}_${{ env.GIT_INFO }}_32bit path: sdcard/* combine: @@ -151,26 +142,17 @@ jobs: runs-on: ubuntu-22.04 needs: [ build64, build32 ] steps: - - name: Download 64-bit artifacts + - name: Download artifacts uses: actions/download-artifact@v4 with: - name: MiniDexed_${{ github.run_number }}_${{ env.GIT_INFO }}_build64 - path: combined - - name: Download 32-bit artifacts - uses: actions/download-artifact@v4 - with: - name: MiniDexed_${{ github.run_number }}_${{ env.GIT_INFO }}_build32 + pattern: MiniDexed_* + merge-multiple: true path: combined - name: Create combined ZIP file run: | cd combined zip -r ../MiniDexed_${{ github.run_number }}_${{ env.GIT_INFO }}.zip . cd .. - - name: Upload combined ZIP artifact - uses: actions/upload-artifact@v4 - with: - name: MiniDexed_${{ github.run_number }}_${{ env.GIT_INFO }}_combined - path: MiniDexed_${{ github.run_number }}_${{ env.GIT_INFO }}.zip - name: Upload to GitHub Releases (only when building from main branch) if: ${{ github.ref == 'refs/heads/main' }} run: |