From c79b2afda1f358469cca26a52eafd51065232eb3 Mon Sep 17 00:00:00 2001 From: remittor Date: Fri, 6 Feb 2026 16:25:38 +0300 Subject: [PATCH] build: Add step "Build the TRX image without WiFi activation" --- .github/workflows/build.yml | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 530eae1..ca94aa6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -514,7 +514,7 @@ jobs: fi fi echo "status=success" >> $GITHUB_OUTPUT - + - name: Process out results id: install if: steps.compile.outputs.status == 'success' || env.FAKE_BUILD == 'true' @@ -575,6 +575,37 @@ jobs: echo "BLD_VER=$FW_VER" >> $GITHUB_ENV echo "OUT_DIR=$OUT_DIR" >> $GITHUB_ENV + - name: Build the TRX image without WiFi activation + id: compile_wifi_dis + if: steps.install.outputs.status == 'success' && env.TRX_BUILD == 'true' && env.FAKE_BUILD != 'true' && env.TEST_BUILD != 'true' + env: + TARGET: ${{ matrix.target }} + run: | + BLD_OUT_DIR=$OUT_DIR + NEW_OUT_DIR=./xout + mv -f "$OUT_DIR" $NEW_OUT_DIR + echo "OUT_DIR=$NEW_OUT_DIR" >> $GITHUB_ENV + ./xmake.sh -W -i -t $TARGET + if [ ! -d "$BLD_OUT_DIR" ]; then + echo "OUT_DIR not found!" + exit 99 + fi + cd "$BLD_OUT_DIR" + echo "Firmware TRX $BLD_VER [$FILE_DATE] builded!" + if [ ! -f kernel-debug.tar.zst ]; then + echo "File kernel-debug.tar.zst not found!" + exit 100 + fi + find . -maxdepth 1 -type f ! -name '*-initramfs*' ! -name 'FLAG-*' -delete + VER_MAJOR=$( echo "$BLD_VER" | cut -d. -f1 ) + WIFIDIS_DIR=$NEW_OUT_DIR/images-WiFi-disabled + mkdir -p $WIFIDIS_DIR + STD_IMG_DIR="$WIFIDIS_DIR/openwrt-initramfs-bin-for-luci" + mkdir -p $STD_IMG_DIR + find . -maxdepth 1 -type f -name '*-initramfs*.bin' -exec mv -f {} $STD_IMG_DIR/openwrt-${VER_MAJOR}_${TARGET}_initramfs_nowifi.bin \; + find . -maxdepth 1 -type f -name '*-initramfs*.trx' -exec mv -f {} $WIFIDIS_DIR/openwrt-${VER_MAJOR}_${TARGET}_initramfs_nowifi.trx \; + echo "status=success" >> $GITHUB_OUTPUT + - name: Check space usage run: df -hT