Buddhist-style update
This commit is contained in:
20
.github/workflows/dispatch.yml
vendored
Normal file
20
.github/workflows/dispatch.yml
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
name: Repo Dispatcher
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
device:
|
||||
description: 'select device to build'
|
||||
default: 'r2s'
|
||||
required: false
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Trigger Compile
|
||||
run: |
|
||||
curl \
|
||||
-X POST https://api.github.com/repos/${{ github.repository }}/dispatches \
|
||||
-H "Accept: application/vnd.github.everest-preview+json" \
|
||||
-H "Authorization: token ${{ secrets.SEC_TOKEN }}" \
|
||||
-d '{"event_type": "${{ github.event.inputs.device }}", "client_payload": {"device": "${{ github.event.inputs.device }}"}}'
|
||||
158
.github/workflows/lo-test.yml
vendored
Normal file
158
.github/workflows/lo-test.yml
vendored
Normal file
@@ -0,0 +1,158 @@
|
||||
name: build
|
||||
|
||||
on:
|
||||
repository_dispatch:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
device:
|
||||
description: 'select device to build'
|
||||
default: 'r2s'
|
||||
required: false
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
name: ${{ github.event.client_payload.device }}
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event.repository.owner.id == github.event.sender.id
|
||||
|
||||
steps:
|
||||
|
||||
- name: Space cleanup
|
||||
env:
|
||||
DEBIAN_FRONTEND: noninteractive
|
||||
run: |
|
||||
sudo rm -rf /usr/share/dotnet & #/usr/local/lib/android/sdk
|
||||
sudo -E apt update
|
||||
sudo -E apt -y install secure-delete zstd 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 g++-multilib p7zip p7zip-full msmtp libssl-dev texinfo libreadline-dev libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint ccache curl wget vim nano python python3 python-pip python3-pip python-ply python3-ply haveged lrzsz device-tree-compiler scons antlr3 gperf intltool rsync swig
|
||||
sudo -E apt -y autoremove --purge
|
||||
sudo -E apt clean
|
||||
df -h
|
||||
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Checkout
|
||||
run: |
|
||||
for i in {0..5}
|
||||
do
|
||||
curl -s -L --fail https://github.com/${{ github.repository }}/releases/download/cache/lede.${{ github.event.client_payload.device }}.img.zst.0$i || break
|
||||
done | zstdmt -d -o lede.img || (truncate -s 40g lede.img && mkfs.xfs lede.img)
|
||||
LOOP_DEVICE=$(losetup -f) && echo $LOOP_DEVICE > LOOP_DEVICE
|
||||
sudo losetup -P --direct-io $LOOP_DEVICE lede.img
|
||||
mkdir lede && sudo mount $LOOP_DEVICE lede && sudo chown -R $USER:$USER lede
|
||||
[ ! -e lede/.git ] && (cd lede && git init && git remote add -t openwrt-18.06-k5.4 -f origin https://github.com/immortalwrt/immortalwrt && git checkout openwrt-18.06-k5.4)
|
||||
cd lede && git config --local user.email "action@github.com" && git config --local user.name "GitHub Action" && git pull -X theirs
|
||||
|
||||
- name: Update feeds and packages
|
||||
run: |
|
||||
cd lede/
|
||||
git clone --depth=1 https://github.com/destan19/OpenAppFilter.git && rm -rf package/OpenAppFilter && mv OpenAppFilter package/
|
||||
git clone --depth=1 -b 18.06 https://github.com/jerrykuku/luci-theme-argon.git && rm -rf package/lean/luci-theme-argon && mv luci-theme-argon package/lean/
|
||||
./scripts/feeds update -a
|
||||
./scripts/feeds install -a
|
||||
|
||||
- name: Custom configure file
|
||||
run: |
|
||||
cd lede
|
||||
rm -f .config*
|
||||
cat ../${{ github.event.client_payload.device }}.config.seed > .config
|
||||
sed -i 's/^[ \t]*//g' .config
|
||||
echo '
|
||||
# CONFIG_v2ray-plugin_INCLUDE_GOPROXY is not set
|
||||
# CONFIG_XRAY_CORE_COMPRESS_GOPROXY is not set
|
||||
# CONFIG_UnblockNeteaseMusicGo_INCLUDE_GOPROXY is not set
|
||||
' >> .config
|
||||
make defconfig && cat .config
|
||||
|
||||
- name: Compile firmware
|
||||
run: |
|
||||
cd lede
|
||||
while true; do make download -j8 && break || true; done
|
||||
make -j$(($(nproc) + 1)) -s || (make clean && make -j1 V=sc)
|
||||
echo "======================="
|
||||
echo "Space usage:"
|
||||
echo "======================="
|
||||
df -h
|
||||
echo "======================="
|
||||
du -h --max-depth=1 ./ --exclude=build_dir --exclude=bin
|
||||
du -h --max-depth=1 ./build_dir
|
||||
du -h --max-depth=1 ./bin
|
||||
|
||||
- name: Prepare artifact
|
||||
run: |
|
||||
mkdir -p ./artifact/firmware
|
||||
mkdir -p ./artifact/package
|
||||
mkdir -p ./artifact/buildinfo
|
||||
mkdir -p ./release
|
||||
cd lede
|
||||
rm -rf $(find ./bin/targets/ -type d -name "packages")
|
||||
cp -rf $(find ./bin/targets/ -type f) ../artifact/firmware/
|
||||
cp -rf $(find ./bin/packages/ -type f -name "*.ipk") ../artifact/package/
|
||||
cp -rf $(find ./bin/targets/ -type f -name "*.buildinfo" -o -name "*.manifest") ../artifact/buildinfo/
|
||||
cp $(ls -1 ../artifact/firmware/*img*) ../release/${{ github.event.client_payload.device }}.img.gz
|
||||
pushd ../release/ && md5sum ${{ github.event.client_payload.device }}.img.gz > md5sum.txt && popd
|
||||
echo "strDate=$(date +%Y-%m-%d)" >> $GITHUB_ENV
|
||||
echo "strDevice=$(echo ${{ github.event.client_payload.device }} | awk '{print toupper($0)}')" >> $GITHUB_ENV
|
||||
rm -rf bin/ tmp/
|
||||
cd ..
|
||||
rm -f *zst*
|
||||
sudo umount lede
|
||||
LOOP_DEVICE=$(cat LOOP_DEVICE)
|
||||
sudo losetup -d $LOOP_DEVICE
|
||||
zstdmt -c lede.img | split -d -b 2000m - lede.${{ github.event.client_payload.device }}.img.zst.
|
||||
ls -l *zst*
|
||||
|
||||
- name: Deliver buildinfo
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: OpenWrt_buildinfo
|
||||
path: ./artifact/buildinfo/
|
||||
|
||||
- name: Deliver package
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: OpenWrt_package
|
||||
path: ./artifact/package/
|
||||
|
||||
- name: Deliver firmware
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: OpenWrt_firmware
|
||||
path: ./artifact/firmware/
|
||||
|
||||
- name: Upload release asset
|
||||
uses: svenstaro/upload-release-action@v2
|
||||
with:
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
file: ./release/*
|
||||
tag: ${{ github.event.client_payload.device }}-${{ env.strDate }}
|
||||
file_glob: true
|
||||
overwrite: true
|
||||
release_name: ${{ env.strDevice }} ${{ env.strDate }} 自动发布
|
||||
|
||||
- name: Save cache state
|
||||
uses: svenstaro/upload-release-action@master
|
||||
with:
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
file: ./lede.${{ github.event.client_payload.device }}*zst*
|
||||
tag: cache
|
||||
file_glob: true
|
||||
overwrite: true
|
||||
prerelease: true
|
||||
|
||||
- name: Debug via tmate
|
||||
uses: P3TERX/ssh2actions@main
|
||||
if: ${{ failure() }}
|
||||
env:
|
||||
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
|
||||
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
|
||||
|
||||
- name: Send tg notification
|
||||
uses: appleboy/telegram-action@master
|
||||
#if: always()
|
||||
with:
|
||||
to: ${{ secrets.TELEGRAM_CHAT_ID }}
|
||||
token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
|
||||
args: The ${{ github.event.client_payload.device }} build ran completed at ${{ job.status }}.
|
||||
@@ -1,76 +0,0 @@
|
||||
name: original Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- '.github/workflows/master_code_and_master_config.yml'
|
||||
|
||||
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 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: Download Source
|
||||
run: |
|
||||
mkdir friendlywrt-h5
|
||||
cd friendlywrt-h5
|
||||
repo init -u https://github.com/friendlyarm/friendlywrt_manifests -b master -m h5.xml --repo-url=https://github.com/friendlyarm/repo --no-clone-bundle
|
||||
|
||||
- name: Mods
|
||||
run: |
|
||||
cd friendlywrt-h5
|
||||
rm -f .repo/manifests/h5.xml
|
||||
cp ../original.xml .repo/manifests/h5.xml
|
||||
repo sync -c --no-clone-bundle
|
||||
sed -i '/=m/d;/CONFIG_ALL_KMODS/d;/CONFIG_ALL_NONSHARED/d;/CONFIG_DEVEL/d;/docker/d;/DOCKER/d;/CONFIG_DISPLAY_SUPPORT/d' configs/config_h5
|
||||
sed -i 's/dnsmasq /dnsmasq-full /' friendlywrt/include/target.mk
|
||||
|
||||
- name: Clean Feeds
|
||||
run: |
|
||||
cd friendlywrt-h5/friendlywrt
|
||||
./scripts/feeds clean -a
|
||||
|
||||
- name: Build FriendlyWrt
|
||||
run: |
|
||||
cd friendlywrt-h5
|
||||
sed -i 's/set -eu/set -u/' scripts/mk-friendlywrt.sh
|
||||
./build.sh nanopi_r1s.mk
|
||||
|
||||
- name: Zip Files
|
||||
run: |
|
||||
gzip friendlywrt-h5/out/*.img
|
||||
- name: Assemble Artifact
|
||||
run: |
|
||||
rm -rf ./artifact/
|
||||
mkdir -p ./artifact/
|
||||
mv friendlywrt-h5/out/*img* ./artifact/
|
||||
cp friendlywrt-h5/friendlywrt/.config ./artifact/
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: FriendlyWrt_NanoPi-R1S
|
||||
path: ./artifact/
|
||||
79
.github/workflows/neo2.yml
vendored
79
.github/workflows/neo2.yml
vendored
@@ -1,79 +0,0 @@
|
||||
name: neo2 Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- '.github/workflows/neo2.yml'
|
||||
|
||||
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: Download Source
|
||||
run: |
|
||||
mkdir friendlywrt-h5
|
||||
cd friendlywrt-h5
|
||||
repo init -u https://github.com/friendlyarm/friendlywrt_manifests -b master -m h5.xml --repo-url=https://github.com/friendlyarm/repo --no-clone-bundle
|
||||
|
||||
- name: Mods
|
||||
run: |
|
||||
cd friendlywrt-h5
|
||||
rm -f .repo/manifests/h5.xml
|
||||
cp ../19s_master_config.xml .repo/manifests/h5.xml
|
||||
repo sync -c --no-clone-bundle
|
||||
curl 'https://raw.githubusercontent.com/friendlyarm/friendlywrt_device_h5/286a065e7832458ccd17a5d4cf4dd52a547fa34d/h5/nanopi_r1s.mk' > device/friendlyelec/h5/nanopi_neo2.mk
|
||||
curl 'https://raw.githubusercontent.com/friendlyarm/friendlywrt_device_h5/a198d92e1d64bcde2d4169f2e680f5fff1dc80a9/h5/common-files/etc/opkg/distfeeds.conf' > device/friendlyelec/h5/common-files/etc/opkg/distfeeds.conf
|
||||
sed -i '/=m/d;/CONFIG_ALL_KMODS/d;/CONFIG_ALL_NONSHARED/d;/CONFIG_DEVEL/d;/docker/d;/DOCKER/d;/CONFIG_DISPLAY_SUPPORT/d' configs/config_h5
|
||||
sed -i '1cCONFIG_TARGET_sunxi=y' configs/config_h5
|
||||
sed -i '2cCONFIG_TARGET_sunxi_cortexa53=y' configs/config_h5
|
||||
sed -i '3cCONFIG_TARGET_sunxi_cortexa53_DEVICE_sun50i-h5-nanopi-neo-plus2=y' configs/config_h5
|
||||
sed -i 's/dnsmasq /dnsmasq-full /' friendlywrt/include/target.mk
|
||||
|
||||
- name: Clean Feeds
|
||||
run: |
|
||||
cd friendlywrt-h5/friendlywrt
|
||||
./scripts/feeds clean -a
|
||||
|
||||
- name: Build FriendlyWrt
|
||||
run: |
|
||||
cd friendlywrt-h5
|
||||
sed -i 's/set -eu/set -u/' scripts/mk-friendlywrt.sh
|
||||
./build.sh nanopi_neo2.mk
|
||||
|
||||
- name: Zip Files
|
||||
run: |
|
||||
gzip friendlywrt-h5/out/*.img
|
||||
- name: Assemble Artifact
|
||||
run: |
|
||||
rm -rf ./artifact/
|
||||
mkdir -p ./artifact/
|
||||
mv friendlywrt-h5/out/*img* ./artifact/
|
||||
cp friendlywrt-h5/friendlywrt/.config ./artifact/
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: FriendlyWrt_NanoPi-R1S
|
||||
path: ./artifact/
|
||||
118
.github/workflows/r1s_add_passwall.yml
vendored
118
.github/workflows/r1s_add_passwall.yml
vendored
@@ -1,118 +0,0 @@
|
||||
name: r1s 原版friendlywrt合并passwall插件
|
||||
|
||||
on:
|
||||
# schedule:
|
||||
# - cron: 0 20 * * *
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- '.github/workflows/r1s_add_passwall.yml'
|
||||
|
||||
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-h5
|
||||
cd friendlywrt-h5
|
||||
repo init -u https://github.com/friendlyarm/friendlywrt_manifests -b master -m h5.xml --repo-url=https://github.com/friendlyarm/repo --no-clone-bundle
|
||||
|
||||
- name: Mods
|
||||
run: |
|
||||
cd friendlywrt-h5
|
||||
rm -f .repo/manifests/h5.xml
|
||||
cp ../19s_master_config.xml .repo/manifests/h5.xml
|
||||
repo sync -c --no-clone-bundle
|
||||
sed -i 's/dnsmasq /dnsmasq-full /' friendlywrt/include/target.mk
|
||||
#curl 'https://raw.githubusercontent.com/friendlyarm/friendlywrt_device_h5/286a065e7832458ccd17a5d4cf4dd52a547fa34d/h5/nanopi_r1s.mk' > device/friendlyelec/h5/nanopi_r1s.mk
|
||||
curl 'https://raw.githubusercontent.com/friendlyarm/friendlywrt_device_h5/a198d92e1d64bcde2d4169f2e680f5fff1dc80a9/h5/common-files/etc/opkg/distfeeds.conf' > device/friendlyelec/h5/common-files/etc/opkg/distfeeds.conf
|
||||
echo 'src-git lienol https://github.com/Lienol/openwrt-package' >> friendlywrt/feeds.conf.default
|
||||
echo 'src-git darkmatter https://github.com/Lienol/luci-theme-darkmatter;luci-18.06' >> friendlywrt/feeds.conf.default
|
||||
. ../remove_used_config.sh
|
||||
#sed -i '1cCONFIG_TARGET_sunxi=y' configs/config_h5
|
||||
#sed -i '2cCONFIG_TARGET_sunxi_cortexa53=y' configs/config_h5
|
||||
#sed -i '3cCONFIG_TARGET_sunxi_cortexa53_DEVICE_sun50i-h5-nanopi-neo-plus2=y' configs/config_h5
|
||||
sed -i 's/_zh-cn/_zh_Hans/' configs/config_h5
|
||||
sed -i 's/_zh-tw/_zh_Hant/' configs/config_h5
|
||||
echo '
|
||||
CONFIG_OPENSSL_ENGINE=y
|
||||
CONFIG_OPENSSL_ENGINE_BUILTIN=y
|
||||
CONFIG_OPENSSL_OPTIMIZE_SPEED=y
|
||||
CONFIG_OPENSSL_WITH_ASM=y
|
||||
CONFIG_OPENSSL_WITH_CHACHA_POLY1305=y
|
||||
CONFIG_OPENSSL_WITH_CMS=y
|
||||
CONFIG_OPENSSL_WITH_DEPRECATED=y
|
||||
CONFIG_OPENSSL_WITH_DTLS=y
|
||||
CONFIG_OPENSSL_WITH_EC2M=y
|
||||
CONFIG_OPENSSL_WITH_ERROR_MESSAGES=y
|
||||
CONFIG_OPENSSL_WITH_NPN=y
|
||||
CONFIG_OPENSSL_WITH_PSK=y
|
||||
CONFIG_OPENSSL_WITH_SRP=y
|
||||
CONFIG_OPENSSL_WITH_TLS13=y
|
||||
CONFIG_PACKAGE_curl=y
|
||||
CONFIG_PACKAGE_libopenssl=y
|
||||
CONFIG_PACKAGE_luci-app-passwall=y
|
||||
CONFIG_PACKAGE_luci-app-passwall_INCLUDE_Trojan=y
|
||||
CONFIG_PACKAGE_luci-theme-argon-dark-mod=y
|
||||
CONFIG_PACKAGE_luci-theme-argon-light-mod=y
|
||||
CONFIG_PACKAGE_luci-theme-bootstrap=y
|
||||
CONFIG_PACKAGE_luci-theme-bootstrap-mod=y
|
||||
CONFIG_PACKAGE_luci-theme-darkmatter=y
|
||||
CONFIG_PACKAGE_luci-theme-material=y
|
||||
CONFIG_PACKAGE_luci-theme-netgear-mc=y
|
||||
CONFIG_PACKAGE_luci-theme-openwrt=y
|
||||
CONFIG_PACKAGE_luci-theme-rosy=y
|
||||
# CONFIG_OPENSSL_PREFER_CHACHA_OVER_GCM is not set' >> configs/config_h5
|
||||
sed -i '/8.8.8.8/d' friendlywrt/package/base-files/files/root/setup.sh
|
||||
|
||||
- name: Clean Feeds
|
||||
run: |
|
||||
cd friendlywrt-h5/friendlywrt
|
||||
./scripts/feeds clean -a
|
||||
|
||||
- name: Build FriendlyWrt
|
||||
run: |
|
||||
cd friendlywrt-h5
|
||||
sed -i 's/set -eu/set -u/' scripts/mk-friendlywrt.sh
|
||||
./build.sh nanopi_r1s.mk
|
||||
|
||||
- name: Zip Files
|
||||
run: |
|
||||
gzip friendlywrt-h5/out/*.img
|
||||
- name: Assemble Artifact
|
||||
run: |
|
||||
rm -rf ./artifact/
|
||||
mkdir -p ./artifact/
|
||||
mv friendlywrt-h5/out/*img* ./artifact/
|
||||
cp friendlywrt-h5/friendlywrt/.config ./artifact/
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: FriendlyWrt_NanoPi-R1S
|
||||
path: ./artifact/
|
||||
82
.github/workflows/r1s_lean.yml
vendored
82
.github/workflows/r1s_lean.yml
vendored
@@ -1,82 +0,0 @@
|
||||
name: r1s Lean版openwrt
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
paths:
|
||||
- '.github/workflows/r1s_lean.yml'
|
||||
schedule:
|
||||
- cron: '10 10 */4 * *'
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'klever1988/nanopi-openwrt'
|
||||
|
||||
steps:
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@master
|
||||
with:
|
||||
ref: master
|
||||
|
||||
- name: Initialization Environment
|
||||
env:
|
||||
DEBIAN_FRONTEND: noninteractive
|
||||
run: . 1_initialization_environment.sh
|
||||
|
||||
- name: Clone Source
|
||||
run: . 2_clone_source.sh master h5
|
||||
|
||||
- name: Mods
|
||||
run: |
|
||||
cd friendlywrt-h5
|
||||
. ../remove_unused_config.sh
|
||||
cat ../app_config.seed >> configs/config_h5
|
||||
sed -i '/sqm-scriptss/d;/kmod-sched/d;' configs/config_h5
|
||||
cd friendlywrt
|
||||
git remote add upstream https://github.com/coolsnowwolf/openwrt && git fetch upstream
|
||||
git checkout upstream/lede-17.01 -b tmp
|
||||
#git checkout 33f7cb735300bd9a099995236ed768c8925fec75 -- target/linux/sunxi/image/
|
||||
git rm README.md
|
||||
git commit -m 'reset'
|
||||
git checkout master
|
||||
git rebase 90bb1cf9c33e73de5019686b8bd495f689e675a4^ --onto tmp -X theirs
|
||||
rm -f target/linux/allwinner-h5/patches-4.14/0001-net-thunderx-workaround-BGX-TX-Underflow-issue.patch target/linux/generic/hack-4.14/999-net-patch-linux-kernel-to-support-shortcut-fe.patch
|
||||
git checkout upstream/lede-17.01 -- feeds.conf.default && sed -i -E 's/#(src-git.+)(helloworld.+)/\1\2/' feeds.conf.default
|
||||
curl 'https://git.openwrt.org/?p=openwrt/openwrt.git;a=patch;h=22378beb581b113def1dc392ef75306a2168a163' | git apply --reject - || true
|
||||
. ../../3_prepare_packages.sh
|
||||
git apply ../../enable_autocore.diff
|
||||
. ../../5_mods.sh
|
||||
|
||||
- name: Build FriendlyWrt
|
||||
run: . 4_build_image.sh friendlywrt-h5 nanopi_r1s.mk
|
||||
|
||||
- name: Assemble Artifact
|
||||
id: assemble_artifact
|
||||
run: |
|
||||
. x_assemble_artifact.sh
|
||||
release_tag="R1S-Lean-$(date +%Y-%m-%d)"
|
||||
echo "##[set-output name=release_tag;]$release_tag"
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.sec_token }}
|
||||
with:
|
||||
tag_name: ${{ steps.assemble_artifact.outputs.release_tag }}
|
||||
release_name: 自动发布 ${{ steps.assemble_artifact.outputs.release_tag }}
|
||||
draft: false
|
||||
prerelease: false
|
||||
- name: Upload Release Asset
|
||||
id: upload-release-asset
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.sec_token }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
|
||||
asset_path: ./artifact.zip
|
||||
asset_name: ${{ steps.assemble_artifact.outputs.release_tag }}-ROM.zip
|
||||
asset_content_type: application/zip
|
||||
83
.github/workflows/r1s_lean_h3.yml
vendored
83
.github/workflows/r1s_lean_h3.yml
vendored
@@ -1,83 +0,0 @@
|
||||
name: r1s(H3) Lean版openwrt
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
paths:
|
||||
- '.github/workflows/r1s_lean_h3.yml'
|
||||
schedule:
|
||||
- cron: '10 10 */4 * *'
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'klever1988/nanopi-openwrt'
|
||||
|
||||
steps:
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@master
|
||||
with:
|
||||
ref: master
|
||||
|
||||
- name: Initialization Environment
|
||||
env:
|
||||
DEBIAN_FRONTEND: noninteractive
|
||||
run: . 1_initialization_environment.sh
|
||||
|
||||
- name: Clone Source
|
||||
run: . 2_clone_source.sh master-v19.07.1 h3
|
||||
|
||||
- name: Mods
|
||||
run: |
|
||||
cd friendlywrt-h3
|
||||
sed -i 's/CONFIG_TARGET_MULTI_PROFILE/CONFIG_TARGET_sunxi_cortexa7_Default/' configs/config_h3
|
||||
sed -i '/CONFIG_TARGET_DEVICE/d' configs/config_h3
|
||||
. ../remove_unused_config.sh
|
||||
cat ../app_config.seed >> configs/config_h3
|
||||
cd friendlywrt
|
||||
git remote add upstream https://github.com/coolsnowwolf/openwrt && git fetch upstream
|
||||
git checkout upstream/lede-17.01 -b tmp
|
||||
#git checkout 33f7cb735300bd9a099995236ed768c8925fec75 -- target/linux/sunxi/image/
|
||||
git rm README.md
|
||||
git commit -m 'reset'
|
||||
git checkout master-v19.07.1
|
||||
git rebase adc1a9a3676b8d7be1b48b5aed185a94d8e42728^ --onto tmp -X theirs
|
||||
rm -f target/linux/allwinner-h5/patches-4.14/0001-net-thunderx-workaround-BGX-TX-Underflow-issue.patch target/linux/generic/hack-4.14/999-net-patch-linux-kernel-to-support-shortcut-fe.patch
|
||||
git checkout upstream/lede-17.01 -- feeds.conf.default && sed -i -E 's/#(src-git.+)(helloworld.+)/\1\2/' feeds.conf.default
|
||||
curl 'https://git.openwrt.org/?p=openwrt/openwrt.git;a=patch;h=22378beb581b113def1dc392ef75306a2168a163' | git apply --reject - || true
|
||||
. ../../3_prepare_packages.sh
|
||||
git apply ../../enable_autocore.diff
|
||||
. ../../5_mods.sh
|
||||
|
||||
- name: Build FriendlyWrt
|
||||
run: . 4_build_image.sh friendlywrt-h3 nanopi_r1s_h3.mk
|
||||
|
||||
- name: Assemble Artifact
|
||||
id: assemble_artifact
|
||||
run: |
|
||||
. x_assemble_artifact.sh
|
||||
release_tag="R1S-H3-$(date +%Y-%m-%d)"
|
||||
echo "##[set-output name=release_tag;]$release_tag"
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.sec_token }}
|
||||
with:
|
||||
tag_name: ${{ steps.assemble_artifact.outputs.release_tag }}
|
||||
release_name: 自动发布 ${{ steps.assemble_artifact.outputs.release_tag }}
|
||||
draft: false
|
||||
prerelease: false
|
||||
- name: Upload Release Asset
|
||||
id: upload-release-asset
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.sec_token }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
|
||||
asset_path: ./artifact.zip
|
||||
asset_name: ${{ steps.assemble_artifact.outputs.release_tag }}-ROM.zip
|
||||
asset_content_type: application/zip
|
||||
147
.github/workflows/r1s_lienol.yml
vendored
147
.github/workflows/r1s_lienol.yml
vendored
@@ -1,147 +0,0 @@
|
||||
name: r1s Lienol版openwrt
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- '.github/workflows/r1s_lienol.yml'
|
||||
schedule:
|
||||
- cron: 0 0 */10 * *
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'klever1988/nanopi-openwrt'
|
||||
|
||||
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 --no-install-recommends install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch python3 unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs gcc-multilib g++-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler
|
||||
curl https://raw.githubusercontent.com/friendlyarm/build-env-on-ubuntu-bionic/master/install.sh | sed '/#/d' | sed 's/\\//g' | sed 's/exit 0//g' | sed 's/sudo apt -y install//g' | sed 's/sudo apt-get -y install//g' | sed 's/:i386//g' | xargs sudo apt-get -y --no-install-recommends install
|
||||
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-h5
|
||||
cd friendlywrt-h5
|
||||
repo init -u https://github.com/friendlyarm/friendlywrt_manifests -b master-v19.07.1 -m h5.xml --repo-url=https://github.com/friendlyarm/repo --no-clone-bundle --depth=1
|
||||
repo sync -c --no-tags --no-clone-bundle -j8
|
||||
cd friendlywrt/ && git fetch --unshallow
|
||||
|
||||
- name: Mods
|
||||
run: |
|
||||
git config --global user.email "action@github.com" && git config --global user.name "GitHub Action"
|
||||
cd friendlywrt-h5
|
||||
. ../remove_unused_config.sh
|
||||
cat ../app_config.seed >> configs/config_h5
|
||||
cd friendlywrt
|
||||
git remote add upstream https://github.com/Lienol/openwrt && git fetch upstream
|
||||
git checkout upstream/19.07 -b tmp
|
||||
git mv README.md README && git commit -m 'undo rename readme for rebasing'
|
||||
git checkout origin/master-v19.07.1
|
||||
git rebase adc1a9a3676b8d7be1b48b5aed185a94d8e42728^ --onto tmp -X theirs
|
||||
rm target/linux/allwinner-h5/patches-4.14/0001-net-thunderx-workaround-BGX-TX-Underflow-issue.patch
|
||||
sed -i '/ipv6/,+3d' package/base-files/files/root/setup.sh
|
||||
git checkout upstream/19.07 -- feeds.conf.default
|
||||
sed -i '/ucl upx/d' tools/Makefile
|
||||
sudo apt -y install upx-ucl && mkdir -p staging_dir/host/bin && ln -s /usr/bin/upx-ucl staging_dir/host/bin/upx
|
||||
sed -i '/exit/i\chown -R root:root /usr/share/netdata/web' package/default-settings/files/zzz-default-settings
|
||||
sed -i 's/option fullcone\t1/option fullcone\t0/' package/network/config/firewall/files/firewall.config
|
||||
sed -i '/8.8.8.8/d' package/base-files/files/root/setup.sh
|
||||
echo -e '\nDYC Build\n' >> package/base-files/files/etc/banner
|
||||
|
||||
- name: Mod luci
|
||||
run: |
|
||||
cd friendlywrt-h5/friendlywrt
|
||||
./scripts/feeds update -a && ./scripts/feeds install -a
|
||||
sed -i '/Load Average/i\<div class="tr"><div class="td left" width="33%"><%:CPU Temperature%></div><div class="td left" id="_cputemp"><%=luci.sys.exec("cut -c1-2 /sys/class/thermal/thermal_zone0/temp")%></div></div>' feeds/luci/modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm
|
||||
sed -i 's/pcdata(boardinfo.system or "?")/"ARMv8"/' feeds/luci/modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm
|
||||
|
||||
- name: Build FriendlyWrt
|
||||
run: |
|
||||
cd friendlywrt-h5
|
||||
cp configs/config_h5 friendlywrt/.config
|
||||
cd friendlywrt
|
||||
make defconfig && make download -j8
|
||||
make -s -j$(nproc) || make V=s -j1
|
||||
|
||||
#- name: Patch Kernel
|
||||
# run: |
|
||||
# cd friendlywrt-h5
|
||||
# #cd kernel/ && git apply ../../add_fullconenat.diff && cd ../
|
||||
# git clone https://github.com/openwrt/openwrt
|
||||
# cd openwrt/
|
||||
# git checkout 5387bc9cbb9ed205f08766523a296f21dfa83b56
|
||||
# rm target/linux/generic/backport-4.14/400-v4.16-leds-trigger-Introduce-a-NETDEV-trigger.patch
|
||||
# rm target/linux/generic/pending-4.14/403-mtd-hook-mtdsplit-to-Kbuild.patch
|
||||
# rm target/linux/generic/hack-4.14/700-swconfig_switch_drivers.patch
|
||||
# ./scripts/patch-kernel.sh ../kernel target/linux/generic/backport-4.14
|
||||
# ./scripts/patch-kernel.sh ../kernel target/linux/generic/pending-4.14
|
||||
# ./scripts/patch-kernel.sh ../kernel target/linux/generic/hack-4.14
|
||||
# cd ../kernel && git checkout -- drivers/mtd/ && cd ../
|
||||
# find friendlywrt/ -type f -name .config.override -exec cp {} ../ \;
|
||||
# grep -i 'FILTER_\|FLOW' ../.config.override > .config.override
|
||||
# wget https://github.com/torvalds/linux/raw/master/scripts/kconfig/merge_config.sh && chmod +x merge_config.sh
|
||||
# ./merge_config.sh -m .config.override kernel/arch/arm64/configs/sunxi_arm64_defconfig && mv .config kernel/arch/arm64/configs/sunxi_arm64_defconfig
|
||||
|
||||
- name: Build SD img
|
||||
run: |
|
||||
cd friendlywrt-h5
|
||||
sed -i '130,150 {/build_friendlywrt/d}' scripts/build.sh
|
||||
./build.sh nanopi_r1s.mk
|
||||
cd .. && sudo bash fix_ownership.sh
|
||||
|
||||
- name: Zip Files
|
||||
run: |
|
||||
gzip friendlywrt-h5/out/*.img
|
||||
- name: Assemble Artifact
|
||||
id: assemble_artifact
|
||||
run: |
|
||||
rm -rf ./artifact/
|
||||
mkdir -p ./artifact/
|
||||
mv friendlywrt-h5/out/*img* ./artifact/
|
||||
cp friendlywrt-h5/friendlywrt/.config ./artifact/
|
||||
cd ./artifact/
|
||||
md5sum *img* > md5sum.txt
|
||||
cd ..
|
||||
zip -r artifact.zip ./artifact/
|
||||
release_tag="R1S-Lienol-$(date +%Y-%m-%d)"
|
||||
echo "##[set-output name=release_tag;]$release_tag"
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.sec_token }}
|
||||
with:
|
||||
tag_name: ${{ steps.assemble_artifact.outputs.release_tag }}
|
||||
release_name: 自动发布 ${{ steps.assemble_artifact.outputs.release_tag }}
|
||||
draft: false
|
||||
prerelease: false
|
||||
- name: Upload Release Asset
|
||||
id: upload-release-asset
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.sec_token }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
|
||||
asset_path: ./artifact.zip
|
||||
asset_name: ${{ steps.assemble_artifact.outputs.release_tag }}-ROM.zip
|
||||
asset_content_type: application/zip
|
||||
132
.github/workflows/r2s_add_passwall.yml
vendored
132
.github/workflows/r2s_add_passwall.yml
vendored
@@ -1,132 +0,0 @@
|
||||
name: r2s 原版friendlywrt合并passwall插件
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- '.github/workflows/r2s_add_passwall.yml'
|
||||
# schedule:
|
||||
# - cron: '10 13 * * *'
|
||||
|
||||
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
|
||||
|
||||
- name: Add plugins
|
||||
run: |
|
||||
cd friendlywrt-rk3328
|
||||
rm -f .repo/manifests/rk3328.xml
|
||||
cp ../rk3328-19.xml .repo/manifests/rk3328.xml
|
||||
repo sync -c --no-clone-bundle
|
||||
cd friendlywrt
|
||||
git remote add upstream https://github.com/coolsnowwolf/lede && git fetch upstream
|
||||
git checkout upstream/master package/lean/luci-app-netdata
|
||||
|
||||
- name: Mods
|
||||
run: |
|
||||
cd friendlywrt-rk3328
|
||||
sed -i 's/dnsmasq /dnsmasq-full /' friendlywrt/include/target.mk
|
||||
echo 'src-git lienol https://github.com/Lienol/openwrt-package' >> friendlywrt/feeds.conf.default
|
||||
echo 'src-git darkmatter https://github.com/Lienol/luci-theme-darkmatter;luci-18.06' >> friendlywrt/feeds.conf.default
|
||||
. ../remove_unused_config.sh
|
||||
sed -i '/CONFIG_LUCI_LANG_en/i\CONFIG_LUCI_LANG_zh_Hans=y' configs/config_rk3328
|
||||
sed -i '/CONFIG_LUCI_LANG_en/i\CONFIG_LUCI_LANG_zh_Hant=y' configs/config_rk3328
|
||||
echo '
|
||||
CONFIG_OPENSSL_ENGINE=y
|
||||
CONFIG_OPENSSL_ENGINE_BUILTIN=y
|
||||
CONFIG_OPENSSL_OPTIMIZE_SPEED=y
|
||||
CONFIG_OPENSSL_WITH_ASM=y
|
||||
CONFIG_OPENSSL_WITH_CHACHA_POLY1305=y
|
||||
CONFIG_OPENSSL_WITH_CMS=y
|
||||
CONFIG_OPENSSL_WITH_DEPRECATED=y
|
||||
CONFIG_OPENSSL_WITH_DTLS=y
|
||||
CONFIG_OPENSSL_WITH_EC2M=y
|
||||
CONFIG_OPENSSL_WITH_ERROR_MESSAGES=y
|
||||
CONFIG_OPENSSL_WITH_NPN=y
|
||||
CONFIG_OPENSSL_WITH_PSK=y
|
||||
CONFIG_OPENSSL_WITH_SRP=y
|
||||
CONFIG_OPENSSL_WITH_TLS13=y
|
||||
CONFIG_PACKAGE_curl=y
|
||||
CONFIG_PACKAGE_htop=y
|
||||
CONFIG_PACKAGE_lrzsz=y
|
||||
CONFIG_PACKAGE_nano=y
|
||||
CONFIG_PACKAGE_vim-fuller=y
|
||||
CONFIG_PACKAGE_tcping=y
|
||||
CONFIG_PACKAGE_luci-app-passwall=y
|
||||
CONFIG_PACKAGE_luci-app-passwall_INCLUDE_Brook=y
|
||||
CONFIG_PACKAGE_luci-app-passwall_INCLUDE_Shadowsocks=y
|
||||
CONFIG_PACKAGE_luci-app-passwall_INCLUDE_Trojan=y
|
||||
CONFIG_PACKAGE_luci-app-passwall_INCLUDE_simple-obfs=y
|
||||
CONFIG_PACKAGE_luci-app-passwall_INCLUDE_v2ray-plugin=y
|
||||
CONFIG_PACKAGE_luci-theme-argon-dark-mod=y
|
||||
CONFIG_PACKAGE_luci-theme-argon-light-mod=y
|
||||
CONFIG_PACKAGE_luci-theme-bootstrap=y
|
||||
CONFIG_PACKAGE_luci-theme-bootstrap-mod=y
|
||||
CONFIG_PACKAGE_luci-theme-darkmatter=y
|
||||
CONFIG_PACKAGE_luci-theme-material=y
|
||||
CONFIG_PACKAGE_luci-theme-netgear-mc=y
|
||||
CONFIG_PACKAGE_luci-theme-openwrt=y
|
||||
CONFIG_PACKAGE_luci-theme-rosy=y
|
||||
CONFIG_PACKAGE_luci-app-netdata=y
|
||||
# CONFIG_OPENSSL_PREFER_CHACHA_OVER_GCM is not set' >> configs/config_rk3328
|
||||
cd friendlywrt
|
||||
echo -e '\nchown -R root:root /usr/share/netdata/web' >> package/base-files/files/root/setup.sh
|
||||
sed -i '/8.8.8.8/d' package/base-files/files/root/setup.sh
|
||||
echo -e '\nDYC Build\n' >> package/base-files/files/etc/banner
|
||||
|
||||
- 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/
|
||||
88
.github/workflows/r2s_lean.yml
vendored
88
.github/workflows/r2s_lean.yml
vendored
@@ -1,88 +0,0 @@
|
||||
name: r2s Lean版openwrt
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
paths:
|
||||
- '.github/workflows/r2s_lean.yml'
|
||||
schedule:
|
||||
- cron: '10 09 * * *'
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'klever1988/nanopi-openwrt'
|
||||
|
||||
steps:
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@master
|
||||
with:
|
||||
ref: master
|
||||
|
||||
- name: Initialization Environment
|
||||
env:
|
||||
DEBIAN_FRONTEND: noninteractive
|
||||
run: . 1_initialization_environment.sh
|
||||
|
||||
- name: Clone Source
|
||||
run: . 2_clone_source.sh master-v19.07.1 rk3328
|
||||
|
||||
- name: Patch Kernel
|
||||
run: . patch_kernel_5.4.sh
|
||||
|
||||
- name: Mods
|
||||
run: |
|
||||
cd friendlywrt-rk3328
|
||||
. ../remove_unused_config.sh
|
||||
cat configs/config_rk3328 | grep "TARGET" >> ../base_rk3328.seed
|
||||
cat ../app_config.seed >> ../base_rk3328.seed
|
||||
cat ../base_rk3328.seed > configs/config_rk3328
|
||||
cd friendlywrt
|
||||
git remote add upstream https://github.com/coolsnowwolf/openwrt && git fetch upstream
|
||||
git checkout upstream/lede-17.01 -b tmp
|
||||
git rm README.md
|
||||
git commit -m 'reset'
|
||||
git checkout master-v19.07.1
|
||||
git rebase adc1a9a3676b8d7be1b48b5aed185a94d8e42728^ --onto tmp -X theirs
|
||||
rm -f target/linux/rockchip-rk3328/patches-4.14/0001-net-thunderx-workaround-BGX-TX-Underflow-issue.patch target/linux/generic/hack-4.14/999-net-patch-linux-kernel-to-support-shortcut-fe.patch
|
||||
git checkout upstream/lede-17.01 -- feeds.conf.default && sed -i -E 's/#(src-git.+)(helloworld.+)/\1\2/' feeds.conf.default
|
||||
curl 'https://git.openwrt.org/?p=openwrt/openwrt.git;a=patch;h=22378beb581b113def1dc392ef75306a2168a163' | git apply --reject - || true
|
||||
. ../../3_prepare_packages.sh
|
||||
git apply ../../enable_autocore.diff
|
||||
sed -i 's/@LINUX_5_4//' package/lean/luci-app-flowoffload/Makefile
|
||||
. ../../5_mods.sh
|
||||
mv ../../scripts/check_wan4.sh package/base-files/files/usr/bin && sed -i '/exit/i\/bin/sh /usr/bin/check_wan4.sh &' package/base-files/files/etc/rc.local
|
||||
mv ../../scripts/autoupdate.sh package/base-files/files/root/au.sh && chmod +x package/base-files/files/root/au.sh
|
||||
|
||||
- name: Build FriendlyWrt
|
||||
run: . 4_build_image.sh friendlywrt-rk3328 nanopi_r2s.mk
|
||||
|
||||
- name: Assemble Artifact
|
||||
id: assemble_artifact
|
||||
run: |
|
||||
. x_assemble_artifact.sh
|
||||
release_tag="R2S-Lean-$(date +%Y-%m-%d)"
|
||||
echo "##[set-output name=release_tag;]$release_tag"
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.sec_token }}
|
||||
with:
|
||||
tag_name: ${{ steps.assemble_artifact.outputs.release_tag }}
|
||||
release_name: 自动发布 ${{ steps.assemble_artifact.outputs.release_tag }}
|
||||
draft: false
|
||||
prerelease: false
|
||||
- name: Upload Release Asset
|
||||
id: upload-release-asset
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.sec_token }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
|
||||
asset_path: ./artifact.zip
|
||||
asset_name: ${{ steps.assemble_artifact.outputs.release_tag }}-ROM.zip
|
||||
asset_content_type: application/zip
|
||||
95
.github/workflows/r2s_lean_minimal-dev.yml_
vendored
95
.github/workflows/r2s_lean_minimal-dev.yml_
vendored
@@ -1,95 +0,0 @@
|
||||
name: r2s Lean版openwrt minimal
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
paths:
|
||||
- '.github/workflows/r2s_lean_minimal-dev.yml'
|
||||
schedule:
|
||||
- cron: '10 08 * * *'
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'klever1988/nanopi-openwrt'
|
||||
|
||||
steps:
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@master
|
||||
with:
|
||||
ref: master
|
||||
|
||||
- name: Initialization Environment
|
||||
env:
|
||||
DEBIAN_FRONTEND: noninteractive
|
||||
run: . 1_initialization_environment.sh
|
||||
|
||||
- name: Clone Source
|
||||
run: . 2_clone_source.sh master-v19.07.1 rk3328
|
||||
|
||||
- name: Patch Kernel
|
||||
run: . patch_kernel_5.4-test.sh
|
||||
|
||||
- name: Mods
|
||||
run: |
|
||||
cd friendlywrt-rk3328
|
||||
. ../remove_unused_config.sh
|
||||
cat configs/config_rk3328 | grep "TARGET" >> ../base_rk3328.seed
|
||||
cat ../minimal_config.seed >> ../base_rk3328.seed
|
||||
cat ../base_rk3328.seed > configs/config_rk3328
|
||||
cd friendlywrt
|
||||
git remote add upstream https://github.com/project-openwrt/openwrt && git fetch upstream
|
||||
git checkout upstream/openwrt-18.06 -b tmp
|
||||
git mv README.md README
|
||||
git commit -m 'reset'
|
||||
git checkout master-v19.07.1
|
||||
git rebase adc1a9a3676b8d7be1b48b5aed185a94d8e42728^ --onto tmp -X theirs
|
||||
rm -f target/linux/rockchip-rk3328/patches-4.14/0001-net-thunderx-workaround-BGX-TX-Underflow-issue.patch
|
||||
git checkout upstream/openwrt-18.06 -- feeds.conf.default
|
||||
cd package/ctcgfw/
|
||||
. ../../../../3_prepare_packages.sh
|
||||
cd ../../
|
||||
git apply ../../enable_autocore_ctcgfw_master.diff
|
||||
. ../../5_mods.sh
|
||||
mv ../../scripts/check_wan4.sh package/base-files/files/usr/bin && sed -i '/exit/i\/bin/sh /usr/bin/check_wan4.sh &' package/base-files/files/etc/rc.local
|
||||
mv ../../scripts/autoupdate.sh package/base-files/files/root/au.sh && chmod +x package/base-files/files/root/au.sh
|
||||
|
||||
- name: Add OpenClash Core
|
||||
run: |
|
||||
cd friendlywrt-rk3328/friendlywrt/package/base-files/files
|
||||
mkdir -p etc/openclash/core && cd etc/openclash/core
|
||||
curl -L https://github.com/vernesong/OpenClash/releases/download/Clash/clash-linux-armv8.tar.gz | tar zxf -
|
||||
chmod +x clash
|
||||
|
||||
- name: Build FriendlyWrt
|
||||
run: . 4_build_image.sh friendlywrt-rk3328 nanopi_r2s.mk
|
||||
|
||||
- name: Assemble Artifact
|
||||
id: assemble_artifact
|
||||
run: |
|
||||
. x_assemble_artifact.sh
|
||||
release_tag="R2S-Minimal-$(date +%Y-%m-%d)-dev"
|
||||
echo "##[set-output name=release_tag;]$release_tag"
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.sec_token }}
|
||||
with:
|
||||
tag_name: ${{ steps.assemble_artifact.outputs.release_tag }}
|
||||
release_name: 仅测试勿使用 ${{ steps.assemble_artifact.outputs.release_tag }}
|
||||
draft: false
|
||||
prerelease: false
|
||||
- name: Upload Release Asset
|
||||
id: upload-release-asset
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.sec_token }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
|
||||
asset_path: ./artifact.zip
|
||||
asset_name: ${{ steps.assemble_artifact.outputs.release_tag }}-ROM.zip
|
||||
asset_content_type: application/zip
|
||||
152
.github/workflows/r2s_lean_minimal-test.yml_
vendored
152
.github/workflows/r2s_lean_minimal-test.yml_
vendored
@@ -1,152 +0,0 @@
|
||||
name: r2s Lean版openwrt minimal
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- '.github/workflows/r2s_lean_minimal-test.yml'
|
||||
schedule:
|
||||
- cron: '10 08 * * *'
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'klever1988/nanopi-openwrt'
|
||||
|
||||
steps:
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@master
|
||||
with:
|
||||
ref: master
|
||||
|
||||
- name: Initialization Environment
|
||||
env:
|
||||
DEBIAN_FRONTEND: noninteractive
|
||||
run: . 1_initialization_environment.sh
|
||||
|
||||
- name: Clone Source
|
||||
run: . 2_clone_source.sh
|
||||
|
||||
- name: Patch Kernel
|
||||
run: . patch_kernel_5.4-test.sh
|
||||
|
||||
- name: Mods
|
||||
run: |
|
||||
cd friendlywrt-rk3328
|
||||
. ../remove_unused_config.sh
|
||||
cat configs/config_rk3328 | grep "TARGET" >> ../base_rk3328.seed
|
||||
cat ../base_rk3328.seed > configs/config_rk3328
|
||||
cat minimal_config.seed >> 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/coolsnowwolf/openwrt && git fetch upstream
|
||||
git checkout upstream/lede-17.01 -b tmp
|
||||
#git checkout 33f7cb735300bd9a099995236ed768c8925fec75 -- target/linux/sunxi/image/
|
||||
git rm README.md
|
||||
git commit -m 'reset'
|
||||
git checkout origin/master-v19.07.1
|
||||
git rebase adc1a9a3676b8d7be1b48b5aed185a94d8e42728^ --onto tmp -X theirs
|
||||
curl 'https://git.openwrt.org/?p=openwrt/openwrt.git;a=patch;h=22378beb581b113def1dc392ef75306a2168a163' > ip-full.patch; git apply --reject ip-full.patch || true
|
||||
rm -f target/linux/rockchip-rk3328/patches-4.14/0001-net-thunderx-workaround-BGX-TX-Underflow-issue.patch target/linux/generic/hack-4.14/999-net-patch-linux-kernel-to-support-shortcut-fe.patch
|
||||
sed -i '/ipv6/,+3d' package/base-files/files/root/setup.sh
|
||||
git checkout upstream/lede-17.01 -- feeds.conf.default
|
||||
sed -i 's/coolsnowwolf\/packages/klever1988\/packages/' feeds.conf.default
|
||||
sed -i -E 's/#(src-git.+)(helloworld.+)/\1\2/' feeds.conf.default
|
||||
cd package/lean/
|
||||
git clone https://github.com/NateLol/luci-app-oled
|
||||
#git clone https://github.com/jerrykuku/lua-maxminddb.git
|
||||
#git clone https://github.com/jerrykuku/luci-app-vssr.git
|
||||
#cd luci-app-vssr/root/etc/
|
||||
#echo 'china_ssr.txt
|
||||
#config/black.list
|
||||
#config/white.list
|
||||
#dnsmasq.oversea/oversea_list.conf
|
||||
#dnsmasq.ssr/ad.conf
|
||||
#dnsmasq.ssr/gfw_base.conf' | xargs rm
|
||||
#cd ../../../
|
||||
rm -rf luci-theme-argon
|
||||
git clone -b 18.06 https://github.com/jerrykuku/luci-theme-argon.git
|
||||
cd ../../
|
||||
git apply ../../enable_autocore.diff
|
||||
#git apply ../../fix_cpufreq.diff
|
||||
sed -i 's/@LINUX_5_4//' package/lean/luci-app-flowoffload/Makefile
|
||||
sed -i '/uci commit luci/i\uci set luci.main.mediaurlbase="/luci-static/argon"' package/lean/default-settings/files/zzz-default-settings
|
||||
sed -i '/exit/i\chown -R root:root /usr/share/netdata/web' package/lean/default-settings/files/zzz-default-settings
|
||||
sed -i '/exit/i\find /etc/rc.d/ -name *docker* -delete' package/lean/default-settings/files/zzz-default-settings
|
||||
sed -i 's/option fullcone\t1/option fullcone\t0/' package/network/config/firewall/files/firewall.config
|
||||
sed -i '/8.8.8.8/d' package/base-files/files/root/setup.sh
|
||||
mv ../../scripts/check_wan4.sh package/base-files/files/usr/bin && sed -i '/exit/i\/bin/sh /usr/bin/check_wan4.sh &' package/base-files/files/etc/rc.local
|
||||
mv ../../scripts/autoupdate.sh package/base-files/files/root/au.sh && chmod +x package/base-files/files/root/au.sh
|
||||
echo -e '\nDYC Build\n' >> package/base-files/files/etc/banner
|
||||
|
||||
- name: Add OpenClash
|
||||
run: |
|
||||
git clone -b master https://github.com/vernesong/OpenClash.git
|
||||
mv OpenClash/luci-app-openclash friendlywrt-rk3328/friendlywrt/package
|
||||
cd friendlywrt-rk3328/friendlywrt/package/base-files/files
|
||||
mkdir -p etc/openclash/core && cd etc/openclash/core
|
||||
curl -L https://github.com/vernesong/OpenClash/releases/download/Clash/clash-linux-armv8.tar.gz | tar zxf -
|
||||
chmod +x clash
|
||||
|
||||
- name: Add Passwall
|
||||
run: |
|
||||
cd friendlywrt-rk3328/friendlywrt
|
||||
echo -e '\nsrc-git lienol https://github.com/Lienol/openwrt-package' >> feeds.conf.default
|
||||
./scripts/feeds update -a
|
||||
rm -rf feeds/lienol/lienol/ipt2socks
|
||||
rm -rf feeds/lienol/lienol/shadowsocksr-libev
|
||||
rm -rf feeds/lienol/lienol/pdnsd-alt
|
||||
rm -rf feeds/lienol/package/verysync
|
||||
rm -rf feeds/lienol/lienol/luci-app-verysync
|
||||
rm -rf package/lean/luci-app-kodexplorer
|
||||
rm -rf package/lean/luci-app-pppoe-relay
|
||||
rm -rf package/lean/luci-app-pptp-server
|
||||
rm -rf package/lean/luci-app-v2ray-server
|
||||
./scripts/feeds install -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
|
||||
id: assemble_artifact
|
||||
run: |
|
||||
rm -rf ./artifact/
|
||||
mkdir -p ./artifact/
|
||||
mv friendlywrt-rk3328/out/*img* ./artifact/
|
||||
cp friendlywrt-rk3328/friendlywrt/.config ./artifact/
|
||||
cd ./artifact/
|
||||
md5sum *img* > md5sum.txt
|
||||
cd ..
|
||||
zip -r artifact.zip ./artifact/
|
||||
release_tag="R2S-Minimal-$(date +%Y-%m-%d)-test"
|
||||
echo "##[set-output name=release_tag;]$release_tag"
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.sec_token }}
|
||||
with:
|
||||
tag_name: ${{ steps.assemble_artifact.outputs.release_tag }}
|
||||
release_name: 仅测试勿使用 ${{ steps.assemble_artifact.outputs.release_tag }}
|
||||
draft: false
|
||||
prerelease: false
|
||||
- name: Upload Release Asset
|
||||
id: upload-release-asset
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.sec_token }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
|
||||
asset_path: ./artifact.zip
|
||||
asset_name: ${{ steps.assemble_artifact.outputs.release_tag }}-ROM.zip
|
||||
asset_content_type: application/zip
|
||||
89
.github/workflows/r2s_lean_minimal.yml
vendored
89
.github/workflows/r2s_lean_minimal.yml
vendored
@@ -1,89 +0,0 @@
|
||||
name: r2s Lean版openwrt minimal
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
paths:
|
||||
- '.github/workflows/r2s_lean_minimal.yml'
|
||||
schedule:
|
||||
- cron: '10 08 * * *'
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-18.04
|
||||
if: github.repository == 'CMCCAdmin/nanopi-openwrt'
|
||||
|
||||
steps:
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@master
|
||||
with:
|
||||
ref: master
|
||||
|
||||
- name: Initialization Environment
|
||||
env:
|
||||
DEBIAN_FRONTEND: noninteractive
|
||||
run: . 1_initialization_environment.sh
|
||||
|
||||
- name: Clone Source
|
||||
run: . 2_clone_source.sh master-v19.07.1 rk3328
|
||||
|
||||
- name: Patch Kernel
|
||||
run: . patch_kernel_5.4.sh
|
||||
|
||||
- name: Mods
|
||||
run: |
|
||||
cd friendlywrt-rk3328
|
||||
. ../remove_unused_config.sh
|
||||
cat configs/config_rk3328 | grep "TARGET" >> ../base_rk3328.seed
|
||||
cat ../minimal_config.seed >> ../base_rk3328.seed
|
||||
cat ../base_rk3328.seed > configs/config_rk3328
|
||||
cd friendlywrt
|
||||
git remote add upstream https://github.com/coolsnowwolf/openwrt && git fetch upstream
|
||||
git checkout upstream/lede-17.01 -b tmp
|
||||
git rm README.md
|
||||
git commit -m 'reset'
|
||||
git checkout master-v19.07.1
|
||||
git rebase adc1a9a3676b8d7be1b48b5aed185a94d8e42728^ --onto tmp -X theirs
|
||||
rm -f target/linux/rockchip-rk3328/patches-4.14/0001-net-thunderx-workaround-BGX-TX-Underflow-issue.patch target/linux/generic/hack-4.14/999-net-patch-linux-kernel-to-support-shortcut-fe.patch
|
||||
git checkout upstream/lede-17.01 -- feeds.conf.default && sed -i -E 's/#(src-git.+)(helloworld.+)/\1\2/' feeds.conf.default
|
||||
curl 'https://git.openwrt.org/?p=openwrt/openwrt.git;a=patch;h=22378beb581b113def1dc392ef75306a2168a163' | git apply --reject - || true
|
||||
. ../../3_prepare_packages.sh
|
||||
. ../../add_openclash.sh
|
||||
. ../../add_passwall.sh
|
||||
sed -i 's/@LINUX_5_4//' package/lean/luci-app-flowoffload/Makefile
|
||||
. ../../5_mods.sh
|
||||
mv ../../scripts/check_wan4.sh package/base-files/files/usr/bin && sed -i '/exit/i\/bin/sh /usr/bin/check_wan4.sh &' package/base-files/files/etc/rc.local
|
||||
|
||||
|
||||
- name: Build FriendlyWrt
|
||||
run: . 4_build_image.sh friendlywrt-rk3328 nanopi_r2s.mk
|
||||
|
||||
- name: Assemble Artifact
|
||||
id: assemble_artifact
|
||||
run: |
|
||||
. x_assemble_artifact.sh
|
||||
release_tag="R2S-Minimal1-$(date +%Y-%m-%d)"
|
||||
echo "##[set-output name=release_tag;]$release_tag"
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.sec_token }}
|
||||
with:
|
||||
tag_name: ${{ steps.assemble_artifact.outputs.release_tag }}
|
||||
release_name: 自动发布 ${{ steps.assemble_artifact.outputs.release_tag }}
|
||||
draft: false
|
||||
prerelease: false
|
||||
- name: Upload Release Asset
|
||||
id: upload-release-asset
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.sec_token }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
|
||||
asset_path: ./artifact.zip
|
||||
asset_name: ${{ steps.assemble_artifact.outputs.release_tag }}-ROM.zip
|
||||
asset_content_type: application/zip
|
||||
124
.github/workflows/r2s_lienol.yml
vendored
124
.github/workflows/r2s_lienol.yml
vendored
@@ -1,124 +0,0 @@
|
||||
name: r2s Lienol版openwrt
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- '.github/workflows/r2s_lienol.yml'
|
||||
schedule:
|
||||
- cron: '30 10 */5 * *'
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'klever1988/nanopi-openwrt'
|
||||
|
||||
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 --no-install-recommends install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch python3 unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs gcc-multilib g++-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler
|
||||
curl https://raw.githubusercontent.com/friendlyarm/build-env-on-ubuntu-bionic/master/install.sh | sed '/#/d' | sed 's/\\//g' | sed 's/exit 0//g' | sed 's/sudo apt -y install//g' | sed 's/sudo apt-get -y install//g' | sed 's/:i386//g' | xargs sudo apt-get -y --no-install-recommends install
|
||||
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-v19.07.1 -m rk3328.xml --repo-url=https://github.com/friendlyarm/repo --no-clone-bundle --depth=1
|
||||
repo sync -c --no-tags --no-clone-bundle -j8
|
||||
cd friendlywrt/ && git fetch --unshallow
|
||||
|
||||
- name: Patch Kernel
|
||||
run: |
|
||||
. patch_kernel_5.4.sh
|
||||
|
||||
- name: Mods
|
||||
run: |
|
||||
git config --global user.email "action@github.com" && git config --global user.name "GitHub Action"
|
||||
cd friendlywrt-rk3328
|
||||
. ../remove_unused_config.sh
|
||||
cat configs/config_rk3328 | grep "TARGET" >> ../base_rk3328.seed
|
||||
cat ../app_config.seed >> ../base_rk3328.seed
|
||||
cat ../base_rk3328.seed > configs/config_rk3328
|
||||
cd friendlywrt
|
||||
git remote add upstream https://github.com/Lienol/openwrt && git fetch upstream
|
||||
git checkout upstream/19.07 -b tmp
|
||||
git mv README.md README && git commit -m 'undo rename readme for rebasing'
|
||||
git checkout origin/master-v19.07.1
|
||||
git rebase adc1a9a3676b8d7be1b48b5aed185a94d8e42728^ --onto tmp -X theirs
|
||||
rm target/linux/rockchip-rk3328/patches-4.14/0001-net-thunderx-workaround-BGX-TX-Underflow-issue.patch
|
||||
sed -i '/ipv6/,+3d' package/base-files/files/root/setup.sh
|
||||
git checkout upstream/19.07 -- feeds.conf.default
|
||||
sed -i '/exit/i\chown -R root:root /usr/share/netdata/web' package/default-settings/files/zzz-default-settings
|
||||
sed -i 's/option fullcone\t1/option fullcone\t0/' package/network/config/firewall/files/firewall.config
|
||||
sed -i '/8.8.8.8/d' package/base-files/files/root/setup.sh
|
||||
echo -e '\nDYC Build\n' >> package/base-files/files/etc/banner
|
||||
|
||||
- name: Mod luci
|
||||
run: |
|
||||
cd friendlywrt-rk3328/friendlywrt
|
||||
./scripts/feeds update -a && ./scripts/feeds install -a
|
||||
sed -i '/Load Average/i\<div class="tr"><div class="td left" width="33%"><%:CPU Temperature%></div><div class="td left" id="_cputemp"><%=luci.sys.exec("cut -c1-2 /sys/class/thermal/thermal_zone0/temp")%></div></div>' feeds/luci/modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm
|
||||
sed -i 's/pcdata(boardinfo.system or "?")/"ARMv8"/' feeds/luci/modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm
|
||||
|
||||
- name: Build FriendlyWrt
|
||||
run: |
|
||||
cd friendlywrt-rk3328
|
||||
sed -i 's/set -eu/set -u/' scripts/mk-friendlywrt.sh
|
||||
./build.sh nanopi_r2s.mk
|
||||
cd .. && sudo bash fix_ownership.sh
|
||||
|
||||
- name: Zip Files
|
||||
run: |
|
||||
gzip friendlywrt-rk3328/out/*.img
|
||||
- name: Assemble Artifact
|
||||
id: assemble_artifact
|
||||
run: |
|
||||
rm -rf ./artifact/
|
||||
mkdir -p ./artifact/
|
||||
mv friendlywrt-rk3328/out/*img* ./artifact/
|
||||
cp friendlywrt-rk3328/friendlywrt/.config ./artifact/
|
||||
cd ./artifact/
|
||||
md5sum *img* > md5sum.txt
|
||||
cd ..
|
||||
zip -r artifact.zip ./artifact/
|
||||
release_tag="R2S-Lienol-$(date +%Y-%m-%d)"
|
||||
echo "##[set-output name=release_tag;]$release_tag"
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.sec_token }}
|
||||
with:
|
||||
tag_name: ${{ steps.assemble_artifact.outputs.release_tag }}
|
||||
release_name: 自动发布 ${{ steps.assemble_artifact.outputs.release_tag }}
|
||||
draft: false
|
||||
prerelease: false
|
||||
- name: Upload Release Asset
|
||||
id: upload-release-asset
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.sec_token }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
|
||||
asset_path: ./artifact.zip
|
||||
asset_name: ${{ steps.assemble_artifact.outputs.release_tag }}-ROM.zip
|
||||
asset_content_type: application/zip
|
||||
199
.github/workflows/r2s_lienol_from_lean.yml_
vendored
199
.github/workflows/r2s_lienol_from_lean.yml_
vendored
@@ -1,199 +0,0 @@
|
||||
name: r2s Lienol版openwrt based on Lean
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- '.github/workflows/r2s_lienol_from_lean.yml'
|
||||
schedule:
|
||||
- cron: '09 08 * * *'
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'klever1988/nanopi-openwrt'
|
||||
|
||||
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 --no-install-recommends install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch python3 unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs gcc-multilib g++-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler
|
||||
curl https://raw.githubusercontent.com/friendlyarm/build-env-on-ubuntu-bionic/master/install.sh | sed '/#/d' | sed 's/\\//g' | sed 's/exit 0//g' | sed 's/sudo apt -y install//g' | sed 's/sudo apt-get -y install//g' | sed 's/:i386//g' | xargs sudo apt-get -y --no-install-recommends install
|
||||
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-v19.07.1 -m rk3328.xml --repo-url=https://github.com/friendlyarm/repo --no-clone-bundle --depth=1
|
||||
repo sync -c --no-tags --no-clone-bundle -j8
|
||||
#cd u-boot/ && git fetch --unshallow && cd ../
|
||||
cd friendlywrt/ && git fetch --unshallow
|
||||
|
||||
- name: Patch Kernel
|
||||
run: |
|
||||
. patch_kernel_5.4.sh
|
||||
|
||||
- name: Mods
|
||||
run: |
|
||||
cd friendlywrt-rk3328
|
||||
#cd u-boot/ && git config --local user.email "action@github.com" && git config --local user.name "GitHub Action" && git revert e19137c754437403e8d077083ba51ea7b50a7e5f && cd ../
|
||||
. ../remove_unused_config.sh
|
||||
cat configs/config_rk3328 | grep "TARGET" >> ../base_rk3328.seed
|
||||
cat ../base_rk3328.seed > configs/config_rk3328
|
||||
echo '
|
||||
CONFIG_PACKAGE_ipv6helper=y
|
||||
CONFIG_PACKAGE_dnsmasq_full_dhcpv6=y
|
||||
CONFIG_OPENSSL_ENGINE_BUILTIN=y
|
||||
CONFIG_OPENSSL_WITH_DTLS=y
|
||||
CONFIG_OPENSSL_WITH_EC2M=y
|
||||
CONFIG_OPENSSL_WITH_NPN=y
|
||||
CONFIG_PACKAGE_autocore=y
|
||||
CONFIG_PACKAGE_htop=y
|
||||
CONFIG_PACKAGE_diffutils=y
|
||||
CONFIG_PACKAGE_vim-fuller=y
|
||||
CONFIG_PACKAGE_pv=y
|
||||
CONFIG_PACKAGE_pigz=y
|
||||
CONFIG_PACKAGE_unzip=y
|
||||
CONFIG_PACKAGE_losetup=y
|
||||
CONFIG_PACKAGE_luci-app-frpc=y
|
||||
CONFIG_PACKAGE_luci-app-netdata=y
|
||||
CONFIG_LIBSODIUM_MINIMAL=y
|
||||
CONFIG_PACKAGE_ddns-scripts_aliyun=y
|
||||
CONFIG_PACKAGE_ddns-scripts_cloudflare.com-v4=y
|
||||
CONFIG_PACKAGE_luci-app-ssr-plus=y
|
||||
CONFIG_PACKAGE_luci-app-ssr-plus_INCLUDE_DNS2SOCKS=y
|
||||
CONFIG_PACKAGE_luci-app-ssr-plus_INCLUDE_Redsocks2=y
|
||||
CONFIG_PACKAGE_luci-app-ssr-plus_INCLUDE_Shadowsocks=y
|
||||
CONFIG_PACKAGE_luci-app-ssr-plus_INCLUDE_Simple_obfs=y
|
||||
CONFIG_PACKAGE_luci-app-ssr-plus_INCLUDE_Trojan=y
|
||||
CONFIG_PACKAGE_luci-app-ssr-plus_INCLUDE_V2ray=y
|
||||
CONFIG_PACKAGE_luci-app-ssr-plus_INCLUDE_V2ray_plugin=y
|
||||
CONFIG_PACKAGE_luci-app-ssrserver-python=y
|
||||
CONFIG_PACKAGE_luci-app-uhttpd=y
|
||||
CONFIG_PACKAGE_luci-app-unblockmusic=y
|
||||
CONFIG_PACKAGE_luci-app-v2ray-server=y
|
||||
CONFIG_PACKAGE_luci-app-vssr=y
|
||||
CONFIG_PACKAGE_luci-theme-argon=y
|
||||
CONFIG_PACKAGE_luci-theme-material=y
|
||||
CONFIG_PACKAGE_luci-theme-netgear=y
|
||||
CONFIG_PACKAGE_luci-app-unblockmusic=y
|
||||
CONFIG_UnblockNeteaseMusic_Go=y
|
||||
CONFIG_UnblockNeteaseMusic_NodeJS=y
|
||||
CONFIG_PACKAGE_luci-app-passwall_INCLUDE_Brook=y
|
||||
CONFIG_PACKAGE_luci-app-passwall_INCLUDE_Shadowsocks=y
|
||||
CONFIG_PACKAGE_luci-app-passwall_INCLUDE_Trojan=y
|
||||
CONFIG_PACKAGE_luci-app-passwall_INCLUDE_simple-obfs=y
|
||||
CONFIG_PACKAGE_luci-app-passwall_INCLUDE_v2ray-plugin=y
|
||||
CONFIG_PACKAGE_luci-app-openclash=y
|
||||
CONFIG_PACKAGE_luci-app-zerotier=y
|
||||
# CONFIG_PACKAGE_luci-app-accesscontrol is not set
|
||||
# CONFIG_PACKAGE_luci-app-nlbwmon 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-sqm is not set
|
||||
# CONFIG_PACKAGE_luci-app-ssr-python-pro-server is not set
|
||||
# CONFIG_PACKAGE_luci-app-v2ray-server is not set
|
||||
# CONFIG_PACKAGE_luci-app-vsftpd is not set
|
||||
# CONFIG_PACKAGE_luci-app-vssr_INCLUDE_ShadowsocksR_Socks is not set
|
||||
# CONFIG_TARGET_ROOTFS_TARGZ is not set
|
||||
# CONFIG_OPENSSL_ENGINE_BUILTIN_DEVCRYPTO is not set
|
||||
# CONFIG_PACKAGE_kmod-crypto-authenc is not set
|
||||
# CONFIG_PACKAGE_kmod-cryptodev is not set
|
||||
# CONFIG_PACKAGE_libopenssl-devcrypto is not set
|
||||
# CONFIG_V2RAY_COMPRESS_UPX is not set
|
||||
' >> 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-lean-lede -b tmp
|
||||
git mv README.md README && git commit -m 'undo rename readme for rebasing'
|
||||
git checkout origin/master-v19.07.1
|
||||
git rebase adc1a9a3676b8d7be1b48b5aed185a94d8e42728^ --onto tmp -X theirs
|
||||
git revert --no-edit 8faac30089ce616940b3e96c4f4d900aeb6b9fcb
|
||||
sed -i '/ipv6/,+3d' package/base-files/files/root/setup.sh
|
||||
git checkout upstream/dev-lean-lede -- feeds.conf.default
|
||||
cd package/lean/
|
||||
rm -rf luci-theme-argon
|
||||
git clone -b 18.06 https://github.com/jerrykuku/luci-theme-argon.git
|
||||
cd ../../
|
||||
git apply ../../enable_autocore.diff
|
||||
#git apply ../../fix_cpufreq.diff
|
||||
sed -i '/uci commit luci/i\uci set luci.main.mediaurlbase="/luci-static/argon"' package/lean/default-settings/files/zzz-default-settings
|
||||
sed -i '/exit/i\chown -R root:root /usr/share/netdata/web' package/lean/default-settings/files/zzz-default-settings
|
||||
sed -i '/exit/i\find /etc/rc.d/ -name *docker* -delete' package/lean/default-settings/files/zzz-default-settings
|
||||
sed -i 's/option fullcone\t1/option fullcone\t0/' package/network/config/firewall/files/firewall.config
|
||||
sed -i '/8.8.8.8/d' package/base-files/files/root/setup.sh
|
||||
mv ../../scripts/check_wan4.sh package/base-files/files/usr/bin && sed -i '/exit/i\/bin/sh /usr/bin/check_wan4.sh &' package/base-files/files/etc/rc.local
|
||||
mv ../../scripts/autoupdate.sh package/base-files/files/root/au.sh && chmod +x package/base-files/files/root/au.sh
|
||||
echo -e '\nDYC Build\n' >> package/base-files/files/etc/banner
|
||||
|
||||
- name: Add OpenClash
|
||||
run: |
|
||||
git clone https://github.com/vernesong/OpenClash.git
|
||||
mv OpenClash/luci-app-openclash friendlywrt-rk3328/friendlywrt/package
|
||||
cd friendlywrt-rk3328/friendlywrt/package/base-files/files
|
||||
mkdir -p etc/openclash && cd etc/openclash
|
||||
curl -L https://github.com/vernesong/OpenClash/releases/download/Clash/clash-linux-armv8.tar.gz | tar zxf -
|
||||
chmod +x clash
|
||||
|
||||
- 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
|
||||
id: assemble_artifact
|
||||
run: |
|
||||
rm -rf ./artifact/
|
||||
mkdir -p ./artifact/
|
||||
mv friendlywrt-rk3328/out/*img* ./artifact/
|
||||
cp friendlywrt-rk3328/friendlywrt/.config ./artifact/
|
||||
cd ./artifact/
|
||||
md5sum *img* > md5sum.txt
|
||||
cd ..
|
||||
zip -r artifact.zip ./artifact/
|
||||
release_tag="R2S-Minimal-$(date +%Y-%m-%d)"
|
||||
echo "##[set-output name=release_tag;]$release_tag"
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.sec_token }}
|
||||
with:
|
||||
tag_name: ${{ steps.assemble_artifact.outputs.release_tag }}
|
||||
release_name: 自动发布 ${{ steps.assemble_artifact.outputs.release_tag }}
|
||||
draft: false
|
||||
prerelease: false
|
||||
- name: Upload Release Asset
|
||||
id: upload-release-asset
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.sec_token }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
|
||||
asset_path: ./artifact.zip
|
||||
asset_name: ${{ steps.assemble_artifact.outputs.release_tag }}-ROM.zip
|
||||
asset_content_type: application/zip
|
||||
86
.github/workflows/r2s_native-dev.yml_
vendored
86
.github/workflows/r2s_native-dev.yml_
vendored
@@ -1,86 +0,0 @@
|
||||
name: r2s原生固件(测试)
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
paths:
|
||||
- '.github/workflows/r2s_native-dev.yml'
|
||||
schedule:
|
||||
- cron: '10 08 * * *'
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'klever1988/nanopi-openwrt'
|
||||
|
||||
steps:
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@master
|
||||
with:
|
||||
ref: master
|
||||
|
||||
- name: Initialization Environment
|
||||
env:
|
||||
DEBIAN_FRONTEND: noninteractive
|
||||
run: . 1_initialization_environment.sh
|
||||
|
||||
- name: Clone Source
|
||||
run: |
|
||||
git clone https://github.com/project-openwrt/openwrt --depth=1 -b openwrt-18.06-k5.4
|
||||
#git clone https://github.com/openwrt/openwrt --depth=1 oopenwrt
|
||||
#cd oopenwrt && echo 'package/boot/arm-trusted-firmware-rockchip
|
||||
#package/boot/uboot-rockchip
|
||||
#target/linux/rockchip
|
||||
#package/base-files/files/lib/functions/system.sh' | xargs -n1 -i cp -a --parents {} ../openwrt/
|
||||
|
||||
- name: Setup Configuration
|
||||
run: |
|
||||
cd openwrt
|
||||
echo 'CONFIG_TARGET_rockchip=y
|
||||
CONFIG_TARGET_rockchip_armv8=y
|
||||
CONFIG_TARGET_rockchip_armv8_DEVICE_friendlyarm_nanopi-r2s=y
|
||||
CONFIG_PACKAGE_kmod-rtl8821cu=y' > .config
|
||||
cat ../base_rk3328.seed >> .config
|
||||
cat ../minimal_config.seed >> .config
|
||||
echo -e 'CONFIG_PACKAGE_kmod-mt7601u=y\n' >> .config
|
||||
sed -i 's/option input\t\tREJECT/option input\t\tACCEPT/' package/network/config/firewall/files/firewall.config
|
||||
echo -e '\nDYC Build\n' >> package/lean/default-settings/files/openwrt_banner
|
||||
|
||||
- name: Compile
|
||||
run: |
|
||||
cd openwrt
|
||||
./scripts/feeds update -a && ./scripts/feeds install -a
|
||||
make defconfig
|
||||
make download -j8
|
||||
make -j$(($(nproc) + 1)) -s
|
||||
|
||||
- name: Assemble Artifact
|
||||
id: assemble_artifact
|
||||
run: |
|
||||
#gzip openwrt/bin/targets/*/*/*img*
|
||||
mv openwrt/bin/targets/*/*/*ext4*img.gz ./artifact.img.gz
|
||||
release_tag="R2S-native-$(date +%Y-%m-%d)-dev"
|
||||
echo "##[set-output name=release_tag;]$release_tag"
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.sec_token }}
|
||||
with:
|
||||
tag_name: ${{ steps.assemble_artifact.outputs.release_tag }}
|
||||
release_name: r2s原生测试 ${{ steps.assemble_artifact.outputs.release_tag }}
|
||||
draft: false
|
||||
prerelease: false
|
||||
- name: Upload Release Asset
|
||||
id: upload-release-asset
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.sec_token }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
|
||||
asset_path: ./artifact.img.gz
|
||||
asset_name: ${{ steps.assemble_artifact.outputs.release_tag }}-sd.img.gz
|
||||
asset_content_type: application/gzip
|
||||
83
.github/workflows/r2s_original.yml
vendored
83
.github/workflows/r2s_original.yml
vendored
@@ -1,83 +0,0 @@
|
||||
name: r2s original Build 原版friendlywrt
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- 'r2s.config.seed'
|
||||
- '.github/workflows/r2s_original.yml'
|
||||
|
||||
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
|
||||
|
||||
- name: Mods
|
||||
run: |
|
||||
cd friendlywrt-rk3328
|
||||
rm -f .repo/manifests/rk3328.xml
|
||||
cp ../rk3328.xml .repo/manifests/rk3328.xml
|
||||
repo sync -c --no-clone-bundle
|
||||
. ../remove_used_config.sh
|
||||
sed -i 's/CONFIG_BPFILTER=y/CONFIG_BPFILTER=n/' kernel/arch/arm64/configs/nanopi-r2_linux_defconfig
|
||||
sed -i 's/dnsmasq /dnsmasq-full /' friendlywrt/include/target.mk
|
||||
#cp ../r2s.config.seed configs/config_rk3328
|
||||
|
||||
- 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/
|
||||
cd ./artifact/
|
||||
md5sum *img* > md5sum.txt
|
||||
cd ..
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: FriendlyWrt_NanoPi-R2S
|
||||
path: ./artifact/
|
||||
128
.github/workflows/test_relase.yml_
vendored
128
.github/workflows/test_relase.yml_
vendored
@@ -1,128 +0,0 @@
|
||||
name: test release
|
||||
on:
|
||||
watch:
|
||||
types: [started]
|
||||
jobs:
|
||||
Ubuntu:
|
||||
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
|
||||
|
||||
- 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
|
||||
|
||||
- name: Mods
|
||||
run: |
|
||||
exit 0
|
||||
cd friendlywrt-rk3328
|
||||
. ../remove_unused_config.sh
|
||||
sed -i '/iptparser/d' configs/config_rk3328
|
||||
echo '
|
||||
CONFIG_OPENSSL_ENGINE_BUILTIN=y
|
||||
CONFIG_OPENSSL_WITH_DTLS=y
|
||||
CONFIG_OPENSSL_WITH_EC2M=y
|
||||
CONFIG_OPENSSL_WITH_NPN=y
|
||||
CONFIG_PACKAGE_dnsmasq_full_dhcpv6=y
|
||||
CONFIG_PACKAGE_ipv6helper=y
|
||||
CONFIG_PACKAGE_curl=y
|
||||
CONFIG_PACKAGE_htop=y
|
||||
CONFIG_PACKAGE_lrzsz=y
|
||||
CONFIG_PACKAGE_nano=y
|
||||
CONFIG_PACKAGE_vim-fuller=y
|
||||
CONFIG_PACKAGE_luci-app-cifsd=y
|
||||
CONFIG_PACKAGE_luci-app-dockerman=y
|
||||
CONFIG_PACKAGE_luci-app-ipsec-vpnd=y
|
||||
CONFIG_PACKAGE_luci-app-netdata=y
|
||||
CONFIG_PACKAGE_luci-app-pptp-server=y
|
||||
CONFIG_PACKAGE_luci-app-ssr-plus_INCLUDE_Shadowsocks=y
|
||||
CONFIG_PACKAGE_luci-app-ssr-plus_INCLUDE_ShadowsocksR_Server=y
|
||||
CONFIG_PACKAGE_luci-app-ssr-plus_INCLUDE_Simple_obfs=y
|
||||
CONFIG_PACKAGE_luci-app-ssr-plus_INCLUDE_Trojan=y
|
||||
CONFIG_PACKAGE_luci-app-ssr-plus_INCLUDE_V2ray=y
|
||||
CONFIG_PACKAGE_luci-app-ssr-plus_INCLUDE_V2ray_plugin=y
|
||||
CONFIG_PACKAGE_luci-app-syncdial=y
|
||||
CONFIG_PACKAGE_luci-app-ttyd=y
|
||||
CONFIG_PACKAGE_luci-theme-argon=y
|
||||
CONFIG_PACKAGE_luci-theme-material=y
|
||||
CONFIG_PACKAGE_luci-theme-netgear=y
|
||||
# CONFIG_OPENSSL_ENGINE_BUILTIN_DEVCRYPTO is not set
|
||||
# CONFIG_PACKAGE_kmod-cryptodev is not set
|
||||
# CONFIG_PACKAGE_libopenssl-devcrypto is not set
|
||||
# CONFIG_V2RAY_COMPRESS_UPX is not set' >> 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/coolsnowwolf/lede && git fetch upstream
|
||||
git rebase 90bb1cf9c33e73de5019686b8bd495f689e675a4^ --onto upstream/master -X theirs
|
||||
git checkout upstream/master -- feeds.conf.default
|
||||
git apply ../../0001-fix-upx.patch
|
||||
sed -i '/exit/i\chown -R root:root /usr/share/netdata/web' package/lean/default-settings/files/zzz-default-settings
|
||||
sed -i 's/option fullcone\t1/option fullcone\t0/' package/network/config/firewall/files/firewall.config
|
||||
sed -i '/8.8.8.8/d' package/base-files/files/root/setup.sh
|
||||
echo -e '\nDYC Build\n' >> package/base-files/files/etc/banner
|
||||
|
||||
- name: Clean Feeds
|
||||
run: |
|
||||
cd friendlywrt-rk3328/
|
||||
#./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
|
||||
- name: Assemble Artifact
|
||||
id: assemble_artifact
|
||||
run: |
|
||||
rm -rf ./artifact/
|
||||
mkdir -p ./artifact/
|
||||
touch ./artifact/tmpf.img
|
||||
touch ./artifact/.config
|
||||
zip -r artifact.zip ./artifact/
|
||||
|
||||
release_tag="R2S-Lean-$(date +%Y-%m-%d)"
|
||||
echo "##[set-output name=release_tag;]$release_tag"
|
||||
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.sec_token }}
|
||||
with:
|
||||
tag_name: ${{ steps.assemble_artifact.outputs.release_tag }}
|
||||
release_name: 自动发布 ${{ steps.assemble_artifact.outputs.release_tag }}
|
||||
draft: false
|
||||
prerelease: false
|
||||
- name: Upload Release Asset
|
||||
id: upload-release-asset
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.sec_token }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
|
||||
asset_path: ./artifact.zip
|
||||
asset_name: ${{ steps.assemble_artifact.outputs.release_tag }}-ROM.zip
|
||||
asset_content_type: application/zip
|
||||
76
.github/workflows/v18_code_and_v18_config.yml
vendored
76
.github/workflows/v18_code_and_v18_config.yml
vendored
@@ -1,76 +0,0 @@
|
||||
name: v18_code_and_v18_config Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- '.github/workflows/v18_code_and_v18_config.yml'
|
||||
|
||||
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 g++ python python3 file ecj fastjar java-propose-classpath
|
||||
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: Download Source
|
||||
run: |
|
||||
mkdir friendlywrt-h5
|
||||
cd friendlywrt-h5
|
||||
repo init -u https://github.com/friendlyarm/friendlywrt_manifests -b master -m h5.xml --repo-url=https://github.com/friendlyarm/repo --no-clone-bundle
|
||||
|
||||
- name: Mods
|
||||
run: |
|
||||
cd friendlywrt-h5
|
||||
rm -f .repo/manifests/h5.xml
|
||||
cp ../h5-18.06.xml .repo/manifests/h5.xml
|
||||
repo sync -c --no-clone-bundle
|
||||
sed -i '/=m/d;/CONFIG_ALL_KMODS/d;/CONFIG_ALL_NONSHARED/d;/CONFIG_DEVEL/d;/docker/d;/DOCKER/d;/CONFIG_DISPLAY_SUPPORT/d' configs/config_h5
|
||||
sed -i '/CONFIG_TARGET_MULTI_PROFILE/d' configs/config_h5
|
||||
sed -i 's/CONFIG_TARGET_DEVICE/CONFIG_TARGET/' configs/config_h5
|
||||
sed -i 's/dnsmasq /dnsmasq-full /' friendlywrt/include/target.mk
|
||||
|
||||
- name: Clean Feeds
|
||||
run: |
|
||||
cd friendlywrt-h5/friendlywrt
|
||||
./scripts/feeds clean -a
|
||||
|
||||
- name: Build FriendlyWrt
|
||||
run: |
|
||||
cd friendlywrt-h5
|
||||
sed -i 's/set -eu/set -u/' scripts/mk-friendlywrt.sh
|
||||
./build.sh nanopi_r1s.mk
|
||||
|
||||
- name: Zip Files
|
||||
run: |
|
||||
gzip friendlywrt-h5/out/*.img
|
||||
- name: Assemble Artifact
|
||||
run: |
|
||||
rm -rf ./artifact/
|
||||
mkdir -p ./artifact/
|
||||
mv friendlywrt-h5/out/*img* ./artifact/
|
||||
cp friendlywrt-h5/friendlywrt/.config ./artifact/
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: FriendlyWrt_NanoPi-R1S
|
||||
path: ./artifact/
|
||||
79
.github/workflows/v19_code_and_master_config.yml
vendored
79
.github/workflows/v19_code_and_master_config.yml
vendored
@@ -1,79 +0,0 @@
|
||||
name: v19_code_and_master_config Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- '.github/workflows/v19_code_and_master_config.yml'
|
||||
|
||||
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: Download Source
|
||||
run: |
|
||||
mkdir friendlywrt-h5
|
||||
cd friendlywrt-h5
|
||||
repo init -u https://github.com/friendlyarm/friendlywrt_manifests -b master -m h5.xml --repo-url=https://github.com/friendlyarm/repo --no-clone-bundle
|
||||
|
||||
- name: Mods
|
||||
run: |
|
||||
cd friendlywrt-h5
|
||||
rm -f .repo/manifests/h5.xml
|
||||
cp ../19s_master_config.xml .repo/manifests/h5.xml
|
||||
repo sync -c --no-clone-bundle
|
||||
curl 'https://raw.githubusercontent.com/friendlyarm/friendlywrt_device_h5/286a065e7832458ccd17a5d4cf4dd52a547fa34d/h5/nanopi_r1s.mk' > device/friendlyelec/h5/nanopi_r1s.mk
|
||||
curl 'https://raw.githubusercontent.com/friendlyarm/friendlywrt_device_h5/a198d92e1d64bcde2d4169f2e680f5fff1dc80a9/h5/common-files/etc/opkg/distfeeds.conf' > device/friendlyelec/h5/common-files/etc/opkg/distfeeds.conf
|
||||
sed -i '/=m/d;/CONFIG_ALL_KMODS/d;/CONFIG_ALL_NONSHARED/d;/CONFIG_DEVEL/d;/docker/d;/DOCKER/d;/CONFIG_DISPLAY_SUPPORT/d' configs/config_h5
|
||||
sed -i '1cCONFIG_TARGET_sunxi=y' configs/config_h5
|
||||
sed -i '2cCONFIG_TARGET_sunxi_cortexa53=y' configs/config_h5
|
||||
sed -i '3cCONFIG_TARGET_sunxi_cortexa53_DEVICE_sun50i-h5-nanopi-neo-plus2=y' configs/config_h5
|
||||
sed -i 's/dnsmasq /dnsmasq-full /' friendlywrt/include/target.mk
|
||||
|
||||
- name: Clean Feeds
|
||||
run: |
|
||||
cd friendlywrt-h5/friendlywrt
|
||||
./scripts/feeds clean -a
|
||||
|
||||
- name: Build FriendlyWrt
|
||||
run: |
|
||||
cd friendlywrt-h5
|
||||
sed -i 's/set -eu/set -u/' scripts/mk-friendlywrt.sh
|
||||
./build.sh nanopi_r1s.mk
|
||||
|
||||
- name: Zip Files
|
||||
run: |
|
||||
gzip friendlywrt-h5/out/*.img
|
||||
- name: Assemble Artifact
|
||||
run: |
|
||||
rm -rf ./artifact/
|
||||
mkdir -p ./artifact/
|
||||
mv friendlywrt-h5/out/*img* ./artifact/
|
||||
cp friendlywrt-h5/friendlywrt/.config ./artifact/
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: FriendlyWrt_NanoPi-R1S
|
||||
path: ./artifact/
|
||||
78
.github/workflows/v19_code_and_v18_config.yml
vendored
78
.github/workflows/v19_code_and_v18_config.yml
vendored
@@ -1,78 +0,0 @@
|
||||
name: v19_code_and_v18_config Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- '.github/workflows/v19_code_and_v18_config.yml'
|
||||
|
||||
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: Download Source
|
||||
run: |
|
||||
mkdir friendlywrt-h5
|
||||
cd friendlywrt-h5
|
||||
repo init -u https://github.com/friendlyarm/friendlywrt_manifests -b master -m h5.xml --repo-url=https://github.com/friendlyarm/repo --no-clone-bundle
|
||||
|
||||
- name: Mods
|
||||
run: |
|
||||
cd friendlywrt-h5
|
||||
rm -f .repo/manifests/h5.xml
|
||||
cp ../19s_18c.xml .repo/manifests/h5.xml
|
||||
repo sync -c --no-clone-bundle
|
||||
curl 'https://raw.githubusercontent.com/friendlyarm/friendlywrt_device_h5/286a065e7832458ccd17a5d4cf4dd52a547fa34d/h5/nanopi_r1s.mk' > device/friendlyelec/h5/nanopi_r1s.mk
|
||||
curl 'https://raw.githubusercontent.com/friendlyarm/friendlywrt_device_h5/a198d92e1d64bcde2d4169f2e680f5fff1dc80a9/h5/common-files/etc/opkg/distfeeds.conf' > device/friendlyelec/h5/common-files/etc/opkg/distfeeds.conf
|
||||
sed -i '/=m/d;/CONFIG_ALL_KMODS/d;/CONFIG_ALL_NONSHARED/d;/CONFIG_DEVEL/d;/docker/d;/DOCKER/d;/CONFIG_DISPLAY_SUPPORT/d' configs/config_h5
|
||||
sed -i '/CONFIG_TARGET_MULTI_PROFILE/d' configs/config_h5
|
||||
sed -i 's/CONFIG_TARGET_DEVICE/CONFIG_TARGET/' configs/config_h5
|
||||
sed -i 's/dnsmasq /dnsmasq-full /' friendlywrt/include/target.mk
|
||||
|
||||
- name: Clean Feeds
|
||||
run: |
|
||||
cd friendlywrt-h5/friendlywrt
|
||||
./scripts/feeds clean -a
|
||||
|
||||
- name: Build FriendlyWrt
|
||||
run: |
|
||||
cd friendlywrt-h5
|
||||
sed -i 's/set -eu/set -u/' scripts/mk-friendlywrt.sh
|
||||
./build.sh nanopi_r1s.mk
|
||||
|
||||
- name: Zip Files
|
||||
run: |
|
||||
gzip friendlywrt-h5/out/*.img
|
||||
- name: Assemble Artifact
|
||||
run: |
|
||||
rm -rf ./artifact/
|
||||
mkdir -p ./artifact/
|
||||
mv friendlywrt-h5/out/*img* ./artifact/
|
||||
cp friendlywrt-h5/friendlywrt/.config ./artifact/
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: FriendlyWrt_NanoPi-R1S
|
||||
path: ./artifact/
|
||||
Reference in New Issue
Block a user