Build #310
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build | |
| on: workflow_dispatch | |
| jobs: | |
| build: | |
| name: Build firmware images | |
| runs-on: ubuntu-24.04-arm | |
| env: | |
| OS: ubuntu-24.04-arm | |
| TARGET: mediatek | |
| SUBTARGET: filogic | |
| VERSION: "main" | |
| defaults: | |
| run: | |
| working-directory: ${{ env.TARGET }}_${{ env.VERSION }} | |
| permissions: | |
| actions: write | |
| contents: write | |
| steps: | |
| - name: Install packages | |
| uses: awalsh128/cache-apt-pkgs-action@v1 | |
| with: | |
| packages: build-essential \ | |
| clang \ | |
| flex \ | |
| bison \ | |
| g++ \ | |
| gawk \ | |
| gcc-multilib \ | |
| g++-multilib \ | |
| gettext \ | |
| git \ | |
| libncurses5-dev \ | |
| libssl-dev \ | |
| python3-netifaces \ | |
| python3-pkg-resources \ | |
| python3-setuptools \ | |
| python3-socks \ | |
| python3-unidecode \ | |
| rsync \ | |
| swig \ | |
| unzip \ | |
| zlib1g-dev \ | |
| file \ | |
| wget | |
| - name: Restore cache | |
| id: cache-restore | |
| uses: actions/cache/restore@v4 | |
| with: | |
| path: ${{ env.TARGET }}_${{ env.VERSION }} | |
| key: ${{ env.OS }}-${{ env.TARGET }}_${{ env.VERSION }} | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| path: ${{ env.TARGET }}_${{ env.VERSION }} | |
| clean: false | |
| - name: Get SHA | |
| uses: benjlevesque/short-sha@v3.0 | |
| - name: Import config | |
| run: mv .config_${{ env.TARGET }}_${{ env.SUBTARGET }}_${{ env.VERSION }} .config | |
| - name: Update config | |
| run: make defconfig | |
| - name: Update feeds | |
| run: make package/symlinks | |
| - name: Prepare build | |
| run: make -j$(($(nproc)+1)) download prepare | |
| - name: Check dtb | |
| run: make -j1 V=sc target/linux/dtb | |
| - name: Build firmware images | |
| run: make -j$(($(nproc)+1)) world | |
| - name: Release | |
| uses: ncipollo/release-action@v1 | |
| with: | |
| commit: ${{ github.sha }} | |
| tag: ${{ env.TARGET }}-${{ env.SUBTARGET }}-${{ env.VERSION }}-${{ env.SHA }} | |
| artifacts: | | |
| ${{ env.TARGET }}_${{ env.VERSION }}/bin/targets/${{ env.TARGET }}/${{ env.SUBTARGET }}/openwrt-${{ env.TARGET }}-${{ env.SUBTARGET }}-* | |
| ${{ env.TARGET }}_${{ env.VERSION }}/bin/targets/${{ env.TARGET }}/${{ env.SUBTARGET }}/mt798* | |
| makeLatest: true | |
| body: "Branch: ${{ github.ref_name }}" |