127 lines
5.2 KiB
YAML
127 lines
5.2 KiB
YAML
name: r2s Lienol(Passwall) Build Lienol版openwrt(自带Passwall)
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- '.github/workflows/r2s_lienol.yml'
|
|
schedule:
|
|
- cron: '30 12 * * *'
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@master
|
|
with:
|
|
ref: master
|
|
|
|
- name: Initialization Environment
|
|
env:
|
|
DEBIAN_FRONTEND: noninteractive
|
|
run: |
|
|
sudo rm -rf /etc/apt/sources.list.d
|
|
sudo apt-get update
|
|
sudo apt-get -y install bc build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler
|
|
wget -O - https://raw.githubusercontent.com/friendlyarm/build-env-on-ubuntu-bionic/master/install.sh | bash
|
|
sudo rm -rf /usr/share/dotnet /usr/local/lib/android/sdk
|
|
|
|
- name: Install Repo
|
|
run: |
|
|
git clone https://github.com/friendlyarm/repo
|
|
sudo cp repo/repo /usr/bin/
|
|
|
|
- name: Init Source
|
|
run: |
|
|
mkdir friendlywrt-rk3328
|
|
cd friendlywrt-rk3328
|
|
repo init -u https://github.com/friendlyarm/friendlywrt_manifests -b master -m rk3328.xml --repo-url=https://github.com/friendlyarm/repo --no-clone-bundle
|
|
repo sync -c --no-clone-bundle
|
|
|
|
- name: Mods
|
|
run: |
|
|
cd friendlywrt-rk3328
|
|
sed -i '/=m/d;/CONFIG_AUTOREMOVE/d;/CONFIG_BUILDBOT/d;/CONFIG_ALL_KMODS/d;/CONFIG_ALL_NONSHARED/d;/CONFIG_DEVEL/d;/docker/d;/DOCKER/d;/CONFIG_DISPLAY_SUPPORT/d' configs/config_rk3328
|
|
sed -i '/CONFIG_KERNEL_CGROUP_PERF/i\CONFIG_KERNEL_CGROUPS=y' configs/config_rk3328
|
|
echo '
|
|
CONFIG_OPENSSL_OPTIMIZE_SPEED=y
|
|
CONFIG_OPENSSL_WITH_DTLS=y
|
|
CONFIG_OPENSSL_WITH_EC2M=y
|
|
CONFIG_OPENSSL_WITH_NPN=y
|
|
CONFIG_PACKAGE_UnblockNeteaseMusic=y
|
|
# CONFIG_PACKAGE_iptables-mod-filter is not set
|
|
CONFIG_PACKAGE_kmod-crypto-authenc=y
|
|
# CONFIG_PACKAGE_kmod-crypto-ecb is not set
|
|
# CONFIG_PACKAGE_kmod-crypto-sha1 is not set
|
|
CONFIG_PACKAGE_kmod-cryptodev=y
|
|
# CONFIG_PACKAGE_kmod-gre is not set
|
|
# CONFIG_PACKAGE_kmod-ipt-filter is not set
|
|
# CONFIG_PACKAGE_kmod-lib-textsearch is not set
|
|
# CONFIG_PACKAGE_kmod-mppe is not set
|
|
CONFIG_PACKAGE_libgd=y
|
|
CONFIG_PACKAGE_libhttp-parser=y
|
|
CONFIG_PACKAGE_libjpeg=y
|
|
CONFIG_PACKAGE_libnghttp2=y
|
|
CONFIG_PACKAGE_libopenssl-conf=y
|
|
CONFIG_PACKAGE_libopenssl-devcrypto=y
|
|
CONFIG_PACKAGE_libpng=y
|
|
CONFIG_PACKAGE_libstdcpp=y
|
|
CONFIG_PACKAGE_luci-app-adguardhome=y
|
|
# CONFIG_PACKAGE_luci-app-control-mia is not set
|
|
# CONFIG_PACKAGE_luci-app-control-timewol is not set
|
|
# CONFIG_PACKAGE_luci-app-control-webrestriction is not set
|
|
# CONFIG_PACKAGE_luci-app-control-weburl is not set
|
|
# CONFIG_PACKAGE_luci-app-pppoe-relay is not set
|
|
# CONFIG_PACKAGE_luci-app-pppoe-server is not set
|
|
# CONFIG_PACKAGE_luci-app-pptp-vpnserver-manyusers is not set
|
|
CONFIG_PACKAGE_luci-app-unblockmusic=y
|
|
CONFIG_PACKAGE_luci-app-vnstat=y
|
|
CONFIG_PACKAGE_luci-i18n-vnstat-zh-cn=y
|
|
CONFIG_PACKAGE_luci-theme-argon-dark-mod=y
|
|
CONFIG_PACKAGE_luci-theme-argon-light-mod=y
|
|
CONFIG_PACKAGE_node=y
|
|
# CONFIG_PACKAGE_pptpd is not set
|
|
# CONFIG_PACKAGE_rp-pppoe-common is not set
|
|
# CONFIG_PACKAGE_rp-pppoe-relay is not set
|
|
# CONFIG_PACKAGE_rp-pppoe-server is not set
|
|
CONFIG_PACKAGE_vnstat=y
|
|
CONFIG_PACKAGE_vnstati=y' >> configs/config_rk3328
|
|
cd friendlywrt
|
|
git config --local user.email "action@github.com" && git config --local user.name "GitHub Action"
|
|
git remote add upstream https://github.com/Lienol/openwrt && git fetch upstream
|
|
git checkout upstream/dev-19.07 -b tmp
|
|
git mv README.md README && git commit -m 'undo rename readme for rebasing'
|
|
git checkout origin/master
|
|
git rebase 90bb1cf9c33e73de5019686b8bd495f689e675a4^ --onto tmp -X theirs
|
|
git checkout upstream/dev-19.07 -- feeds.conf.default
|
|
|
|
- name: Clean Feeds
|
|
run: |
|
|
cd friendlywrt-rk3328/friendlywrt
|
|
./scripts/feeds clean -a
|
|
|
|
- name: Build FriendlyWrt
|
|
run: |
|
|
cd friendlywrt-rk3328
|
|
sed -i 's/set -eu/set -u/' scripts/mk-friendlywrt.sh
|
|
./build.sh nanopi_r2s.mk
|
|
|
|
- name: Zip Files
|
|
run: |
|
|
gzip friendlywrt-rk3328/out/*.img
|
|
- name: Assemble Artifact
|
|
run: |
|
|
rm -rf ./artifact/
|
|
mkdir -p ./artifact/
|
|
mv friendlywrt-rk3328/out/*img* ./artifact/
|
|
cp friendlywrt-rk3328/friendlywrt/.config ./artifact/
|
|
- name: Upload Artifact
|
|
uses: actions/upload-artifact@master
|
|
with:
|
|
name: FriendlyWrt_NanoPi-R2S
|
|
path: ./artifact/
|