Skip to content

Commit a1a4457

Browse files
committed
fix
1 parent f99036b commit a1a4457

4 files changed

Lines changed: 12 additions & 9 deletions

File tree

.github/workflows/NanoPi-Build.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ jobs:
105105
continue-on-error: true
106106
run: |
107107
cd build/openwrt
108-
let make_process=$(nproc)+2
108+
let make_process=$(nproc)+1
109109
make toolchain/install -j${make_process}
110110
111111
- name: If toolchain Error
@@ -203,7 +203,7 @@ jobs:
203203
continue-on-error: true
204204
run: |
205205
cd build/openwrt
206-
let make_process=$(nproc)+2
206+
let make_process=$(nproc)+1
207207
make -j${make_process} || make -j${make_process}
208208
209209
- name: If compile openwrt Error
@@ -250,6 +250,7 @@ jobs:
250250
- name: Create release
251251
id: create_release
252252
uses: ncipollo/release-action@v1.9.0
253+
if: ${{ !cancelled() }}
253254
with:
254255
name: OpenWrt ${{ env.OPENWRT_BRANCH }} ${{ env.BUILD_DATE }}
255256
allowUpdates: true

openwrt-21.02/seed/ao-R4S-full.seed

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ CONFIG_IPERF_ENABLE_MULTICAST=y
2222
CONFIG_KERNEL_ARM_PMU=y
2323
CONFIG_KERNEL_BLK_DEV_THROTTLING_LOW=y
2424
CONFIG_KERNEL_BTRFS_FS_POSIX_ACL=y
25-
CONFIG_KERNEL_BUILD_DOMAIN="zzz"
25+
CONFIG_KERNEL_BUILD_DOMAIN="openwrt"
2626
CONFIG_KERNEL_BUILD_USER="ao"
2727
CONFIG_KERNEL_CFQ_GROUP_IOSCHED=y
2828
CONFIG_KERNEL_CGROUP_DEVICE=y

openwrt-21.02/seed/ao-R4S-mini.seed

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ CONFIG_IFSTAT_SNMP=y
1515
CONFIG_IPERF_ENABLE_MULTICAST=y
1616
CONFIG_KERNEL_ARM_PMU=y
1717
CONFIG_KERNEL_BTRFS_FS_POSIX_ACL=y
18-
CONFIG_KERNEL_BUILD_DOMAIN="zzz"
18+
CONFIG_KERNEL_BUILD_DOMAIN="openwrt"
1919
CONFIG_KERNEL_BUILD_USER="ao"
2020
# CONFIG_KERNEL_CGROUPS is not set
2121
CONFIG_KERNEL_EXT4_FS_POSIX_ACL=y

openwrt-21.02/steps/04-prepare_package.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,14 @@ cp -R ../stangri_repo/vpn-policy-routing feeds/packages/net/
3131
#./scripts/feeds install -p stangri_repo luci-app-vpn-policy-routing
3232

3333
# Time stamp with $Build_Date=$(date +%Y.%m.%d)
34-
echo "Build date github action $BUILD_DATE"
35-
echo -e '\nAO Build@'$(date "+%Y.%m.%d")'\n' >> package/base-files/files/etc/banner
36-
sed -i '/DISTRIB_REVISION/d' package/base-files/files/etc/openwrt_release
37-
echo "DISTRIB_REVISION='$(date "+%Y.%m.%d")'" >> package/base-files/files/etc/openwrt_release
34+
MANUAL_DATE="$(date +%Y.%m.%d) (manual build)"
35+
BUILD_DATE=${BUILD_DATE:-$MANUAL_DATE}
36+
echo "Write build date in openwrt : $BUILD_DATE"
37+
echo -e '\nAO Build@'${BUILD_DATE}'\n' >> package/base-files/files/etc/banner
38+
#sed -i '/DISTRIB_REVISION/d' package/base-files/files/etc/openwrt_release
39+
#echo "DISTRIB_REVISION='${BUILD_DATE}'" >> package/base-files/files/etc/openwrt_release
3840
sed -i '/DISTRIB_DESCRIPTION/d' package/base-files/files/etc/openwrt_release
39-
echo "DISTRIB_DESCRIPTION='AO Build@$(date "+%Y.%m.%d")'" >> package/base-files/files/etc/openwrt_release
41+
echo "DISTRIB_DESCRIPTION='AO Build@${BUILD_DATE}'" >> package/base-files/files/etc/openwrt_release
4042
sed -i '/luciversion/d' feeds/luci/modules/luci-base/luasrc/version.lua
4143

4244
rm -rf .config

0 commit comments

Comments
 (0)