From 72c5c0cce0cb5ba09c60997eec55942874ac5f67 Mon Sep 17 00:00:00 2001 From: sbwml Date: Mon, 15 May 2023 15:48:47 +0800 Subject: [PATCH] ci: re-add openwrt-21.02 sdk --- .github/workflows/release-build.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index c6ffcfa..dbdf4e7 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -7,7 +7,7 @@ on: jobs: build: - name: Build ${{ matrix.arch }} + name: Build ${{ matrix.arch }}-${{ matrix.sdk }} runs-on: ubuntu-latest strategy: fail-fast: false @@ -40,6 +40,9 @@ jobs: - mipsel_74kc - mipsel_mips32 - x86_64 + sdk: + - openwrt-21.02 + - openwrt-22.03 steps: - uses: actions/checkout@v3 @@ -49,7 +52,7 @@ jobs: - name: Build uses: sbwml/openwrt-gh-action-sdk@go1.20 env: - ARCH: ${{ matrix.arch }}-openwrt-22.03 + ARCH: ${{ matrix.arch }}-${{ matrix.sdk }} FEEDNAME: packages_ci PACKAGES: luci-app-alist NO_REFRESH_CHECK: true @@ -57,9 +60,13 @@ jobs: - name: Upload artifacts uses: actions/upload-artifact@v3 with: - name: ${{ matrix.arch }} + name: ${{ matrix.arch }}-${{ matrix.sdk }} path: bin/packages/${{ matrix.arch }}/packages_ci/*.ipk + - name: Create compress files + run: | + tar -zcvf ${{ matrix.sdk }}-${{ matrix.arch }}.tar.gz -C bin/packages/${{ matrix.arch }}/ packages_ci + - name: Upload packages uses: ncipollo/release-action@v1 with: @@ -67,4 +74,4 @@ jobs: token: ${{ secrets.workflow_token }} allowUpdates: true replacesArtifacts: true - artifacts: "bin/packages/${{ matrix.arch }}/packages_ci/*.ipk" + artifacts: "${{ matrix.sdk }}-${{ matrix.arch }}.tar.gz"