From 3e110138cd50858dce75157a48664647bf747aed Mon Sep 17 00:00:00 2001 From: arix00 <15333224+arix00@users.noreply.github.com> Date: Thu, 12 Sep 2024 00:08:06 -0700 Subject: [PATCH] workflow for building mx4300 release both image and kmods(in packages.tar.gz) Signed-off-by: arix00 <15333224+arix00@users.noreply.github.com> --- .github/workflows/build_mx4300.yml | 58 ++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 .github/workflows/build_mx4300.yml diff --git a/.github/workflows/build_mx4300.yml b/.github/workflows/build_mx4300.yml new file mode 100644 index 00000000000000..cc683ddab13b3f --- /dev/null +++ b/.github/workflows/build_mx4300.yml @@ -0,0 +1,58 @@ +name: Build MX4300 + +on: workflow_dispatch + +jobs: + build: + name: Build MX4300 firmware images + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Install packages + run: | + sudo apt-get update && \ + sudo apt-get install -y \ + build-essential \ + clang \ + flex \ + bison \ + g++ \ + gawk \ + gcc-multilib \ + g++-multilib \ + gettext \ + git \ + libncurses-dev \ + libssl-dev \ + python3-distutils \ + rsync \ + unzip \ + zlib1g-dev \ + file \ + wget && \ + sudo apt-get clean + + - name: Checkout + uses: actions/checkout@v4 + + - name: Import config + run: mv .config_mx4300 .config + + - name: Update feeds + run: make package/symlinks + + - name: Build firmware images + run: make -j$(($(nproc)+1)) download world + + - name: Pack packages + run: tar cvfz bin/packages.tar.gz bin/targets/qualcommax/ipq807x/packages/ + + - name: Get SHA + uses: benjlevesque/short-sha@v2.2 + + - name: Release + uses: ncipollo/release-action@v1 + with: + tag: qualcommax-${{ env.SHA }} + artifacts: bin/targets/qualcommax/ipq807x/openwrt-qualcommax-ipq807x-*, bin/packages.tar.gz