Skip to content

Commit e4c068d

Browse files
authored
Update NanoPi-R4S RK3399 OpenWrt 19.07 Build.yml
1 parent 4940c40 commit e4c068d

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

.github/workflows/NanoPi-R4S RK3399 OpenWrt 19.07 Build.yml

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
sudo apt-get -y install upx-ucl unzip subversion
3232
sudo apt-get -y purge dotnet* ghc* google* llvm* mysql* php* zulu* firefox hhvm
3333
sudo apt-get -y autoremove --purge
34-
wget -O - https://raw.githubusercontent.com/friendlyarm/build-env-on-ubuntu-bionic/master/install.sh | bash
34+
wget -O - https://raw.githubusercontent.com/friendlyarm/build-env-on-ubuntu-bionic/master/install.sh | sed 's/python-/python3-/g' | /bin/bash
3535
3636
#- name: Setup Debug Session
3737
# uses: P3TERX/debugger-action@master
@@ -68,12 +68,12 @@ jobs:
6868
6969
git clone https://github.com/jerrykuku/lua-maxminddb.git
7070
git clone https://github.com/jerrykuku/luci-app-vssr.git
71-
git clone --depth=1 -b master https://github.com/vernesong/OpenClash
71+
#git clone --depth=1 -b master https://github.com/vernesong/OpenClash
7272
7373
rm -rf lean/luci-theme-argon
7474
git clone -b 18.06 https://github.com/jerrykuku/luci-theme-argon.git
7575
76-
# svn co https://github.com/vernesong/OpenClash/trunk/luci-app-openclash
76+
svn co https://github.com/vernesong/OpenClash/trunk/luci-app-openclash
7777
# svn co https://github.com/vernesong/OpenClash/trunk/luci-app-openclash
7878
7979
svn co https://github.com/xiaorouji/openwrt-passwall/trunk/luci-app-passwall
@@ -85,12 +85,15 @@ jobs:
8585
svn co https://github.com/xiaorouji/openwrt-passwall/trunk/brook
8686
svn co https://github.com/xiaorouji/openwrt-passwall/trunk/chinadns-ng
8787
svn co https://github.com/xiaorouji/openwrt-passwall/trunk/xray-core
88+
svn co https://github.com/xiaorouji/openwrt-passwall/trunk/xray-plugin
8889
8990
# svn co https://github.com/songchenwen/nanopi-r2s/trunk/luci-app-r2sflasher
9091
9192
svn co https://github.com/pymumu/smartdns/trunk/package/openwrt smartdns
9293
svn co https://github.com/pymumu/luci-app-smartdns/branches/lede luci-app-smartdns
9394
95+
svn co https://github.com/lisaac/luci-app-dockerman/trunk/applications/luci-app-dockerman
96+
9497
git clone https://github.com/jerrykuku/luci-app-jd-dailybonus.git
9598
git clone https://github.com/NateLol/luci-app-oled
9699
@@ -99,7 +102,7 @@ jobs:
99102
cd code/friendlywrt/package/base-files/files
100103
mkdir -p etc/openclash/core
101104
# for updates, go to: https://github.com/Dreamacro/clash/releases
102-
wget -qO- https://github.com/Dreamacro/clash/releases/download/v1.3.5/clash-linux-armv8-v1.3.5.gz | gunzip -c > etc/openclash/core/clash
105+
wget -qO- https://github.com/Dreamacro/clash/releases/download/v1.4.1/clash-linux-armv8-v1.4.1.gz | gunzip -c > etc/openclash/core/clash
103106
# for updates, go to: https://github.com/vernesong/OpenClash/releases/tag/TUN-Premium
104107
wget -qO- https://github.com/vernesong/OpenClash/releases/download/TUN-Premium/clash-linux-armv8-2021.02.21.gz | gunzip -c > etc/openclash/core/clash_tun
105108
# for updates, go to: https://github.com/vernesong/OpenClash/releases/tag/TUN
@@ -144,14 +147,15 @@ jobs:
144147
wget -O friendlywrt/feeds/packages/libs/libxml2/Makefile https://raw.githubusercontent.com/coolsnowwolf/packages/master/libs/libxml2/Makefile
145148
146149
sed -i "/redirect_https/d" friendlywrt/package/network/services/uhttpd/files/uhttpd.config
147-
#sed -i '/Load Average/i\\t\t<tr><td width="33%"><%:YouTube%></td><td><%=WikiHackers%></td></tr>' friendlywrt/feeds/luci/modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm
148-
# sed -i '/Load Average/i\\t\t<tr><td width="33%"><%:CPU Temperature%></td><td><%=luci.sys.exec("cut -c1-2 /sys/class/thermal/thermal_zone0/temp")%><span>&#8451;</span></td></tr>' friendlywrt/feeds/luci/modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm
149-
# sed -i 's/pcdata(boardinfo.system or "?")/"ARMv8"/' friendlywrt/feeds/luci/modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm
150150
sed -i 's/services/vpn/g' friendlywrt/package/feeds/luci/luci-app-openvpn/luasrc/controller/openvpn.lua
151151
sed -i 's/resolv.conf.d\/resolv.conf.auto/resolv.conf.auto/g' friendlywrt/package/lean/luci-app-flowoffload/root/etc/init.d/flowoffload
152-
153-
sed -i '/done/imkfs.ext4 \/dev\/mmcblk0p2 && mkdir \/mnt\/mmcblk0p2 && mount \/dev\/mmcblk0p2 \/mnt\/mmcblk0p2 && mount \/dev\/mmcblk0p2 \/opt\n' ./friendlywrt/package/base-files/files/root/setup.sh
154-
# sed -i 's/\/root/\/mnt\/mmcblk0p2/g' ./friendlywrt/package/luci-app-r2sflasher/root/usr/bin/rom_flash
152+
153+
sed -i '/done/imkfs.ext4 /dev/mmcblk0p2 && mkdir /mnt/mmcblk0p2 && mount /dev/mmcblk0p2 /mnt/mmcblk0p2 && mkdir /mnt/mmcblk0p2/docker\n' friendlywrt/package/base-files/files/root/setup.sh
154+
sed -i "/done/iblock detect | sed \"s/enabled\\\t'0'/enabled\\\t'1'/\" > /etc/config/fstab\n" friendlywrt/package/base-files/files/root/setup.sh
155+
sed -i '/done/i[ -f /etc/init.d/dockerman ] && /etc/init.d/dockerman restart\n' friendlywrt/package/base-files/files/root/setup.sh
156+
157+
# sed -i '/done/imkfs.ext4 \/dev\/mmcblk0p2 && mkdir \/mnt\/mmcblk0p2 && mount \/dev\/mmcblk0p2 \/mnt\/mmcblk0p2 && mount \/dev\/mmcblk0p2 \/opt\n' ./friendlywrt/package/base-files/files/root/setup.sh
158+
# sed -i 's/\/root/\/mnt\/mmcblk0p2/g' ./friendlywrt/package/luci-app-r2sflasher/root/usr/bin/rom_flash
155159
- name: MOD index file
156160
run: |
157161
cd code/friendlywrt/feeds/luci/modules/luci-mod-admin-full/luasrc/view/admin_status
@@ -166,7 +170,7 @@ jobs:
166170
- name: Custom Configure Files
167171
run: |
168172
rm -f code/friendlywrt/.config*
169-
cp config/r4s-rk3399-config code/configs/config_rk3399
173+
cp r4s-rk3399-config code/configs/config_rk3399
170174
171175
- name: Set Default Values
172176
run: |
@@ -198,7 +202,6 @@ jobs:
198202
rm -rf ./artifact/
199203
mkdir -p ./artifact/
200204
201-
#find code/out/ -name "FriendlyWrt_*img" | xargs -I{} sh -c 'f=$(basename $1); zip -r -j "./artifact/${f}.zip" $1' sh {} \;
202205
cp code/out/*.img.zip ./artifact/
203206
cp code/friendlywrt/.config ./artifact/
204207
@@ -214,9 +217,7 @@ jobs:
214217
with:
215218
name: FriendlyWrt_NanoPi-R4S RK3399 v19.07
216219
allowUpdates: true
217-
tag: ${{ env.NOW }}
218-
env:
219-
NOW: $(date +'%Y-%m-%dT%H:%M:%S')
220+
tag: R2S20210306
220221
commit: main
221222
replacesArtifacts: true
222223
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)