Update r1s_lienol.yml
This commit is contained in:
33
.github/workflows/r1s_lienol.yml
vendored
33
.github/workflows/r1s_lienol.yml
vendored
@@ -2,22 +2,22 @@ name: r1s Lienol版openwrt
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
paths:
|
paths:
|
||||||
- '.github/workflows/r1s_lienol.yml_'
|
- '.github/workflows/r1s_lienol.yml'
|
||||||
schedule:
|
schedule:
|
||||||
- cron: 0 0 */10 * *
|
- cron: 0 0 */10 * *
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.repository == 'klever1988/nanopi-openwrt'
|
if: github.repository == 'klever1988/nanopi-openwrt'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@master
|
uses: actions/checkout@master
|
||||||
with:
|
with:
|
||||||
@@ -32,12 +32,12 @@ jobs:
|
|||||||
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
|
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
|
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
|
sudo rm -rf /usr/share/dotnet /usr/local/lib/android/sdk
|
||||||
|
|
||||||
- name: Install Repo
|
- name: Install Repo
|
||||||
run: |
|
run: |
|
||||||
git clone https://github.com/friendlyarm/repo
|
git clone https://github.com/friendlyarm/repo
|
||||||
sudo cp repo/repo /usr/bin/
|
sudo cp repo/repo /usr/bin/
|
||||||
|
|
||||||
- name: Init Source
|
- name: Init Source
|
||||||
run: |
|
run: |
|
||||||
mkdir friendlywrt-h5
|
mkdir friendlywrt-h5
|
||||||
@@ -45,7 +45,7 @@ jobs:
|
|||||||
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 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
|
repo sync -c --no-tags --no-clone-bundle -j8
|
||||||
cd friendlywrt/ && git fetch --unshallow
|
cd friendlywrt/ && git fetch --unshallow
|
||||||
|
|
||||||
- name: Mods
|
- name: Mods
|
||||||
run: |
|
run: |
|
||||||
cd friendlywrt-h5
|
cd friendlywrt-h5
|
||||||
@@ -60,20 +60,27 @@ jobs:
|
|||||||
git rebase adc1a9a3676b8d7be1b48b5aed185a94d8e42728^ --onto tmp -X theirs
|
git rebase adc1a9a3676b8d7be1b48b5aed185a94d8e42728^ --onto tmp -X theirs
|
||||||
git revert --no-edit f092ca098e80c667b10cdd1dba328506a2673c1d
|
git revert --no-edit f092ca098e80c667b10cdd1dba328506a2673c1d
|
||||||
git checkout upstream/dev-19.07 -- feeds.conf.default
|
git checkout upstream/dev-19.07 -- feeds.conf.default
|
||||||
git apply ../../enable_autocore.diff
|
#git apply ../../enable_autocore.diff
|
||||||
sed -i '/ucl upx/d' tools/Makefile
|
#sed -i '/ucl upx/d' tools/Makefile
|
||||||
sed -i '/exit/i\chown -R root:root /usr/share/netdata/web' package/default-settings/files/zzz-default-settings
|
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 '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
|
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
|
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
|
- name: Build FriendlyWrt
|
||||||
run: |
|
run: |
|
||||||
cd friendlywrt-h5
|
cd friendlywrt-h5
|
||||||
cp configs/config_h5 friendlywrt/.config
|
cp configs/config_h5 friendlywrt/.config
|
||||||
cd friendlywrt
|
cd friendlywrt
|
||||||
make defconfig && make download -j8 && make -s -j$(nproc)
|
make defconfig && make download -j8 && make -s -j$(nproc)
|
||||||
|
|
||||||
#- name: Patch Kernel
|
#- name: Patch Kernel
|
||||||
# run: |
|
# run: |
|
||||||
# cd friendlywrt-h5
|
# cd friendlywrt-h5
|
||||||
@@ -123,12 +130,12 @@ jobs:
|
|||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
- name: Upload Release Asset
|
- name: Upload Release Asset
|
||||||
id: upload-release-asset
|
id: upload-release-asset
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.sec_token }}
|
GITHUB_TOKEN: ${{ secrets.sec_token }}
|
||||||
with:
|
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
|
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_path: ./artifact.zip
|
||||||
asset_name: ${{ steps.assemble_artifact.outputs.release_tag }}-ROM.zip
|
asset_name: ${{ steps.assemble_artifact.outputs.release_tag }}-ROM.zip
|
||||||
asset_content_type: application/zip
|
asset_content_type: application/zip
|
||||||
|
|||||||
Reference in New Issue
Block a user