GitHub: Don't print config anymore #22
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 OpenWRT firmware | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - dev | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| name: Build OpenWRT ${{ matrix.version }} for ${{ matrix.lunch }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| lunch: | |
| - netgear_r6020 | |
| - tplink_tl-wdr4300-v1 | |
| version: | |
| - main | |
| - v24.10.2 | |
| steps: | |
| - name: Restore cache of OpenWRT builder if it exists | |
| uses: actions/cache@v3 | |
| with: | |
| path: openwrt-builder | |
| key: ${{ runner.os }}-${{ matrix.version }}-${{ matrix.lunch }} | |
| - name: Check if the OpenWRT builder exists | |
| id: check | |
| run: | | |
| if [ ! -d "openwrt-builder/.git" ]; then | |
| echo "exists=false" >> $GITHUB_OUTPUT | |
| else | |
| echo "exists=true" >> $GITHUB_OUTPUT | |
| fi | |
| - name: Clone the OpenWRT builder | |
| if: steps.check.outputs.exists == 'false' | |
| uses: actions/checkout@v4 | |
| with: | |
| path: openwrt-builder | |
| - name: Clone JoshuaDoes/luci-theme-material3 into joshuadoes feed | |
| if: steps.check.outputs.exists == 'false' | |
| uses: actions/checkout@v4 | |
| with: | |
| path: openwrt-builder/feeds/joshuadoes/luci-theme-material3 | |
| repository: JoshuaDoes/luci-theme-material3 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y build-essential clang flex bison g++ gawk \ | |
| gcc-multilib gettext libncurses-dev libssl-dev python3-setuptools \ | |
| rsync unzip zlib1g-dev file wget python3 python3-pip libelf-dev ccache \ | |
| qemu-utils | |
| - name: Build firmware | |
| run: | | |
| set +e | |
| cd openwrt-builder | |
| git pull | |
| cp -R .github/workflows/openwrt-build/* . | |
| . build/envsetup | |
| sync "${{ matrix.version }}" | |
| lunch "${{ matrix.lunch }}" | |
| sync | |
| make | |
| package luci-theme-material3 | |
| echo "out=$OUT" >> $GITHUB_ENV | |
| - name: Upload firmware artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: openwrt-${{ matrix.version }}-${{ matrix.lunch }} | |
| path: ${{ env.out }} | |
| compression-level: 0 | |
| if-no-files-found: error |