aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorJeffery To <jeffery.to@gmail.com>2023-11-07 17:40:15 +0800
committerPaul Spooren <mail@aparcar.org>2023-11-08 09:30:59 +0100
commitaca4330c0427a7a2d1cdc23b14207a95a15b292c (patch)
treea77f014d1aebc9c49e0db46cc4af9c758b9c47bf /.github
parentddb4136bcede2b69b646feddd3bbd9d7e168ba6c (diff)
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 <jeffery.to@gmail.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/multi-arch-test-build.yml9
1 files changed, 8 insertions, 1 deletions
diff --git a/.github/workflows/multi-arch-test-build.yml b/.github/workflows/multi-arch-test-build.yml
index 57182b96b..396bd190d 100644
--- a/.github/workflows/multi-arch-test-build.yml
+++ b/.github/workflows/multi-arch-test-build.yml
@@ -101,17 +101,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
@@ -122,6 +125,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
@@ -148,6 +152,7 @@ jobs:
cat PKG-INFO
- name: Store packages
+ if: always()
uses: actions/upload-artifact@v3
with:
name: ${{env.ARCHIVE_NAME}}-packages
@@ -158,6 +163,7 @@ jobs:
PKG-INFO
- name: Store logs
+ if: always()
uses: actions/upload-artifact@v3
with:
name: ${{env.ARCHIVE_NAME}}-logs
@@ -166,6 +172,7 @@ jobs:
PKG-INFO
- name: Remove logs
+ if: always()
run: sudo rm -rf logs/ || true
- name: Check if any packages were built