Skip to content

GitHub: Don't print config anymore #22

GitHub: Don't print config anymore

GitHub: Don't print config anymore #22

Workflow file for this run

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