forked from hanwckf/rt-n56u
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
473771c
commit 496129e
Showing
5 changed files
with
288 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
name: Build MT7620 | ||
|
||
on: | ||
release: | ||
types: [published] | ||
# push: | ||
# tags: | ||
# - 'v*' | ||
# branches: | ||
# - master | ||
schedule: | ||
- cron: 0 17 * * 4 | ||
# watch: | ||
# types: [started] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-18.04 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@master | ||
- name: Initialization environment | ||
env: | ||
DEBIAN_FRONTEND: noninteractive | ||
run: | | ||
#sudo apt-get update | ||
sudo apt-get -y install unzip libtool-bin curl cmake gperf gawk flex bison nano xxd \ | ||
cpio git python-docutils gettext automake autopoint texinfo build-essential help2man \ | ||
pkg-config zlib1g-dev libgmp3-dev libmpc-dev libmpfr-dev libncurses5-dev libltdl-dev | ||
- name: Clone source code | ||
run: | | ||
cd toolchain-mipsel | ||
mkdir -p toolchain-3.4.x | ||
wget https://github.com/hanwckf/padavan-toolchain/releases/download/v1.0/mipsel-linux-uclibc.tar.xz | ||
tar -xvf mipsel-linux-uclibc.tar.xz -C toolchain-3.4.x | ||
mkdir -p /opt/images/ | ||
- name: Build Firmware | ||
env: | ||
TNAME: "PSG1208 PSG1218_nano PSG712 NEWIFI-MINI MI-MINI MI-3 OYE-001" | ||
run: | | ||
cwd=`pwd` | ||
CONFIG_TOOLCHAIN_DIR=${cwd//\//\\\/}\\/toolchain-mipsel | ||
cd trunk | ||
for m in $TNAME; | ||
do | ||
if [ ! -f configs/templates/$m.config ] ; then | ||
echo "configs/templates/$m.config not found " | ||
exit 1 | ||
fi | ||
cp -f configs/templates/$m.config .config | ||
##################################################################################### | ||
sed -i '/CONFIG_FIRMWARE_INCLUDE_MENTOHUST/d' .config #删除配置项MENTOHUST | ||
sed -i '/CONFIG_FIRMWARE_INCLUDE_SCUTCLIENT/d' .config #删除配置项SCUTCLIENT | ||
sed -i '/CONFIG_FIRMWARE_INCLUDE_SHADOWSOCKS/d' .config #删除配置项SS plus+ | ||
sed -i '/CONFIG_FIRMWARE_INCLUDE_SSSERVER/d' .config #删除配置项SS server | ||
sed -i '/CONFIG_FIRMWARE_INCLUDE_DNSFORWARDER/d' .config #删除配置项DNSFORWARDER | ||
sed -i '/CONFIG_FIRMWARE_INCLUDE_ADBYBY/d' .config #删除配置项adbyby plus+ | ||
sed -i '/CONFIG_FIRMWARE_INCLUDE_FRPC/d' .config #删除配置项adbyby plus+ | ||
sed -i '/CONFIG_FIRMWARE_INCLUDE_FRPS/d' .config #删除配置项adbyby plus+ | ||
sed -i '/CONFIG_FIRMWARE_INCLUDE_TUNSAFE/d' .config #删除配置项adbyby plus+ | ||
sed -i '/CONFIG_FIRMWARE_INCLUDE_ALIDDNS/d' .config #删除配置项阿里DDNS | ||
sed -i '/CONFIG_FIRMWARE_INCLUDE_SMARTDNS/d' .config | ||
###################################################################### | ||
echo "CONFIG_FIRMWARE_INCLUDE_MENTOHUST=n" >> .config #MENTOHUST | ||
echo "CONFIG_FIRMWARE_INCLUDE_SCUTCLIENT=n" >> .config #SCUTCLIENT | ||
echo "CONFIG_FIRMWARE_INCLUDE_SHADOWSOCKS=y" >> .config #SS plus+ | ||
echo "CONFIG_FIRMWARE_INCLUDE_SSSERVER=n" >> .config #SS server | ||
echo "CONFIG_FIRMWARE_INCLUDE_DNSFORWARDER=n" >> .config #DNSFORWARDER | ||
echo "CONFIG_FIRMWARE_INCLUDE_ADBYBY=y" >> .config #adbyby plus+ | ||
echo "CONFIG_FIRMWARE_INCLUDE_FRPC=n" >> .config #内网穿透FRPC | ||
echo "CONFIG_FIRMWARE_INCLUDE_FRPS=n" >> .config #内网穿透FRPS | ||
echo "CONFIG_FIRMWARE_INCLUDE_TUNSAFE=n" >> .config #TUNSAFE | ||
echo "CONFIG_FIRMWARE_INCLUDE_ALIDDNS=y" >> .config #阿里DDNS | ||
echo "CONFIG_FIRMWARE_INCLUDE_SMARTDNS=y" >> .config | ||
#################################################################################### | ||
if [ "$m"="PSG1218_nano" ]; then | ||
sed -i '/CONFIG_FIRMWARE_INCLUDE_TTYD/d' .config | ||
sed -i '/CONFIG_FIRMWARE_INCLUDE_ALIDDNS/d' .config | ||
echo "CONFIG_FIRMWARE_INCLUDE_TTYD=n" >> .config | ||
echo "CONFIG_FIRMWARE_INCLUDE_ALIDDNS=n" >> .config | ||
fi | ||
sed -i "s/^CONFIG_TOOLCHAIN_DIR=.*$/CONFIG_TOOLCHAIN_DIR=${CONFIG_TOOLCHAIN_DIR}/g" .config | ||
sudo ./clear_tree_simple | ||
sudo ./build_firmware_bkye $m | ||
sudo mv -f images/*.trx /opt/images/ | ||
done | ||
- name: Upload binaries to release | ||
uses: svenstaro/upload-release-action@v1-release | ||
with: | ||
repo_token: ${{ secrets.R_TOKEN }} | ||
file: /opt/images/*.trx | ||
tag: AtuoBuild | ||
overwrite: true | ||
file_glob: true |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
name: Build MT7621 | ||
|
||
on: | ||
release: | ||
types: [published] | ||
# push: | ||
# tags: | ||
# - 'v*' | ||
# branches: | ||
# - master | ||
schedule: | ||
- cron: 0 17 * * 4 | ||
# watch: | ||
# types: [started] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-18.04 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@master | ||
- name: Initialization environment | ||
env: | ||
DEBIAN_FRONTEND: noninteractive | ||
run: | | ||
#sudo apt-get update | ||
sudo apt-get -y install unzip libtool-bin curl cmake gperf gawk flex bison nano xxd \ | ||
cpio git python-docutils gettext automake autopoint texinfo build-essential help2man \ | ||
pkg-config zlib1g-dev libgmp3-dev libmpc-dev libmpfr-dev libncurses5-dev libltdl-dev | ||
- name: Clone source code | ||
run: | | ||
cd toolchain-mipsel | ||
mkdir -p toolchain-3.4.x | ||
wget https://github.com/hanwckf/padavan-toolchain/releases/download/v1.0/mipsel-linux-uclibc.tar.xz | ||
tar -xvf mipsel-linux-uclibc.tar.xz -C toolchain-3.4.x | ||
mkdir -p /opt/images/ | ||
- name: Build Firmware | ||
env: | ||
TNAME: "K2P-5.0 JCG-836PRO-5.0 JCG-AC860M-5.0 DIR-878-5.0 DIR-882-5.0 WR1200JS MI-R3G NEWIFI3" | ||
run: | | ||
cwd=`pwd` | ||
CONFIG_TOOLCHAIN_DIR=${cwd//\//\\\/}\\/toolchain-mipsel | ||
cd trunk | ||
for m in $TNAME; | ||
do | ||
if [ ! -f configs/templates/$m.config ] ; then | ||
echo "configs/templates/$m.config not found " | ||
exit 1 | ||
fi | ||
cp -f configs/templates/$m.config .config | ||
##################################################################################### | ||
sed -i '/CONFIG_FIRMWARE_INCLUDE_MENTOHUST/d' .config #删除配置项MENTOHUST | ||
sed -i '/CONFIG_FIRMWARE_INCLUDE_SCUTCLIENT/d' .config #删除配置项SCUTCLIENT | ||
sed -i '/CONFIG_FIRMWARE_INCLUDE_SHADOWSOCKS/d' .config #删除配置项SS plus+ | ||
sed -i '/CONFIG_FIRMWARE_INCLUDE_SSSERVER/d' .config #删除配置项SS server | ||
sed -i '/CONFIG_FIRMWARE_INCLUDE_DNSFORWARDER/d' .config #删除配置项DNSFORWARDER | ||
sed -i '/CONFIG_FIRMWARE_INCLUDE_ADBYBY/d' .config #删除配置项adbyby plus+ | ||
sed -i '/CONFIG_FIRMWARE_INCLUDE_FRPC/d' .config #删除配置项adbyby plus+ | ||
sed -i '/CONFIG_FIRMWARE_INCLUDE_FRPS/d' .config #删除配置项adbyby plus+ | ||
sed -i '/CONFIG_FIRMWARE_INCLUDE_TUNSAFE/d' .config #删除配置项adbyby plus+ | ||
sed -i '/CONFIG_FIRMWARE_INCLUDE_ALIDDNS/d' .config #删除配置项阿里DDNS | ||
sed -i '/CONFIG_FIRMWARE_INCLUDE_SMARTDNS/d' .config | ||
###################################################################### | ||
echo "CONFIG_FIRMWARE_INCLUDE_MENTOHUST=n" >> .config #MENTOHUST | ||
echo "CONFIG_FIRMWARE_INCLUDE_SCUTCLIENT=n" >> .config #SCUTCLIENT | ||
echo "CONFIG_FIRMWARE_INCLUDE_SHADOWSOCKS=y" >> .config #SS plus+ | ||
echo "CONFIG_FIRMWARE_INCLUDE_SSSERVER=n" >> .config #SS server | ||
echo "CONFIG_FIRMWARE_INCLUDE_DNSFORWARDER=n" >> .config #DNSFORWARDER | ||
echo "CONFIG_FIRMWARE_INCLUDE_ADBYBY=y" >> .config #adbyby plus+ | ||
echo "CONFIG_FIRMWARE_INCLUDE_FRPC=n" >> .config #内网穿透FRPC | ||
echo "CONFIG_FIRMWARE_INCLUDE_FRPS=n" >> .config #内网穿透FRPS | ||
echo "CONFIG_FIRMWARE_INCLUDE_TUNSAFE=n" >> .config #TUNSAFE | ||
echo "CONFIG_FIRMWARE_INCLUDE_ALIDDNS=y" >> .config #阿里DDNS | ||
echo "CONFIG_FIRMWARE_INCLUDE_SMARTDNS=y" >> .config | ||
#################################################################################### | ||
sed -i "s/^CONFIG_TOOLCHAIN_DIR=.*$/CONFIG_TOOLCHAIN_DIR=${CONFIG_TOOLCHAIN_DIR}/g" .config | ||
sudo ./clear_tree_simple | ||
sudo ./build_firmware_bkye $m | ||
sudo mv -f images/*.trx /opt/images/ | ||
done | ||
- name: Upload binaries to release | ||
uses: svenstaro/upload-release-action@v1-release | ||
with: | ||
repo_token: ${{ secrets.R_TOKEN }} | ||
file: /opt/images/*.trx | ||
tag: AtuoBuild | ||
overwrite: true | ||
file_glob: true | ||
- uses: ncipollo/release-action@v1 | ||
with: | ||
bodyFile: "changelog.md" | ||
tag: AtuoBuild | ||
allowUpdates: true | ||
name: Padavan-firmware | ||
token: ${{ secrets.R_TOKEN }} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
name: Build MT7628 | ||
|
||
on: | ||
release: | ||
types: [published] | ||
# push: | ||
# tags: | ||
# - 'v*' | ||
# branches: | ||
# - master | ||
schedule: | ||
- cron: 0 17 * * 4 | ||
# watch: | ||
# types: [started] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-18.04 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@master | ||
- name: Initialization environment | ||
env: | ||
DEBIAN_FRONTEND: noninteractive | ||
run: | | ||
#sudo apt-get update | ||
sudo apt-get -y install unzip libtool-bin curl cmake gperf gawk flex bison nano xxd \ | ||
cpio git python-docutils gettext automake autopoint texinfo build-essential help2man \ | ||
pkg-config zlib1g-dev libgmp3-dev libmpc-dev libmpfr-dev libncurses5-dev libltdl-dev | ||
- name: Clone source code | ||
run: | | ||
cd toolchain-mipsel | ||
mkdir -p toolchain-3.4.x | ||
wget https://github.com/hanwckf/padavan-toolchain/releases/download/v1.0/mipsel-linux-uclibc.tar.xz | ||
tar -xvf mipsel-linux-uclibc.tar.xz -C toolchain-3.4.x | ||
mkdir -p /opt/images/ | ||
- name: Build Firmware | ||
env: | ||
TNAME: "HC5861B MI-NANO MZ-R13 360P2 HC5761A HC5661A" | ||
run: | | ||
cwd=`pwd` | ||
CONFIG_TOOLCHAIN_DIR=${cwd//\//\\\/}\\/toolchain-mipsel | ||
cd trunk | ||
for m in $TNAME; | ||
do | ||
if [ ! -f configs/templates/$m.config ] ; then | ||
echo "configs/templates/$m.config not found " | ||
exit 1 | ||
fi | ||
cp -f configs/templates/$m.config .config | ||
##################################################################################### | ||
sed -i '/CONFIG_FIRMWARE_INCLUDE_MENTOHUST/d' .config #删除配置项MENTOHUST | ||
sed -i '/CONFIG_FIRMWARE_INCLUDE_SCUTCLIENT/d' .config #删除配置项SCUTCLIENT | ||
sed -i '/CONFIG_FIRMWARE_INCLUDE_SHADOWSOCKS/d' .config #删除配置项SS plus+ | ||
sed -i '/CONFIG_FIRMWARE_INCLUDE_SSSERVER/d' .config #删除配置项SS server | ||
sed -i '/CONFIG_FIRMWARE_INCLUDE_DNSFORWARDER/d' .config #删除配置项DNSFORWARDER | ||
sed -i '/CONFIG_FIRMWARE_INCLUDE_ADBYBY/d' .config #删除配置项adbyby plus+ | ||
sed -i '/CONFIG_FIRMWARE_INCLUDE_FRPC/d' .config #删除配置项adbyby plus+ | ||
sed -i '/CONFIG_FIRMWARE_INCLUDE_FRPS/d' .config #删除配置项adbyby plus+ | ||
sed -i '/CONFIG_FIRMWARE_INCLUDE_TUNSAFE/d' .config #删除配置项adbyby plus+ | ||
sed -i '/CONFIG_FIRMWARE_INCLUDE_ALIDDNS/d' .config #删除配置项阿里DDNS | ||
sed -i '/CONFIG_FIRMWARE_INCLUDE_SMARTDNS/d' .config | ||
###################################################################### | ||
echo "CONFIG_FIRMWARE_INCLUDE_MENTOHUST=n" >> .config #MENTOHUST | ||
echo "CONFIG_FIRMWARE_INCLUDE_SCUTCLIENT=n" >> .config #SCUTCLIENT | ||
echo "CONFIG_FIRMWARE_INCLUDE_SHADOWSOCKS=y" >> .config #SS plus+ | ||
echo "CONFIG_FIRMWARE_INCLUDE_SSSERVER=n" >> .config #SS server | ||
echo "CONFIG_FIRMWARE_INCLUDE_DNSFORWARDER=n" >> .config #DNSFORWARDER | ||
echo "CONFIG_FIRMWARE_INCLUDE_ADBYBY=y" >> .config #adbyby plus+ | ||
echo "CONFIG_FIRMWARE_INCLUDE_FRPC=n" >> .config #内网穿透FRPC | ||
echo "CONFIG_FIRMWARE_INCLUDE_FRPS=n" >> .config #内网穿透FRPS | ||
echo "CONFIG_FIRMWARE_INCLUDE_TUNSAFE=n" >> .config #TUNSAFE | ||
echo "CONFIG_FIRMWARE_INCLUDE_ALIDDNS=y" >> .config #阿里DDNS | ||
echo "CONFIG_FIRMWARE_INCLUDE_SMARTDNS=y" >> .config | ||
#################################################################################### | ||
sed -i "s/^CONFIG_TOOLCHAIN_DIR=.*$/CONFIG_TOOLCHAIN_DIR=${CONFIG_TOOLCHAIN_DIR}/g" .config | ||
sudo ./clear_tree_simple | ||
sudo ./build_firmware_bkye $m | ||
sudo mv -f images/*.trx /opt/images/ | ||
done | ||
- name: Upload binaries to release | ||
uses: svenstaro/upload-release-action@v1-release | ||
with: | ||
repo_token: ${{ secrets.R_TOKEN }} | ||
file: /opt/images/*.trx | ||
tag: AtuoBuild | ||
overwrite: true | ||
file_glob: true |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
最后更新时间:2019.12.23 | ||
1.同步最新源码 | ||
2.适配PSG712 | ||
3.修复adbyby自定义规则无法下载的问题 |