From 64380bffa5b00e3225218254f7d9a424dd945d6f Mon Sep 17 00:00:00 2001 From: Jeffery To Date: Tue, 7 Nov 2023 17:40:15 +0800 Subject: [PATCH] CI: Update sdk action, always upload artifacts The updated version of gh-action-sdk will return compiled packages and build logs for both build success and build errors. This ensures these artifacts are always uploaded. This also sets the V environment variable to enable verbose build output. Signed-off-by: Jeffery To (cherry picked from commit aca4330c0427a7a2d1cdc23b14207a95a15b292c) --- .github/workflows/multi-arch-test-build.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/multi-arch-test-build.yml b/.github/workflows/multi-arch-test-build.yml index 371985041c..8308ed8d6c 100644 --- a/.github/workflows/multi-arch-test-build.yml +++ b/.github/workflows/multi-arch-test-build.yml @@ -97,17 +97,20 @@ jobs: echo "$EOF" >> $GITHUB_ENV - name: Build - uses: openwrt/gh-action-sdk@v5 + uses: openwrt/gh-action-sdk@v7 env: ARCH: ${{ matrix.arch }}-${{ env.BRANCH }} FEEDNAME: packages_ci INDEX: 1 KEY_BUILD: ${{ env.KEY_BUILD }} + V: s - name: Move created packages to project dir + if: always() run: cp bin/packages/${{ matrix.arch }}/packages_ci/* . || true - name: Collect metadata + if: always() run: | MERGE_ID=$(git rev-parse --short HEAD) echo "MERGE_ID=$MERGE_ID" >> $GITHUB_ENV @@ -118,6 +121,7 @@ jobs: echo "ARCHIVE_NAME=${{matrix.arch}}-PR$PRNUMBER-$MERGE_ID" >> $GITHUB_ENV - name: Generate metadata + if: always() run: | cat << _EOF_ > PKG-INFO Metadata-Version: 2.1 @@ -144,6 +148,7 @@ jobs: cat PKG-INFO - name: Store packages + if: always() uses: actions/upload-artifact@v3 with: name: ${{env.ARCHIVE_NAME}}-packages @@ -154,6 +159,7 @@ jobs: PKG-INFO - name: Store logs + if: always() uses: actions/upload-artifact@v3 with: name: ${{env.ARCHIVE_NAME}}-logs @@ -162,6 +168,7 @@ jobs: PKG-INFO - name: Remove logs + if: always() run: sudo rm -rf logs/ || true - name: Check if any packages were built -- 2.30.2