From d1ef12c91236b34379ca1f27d17c4bb710997f0f Mon Sep 17 00:00:00 2001 From: Pdboy Sir <63764630+sirpdboy@users.noreply.github.com> Date: Wed, 10 Apr 2024 10:43:02 +0800 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 63 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..0a79dc1 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,63 @@ +name: Build + +on: + push: + tags: + - v2.** + +jobs: + build: + name: Build ${{ matrix.arch }}-${{ matrix.sdk }} + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + arch: + - aarch64_cortex-a53 + - aarch64_cortex-a72 + - aarch64_generic + - arm_arm1176jzf-s_vfp + - arm_arm926ej-s + - arm_cortex-a15_neon-vfpv4 + - arm_cortex-a5_vfpv4 + - arm_cortex-a7 + - arm_cortex-a7_neon-vfpv4 + - arm_cortex-a8_vfpv3 + - arm_cortex-a9 + - arm_cortex-a9_neon + - arm_cortex-a9_vfpv3-d16 + - arm_mpcore + - i386_pentium4 + - mips_mips32 + - mipsel_mips32 + - x86_64 + sdk: + - openwrt-21.02 + + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Building packages + uses: sbwml/openwrt-gh-action-sdk@go1.22 + env: + ARCH: ${{ matrix.arch }}-${{ matrix.sdk }} + FEEDNAME: packages_ci + PACKAGES: luci-app-netspeedtest + NO_REFRESH_CHECK: true + + - name: Upload artifacts + uses: actions/upload-artifact@v3 + with: + name: ${{ matrix.arch }} + path: bin/packages/${{ matrix.arch }}/packages_ci/*.ipk + + - name: Upload packages + uses: ncipollo/release-action@v1 + with: + name: ${{ github.ref_name }} + token: ${{ secrets.GITHUB_TOKEN }} + allowUpdates: true + replacesArtifacts: true + artifacts: "bin/packages/${{ matrix.arch }}/packages_ci/*.ipk"