From b94c1c241e06f520fcb6ffa10620841c44193d00 Mon Sep 17 00:00:00 2001 From: wmm1118 <50430107+wmm1118@users.noreply.github.com> Date: Sat, 22 Feb 2020 14:32:41 +0800 Subject: [PATCH 1/9] main.yml # # This is free software, lisence use MIT. # # Copyright (C) 2019 Jolly # # # # Write by Jolly 2019/12/7 # last update at 2019/12/19 name: NanoPi-R1s H3 OpenWrt 19.07 Build on: push: branches: - master # schedule: # - cron: 0 20 * * * # release: # types: [published] jobs: build: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@master with: ref: master - name: Initialization Environment env: DEBIAN_FRONTEND: noninteractive run: | wget -O - https://raw.githubusercontent.com/friendlyarm/build-env-on-ubuntu-bionic/master/install.sh | bash - name: Install Repo run: | git clone https://github.com/friendlyarm/repo sudo cp repo/repo /usr/bin/ - name: Download Source run: | mkdir friendlywrt-h3 cd friendlywrt-h3 repo init -u https://github.com/friendlyarm/friendlywrt_manifests -b master -m h3.xml --repo-url=https://github.com/friendlyarm/repo --no-clone-bundle - name: Merge UpStearm OpenWrt run: | cd friendlywrt-h3 cd .repo/manifests rm -f ./h3.xml wget https://raw.githubusercontent.com/skytotwo/NanoPi-R1S-Build-By-Actions/master/source_xml/h3_19.07.xml cp h3_19.07.xml h3.xml rm -rf ./h3_19.07.xml repo sync -c --no-clone-bundle - name: Merge LEDE run: | cd friendlywrt-h3 git clone https://github.com/coolsnowwolf/lede cd friendlywrt cp -r ../lede/package/lean package/ sed -i 's/https:\/\/git.openwrt.org\/project\/luci.git^039ef1f4deba725d3591b159bbc9569885d68131/https:\/\/github.com\/coolsnowwolf\/luci/' feeds.conf.default sed -i 's/https:\/\/git.openwrt.org\/feed\/packages.git^00803ffc91e80b16e9c1603ff32106d42e255923/https:\/\/github.com\/coolsnowwolf\/packages/' feeds.conf.default - name: Custom Applications run: | cd friendlywrt-h3/friendlywrt/package git clone https://github.com/Baozisoftware/luci-app-koolproxy - name: Update Target.mk run: | cd friendlywrt-h3/friendlywrt/include sed -i 's/dnsmasq /dnsmasq-full default-settings luci/' target.mk - name: Update Feeds run: | cd friendlywrt-h3/friendlywrt ./scripts/feeds update -a ./scripts/feeds install -a - name: Costom Configure File run: | cd friendlywrt-h3/friendlywrt rm -f ./.config* wget https://raw.githubusercontent.com/skytotwo/NanoPi-R1S-Build-By-Actions/master/r1s-h3-config cp r1s-h3-config .config - name: Download package if: always() run: | cd friendlywrt-h3/friendlywrt make download -j8 find dl -size -1024c -exec ls -l {} \; find dl -size -1024c -exec rm -f {} \; - name: Build OpenWrt run: | cd friendlywrt-h3 ./build.sh nanopi_r1s.mk - name: Zip Files run: | find friendlywrt-h3/out/ -name "FriendlyWrt_*img*" | xargs -i zip -r {}.zip {} - name: Assemble Artifact run: | rm -rf ./artifact/ mkdir -p ./artifact/ find friendlywrt-h3/out/ -name "FriendlyWrt_*img.zip*" | xargs -i mv -f {} ./artifact/ - name: Upload Artifact uses: actions/upload-artifact@master with: name: FriendlyWrt_NanoPi-R1S H3 v19.07 path: ./artifact/ --- .github/workflows/main.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..e54d08bc --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,17 @@ +name: CI + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Run a one-line script + run: echo Hello, world! + - name: Run a multi-line script + run: | + echo Add other actions to build, + echo test, and deploy your project. From e85439718156ae3985fa9be2cfc6beb099fd590c Mon Sep 17 00:00:00 2001 From: wmm1118 <50430107+wmm1118@users.noreply.github.com> Date: Sat, 22 Feb 2020 16:30:45 +0800 Subject: [PATCH 2/9] Update NanoPi-R1s H5 OpenWrt 19.07 Build.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # # This is free software, lisence use MIT. # # Copyright (C) 2019 Jolly # # # # Write by Jolly 2019/12/7 # last update at 2019/12/19 name: NanoPi-R1s H3 OpenWrt 19.07 Build on: push: branches: - master # schedule: # - cron: 0 20 * * * # release: # types: [published] jobs: build: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@master with: ref: master - name: Initialization Environment env: DEBIAN_FRONTEND: noninteractive run: | wget -O - https://raw.githubusercontent.com/friendlyarm/build-env-on-ubuntu-bionic/master/install.sh | bash - name: Install Repo run: | git clone https://github.com/friendlyarm/repo sudo cp repo/repo /usr/bin/ - name: Download Source run: | mkdir friendlywrt-h3 cd friendlywrt-h3 repo init -u https://github.com/friendlyarm/friendlywrt_manifests -b master -m h3.xml --repo-url=https://github.com/friendlyarm/repo --no-clone-bundle - name: Merge UpStearm OpenWrt run: | cd friendlywrt-h3 cd .repo/manifests rm -f ./h3.xml wget https://raw.githubusercontent.com/skytotwo/NanoPi-R1S-Build-By-Actions/master/source_xml/h3_19.07.xml cp h3_19.07.xml h3.xml rm -rf ./h3_19.07.xml repo sync -c --no-clone-bundle - name: Merge LEDE run: | cd friendlywrt-h3 git clone https://github.com/coolsnowwolf/lede cd friendlywrt cp -r ../lede/package/lean package/ sed -i 's/https:\/\/git.openwrt.org\/project\/luci.git^039ef1f4deba725d3591b159bbc9569885d68131/https:\/\/github.com\/coolsnowwolf\/luci/' feeds.conf.default sed -i 's/https:\/\/git.openwrt.org\/feed\/packages.git^00803ffc91e80b16e9c1603ff32106d42e255923/https:\/\/github.com\/coolsnowwolf\/packages/' feeds.conf.default - name: Custom Applications run: | cd friendlywrt-h3/friendlywrt/package git clone https://github.com/Baozisoftware/luci-app-koolproxy - name: Update Target.mk run: | cd friendlywrt-h3/friendlywrt/include sed -i 's/dnsmasq /dnsmasq-full default-settings luci/' target.mk - name: Update Feeds run: | cd friendlywrt-h3/friendlywrt ./scripts/feeds update -a ./scripts/feeds install -a - name: Costom Configure File run: | cd friendlywrt-h3/friendlywrt rm -f ./.config* wget https://raw.githubusercontent.com/skytotwo/NanoPi-R1S-Build-By-Actions/master/r1s-h3-config cp r1s-h3-config .config - name: Download package if: always() run: | cd friendlywrt-h3/friendlywrt make download -j8 find dl -size -1024c -exec ls -l {} \; find dl -size -1024c -exec rm -f {} \; - name: Build OpenWrt run: | cd friendlywrt-h3 ./build.sh nanopi_r1s.mk - name: Zip Files run: | find friendlywrt-h3/out/ -name "FriendlyWrt_*img*" | xargs -i zip -r {}.zip {} - name: Assemble Artifact run: | rm -rf ./artifact/ mkdir -p ./artifact/ find friendlywrt-h3/out/ -name "FriendlyWrt_*img.zip*" | xargs -i mv -f {} ./artifact/ - name: Upload Artifact uses: actions/upload-artifact@master with: name: FriendlyWrt_NanoPi-R1S H3 v19.07 path: ./artifact/ © 2020 GitHub, Inc. Terms Privacy Security Status Help Contact GitHub Pricing API Training Blog About --- .../NanoPi-R1s H5 OpenWrt 19.07 Build.yml | 56 +++++++++++-------- 1 file changed, 34 insertions(+), 22 deletions(-) diff --git a/.github/workflows/NanoPi-R1s H5 OpenWrt 19.07 Build.yml b/.github/workflows/NanoPi-R1s H5 OpenWrt 19.07 Build.yml index ebf4fed7..c3ed4210 100644 --- a/.github/workflows/NanoPi-R1s H5 OpenWrt 19.07 Build.yml +++ b/.github/workflows/NanoPi-R1s H5 OpenWrt 19.07 Build.yml @@ -8,7 +8,7 @@ # Write by Jolly 2019/12/7 # last update at 2019/12/19 -name: NanoPi-R1s H5 OpenWrt 19.07 Build +name: NanoPi-R1s H3 OpenWrt 19.07 Build on: push: @@ -45,23 +45,23 @@ jobs: - 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 + mkdir friendlywrt-h3 + cd friendlywrt-h3 + repo init -u https://github.com/friendlyarm/friendlywrt_manifests -b master -m h3.xml --repo-url=https://github.com/friendlyarm/repo --no-clone-bundle - name: Merge UpStearm OpenWrt run: | - cd friendlywrt-h5 + cd friendlywrt-h3 cd .repo/manifests - rm -f ./h5.xml - wget https://raw.githubusercontent.com/skytotwo/NanoPi-R1S-Build-By-Actions/master/source_xml/h5_19.07.xml - cp h5_19.07.xml h5.xml - rm -rf ./h5_19.07.xml + rm -f ./h3.xml + wget https://raw.githubusercontent.com/skytotwo/NanoPi-R1S-Build-By-Actions/master/source_xml/h3_19.07.xml + cp h3_19.07.xml h3.xml + rm -rf ./h3_19.07.xml repo sync -c --no-clone-bundle - name: Merge LEDE run: | - cd friendlywrt-h5 + cd friendlywrt-h3 git clone https://github.com/coolsnowwolf/lede cd friendlywrt cp -r ../lede/package/lean package/ @@ -70,51 +70,63 @@ jobs: - name: Custom Applications run: | - cd friendlywrt-h5/friendlywrt/package + cd friendlywrt-h3/friendlywrt/package git clone https://github.com/Baozisoftware/luci-app-koolproxy - name: Update Target.mk run: | - cd friendlywrt-h5/friendlywrt/include - sed -i 's/dnsmasq /dnsmasq-full default-settings luci /' target.mk + cd friendlywrt-h3/friendlywrt/include + sed -i 's/dnsmasq /dnsmasq-full default-settings luci/' target.mk - name: Update Feeds run: | - cd friendlywrt-h5/friendlywrt + cd friendlywrt-h3/friendlywrt ./scripts/feeds update -a ./scripts/feeds install -a - name: Costom Configure File run: | - cd friendlywrt-h5/friendlywrt + cd friendlywrt-h3/friendlywrt rm -f ./.config* - wget https://raw.githubusercontent.com/skytotwo/NanoPi-R1S-Build-By-Actions/master/r1s-h5-config - cp r1s-h5-config .config + wget https://raw.githubusercontent.com/skytotwo/NanoPi-R1S-Build-By-Actions/master/r1s-h3-config + cp r1s-h3-config .config - name: Download package if: always() run: | - cd friendlywrt-h5/friendlywrt + cd friendlywrt-h3/friendlywrt make download -j8 find dl -size -1024c -exec ls -l {} \; find dl -size -1024c -exec rm -f {} \; - name: Build OpenWrt run: | - cd friendlywrt-h5 + cd friendlywrt-h3 ./build.sh nanopi_r1s.mk - name: Zip Files run: | - find friendlywrt-h5/out/ -name "FriendlyWrt_*img*" | xargs -i zip -r {}.zip {} + find friendlywrt-h3/out/ -name "FriendlyWrt_*img*" | xargs -i zip -r {}.zip {} - name: Assemble Artifact run: | rm -rf ./artifact/ mkdir -p ./artifact/ - find friendlywrt-h5/out/ -name "FriendlyWrt_*img.zip*" | xargs -i mv -f {} ./artifact/ + find friendlywrt-h3/out/ -name "FriendlyWrt_*img.zip*" | xargs -i mv -f {} ./artifact/ - name: Upload Artifact uses: actions/upload-artifact@master with: - name: FriendlyWrt_NanoPi-R1S H5 v19.07 + name: FriendlyWrt_NanoPi-R1S H3 v19.07 path: ./artifact/ +© 2020 GitHub, Inc. +Terms +Privacy +Security +Status +Help +Contact GitHub +Pricing +API +Training +Blog +About From e14f95787cd25e78eb5e3df190f6e55951c5183e Mon Sep 17 00:00:00 2001 From: wmm1118 <50430107+wmm1118@users.noreply.github.com> Date: Sat, 22 Feb 2020 16:32:14 +0800 Subject: [PATCH 3/9] Delete NanoPi-R1s H5 OpenWrt 19.07 Build.yml --- .../NanoPi-R1s H5 OpenWrt 19.07 Build.yml | 132 ------------------ 1 file changed, 132 deletions(-) delete mode 100644 .github/workflows/NanoPi-R1s H5 OpenWrt 19.07 Build.yml diff --git a/.github/workflows/NanoPi-R1s H5 OpenWrt 19.07 Build.yml b/.github/workflows/NanoPi-R1s H5 OpenWrt 19.07 Build.yml deleted file mode 100644 index c3ed4210..00000000 --- a/.github/workflows/NanoPi-R1s H5 OpenWrt 19.07 Build.yml +++ /dev/null @@ -1,132 +0,0 @@ -# -# This is free software, lisence use MIT. -# -# Copyright (C) 2019 Jolly -# -# -# -# Write by Jolly 2019/12/7 -# last update at 2019/12/19 - -name: NanoPi-R1s H3 OpenWrt 19.07 Build - -on: - push: - branches: - - master - # schedule: - # - cron: 0 20 * * * - # release: - # types: [published] - -jobs: - - build: - - runs-on: ubuntu-latest - - steps: - - - name: Checkout - uses: actions/checkout@master - with: - ref: master - - - name: Initialization Environment - env: - DEBIAN_FRONTEND: noninteractive - run: | - wget -O - https://raw.githubusercontent.com/friendlyarm/build-env-on-ubuntu-bionic/master/install.sh | bash - - - name: Install Repo - run: | - git clone https://github.com/friendlyarm/repo - sudo cp repo/repo /usr/bin/ - - - name: Download Source - run: | - mkdir friendlywrt-h3 - cd friendlywrt-h3 - repo init -u https://github.com/friendlyarm/friendlywrt_manifests -b master -m h3.xml --repo-url=https://github.com/friendlyarm/repo --no-clone-bundle - - - name: Merge UpStearm OpenWrt - run: | - cd friendlywrt-h3 - cd .repo/manifests - rm -f ./h3.xml - wget https://raw.githubusercontent.com/skytotwo/NanoPi-R1S-Build-By-Actions/master/source_xml/h3_19.07.xml - cp h3_19.07.xml h3.xml - rm -rf ./h3_19.07.xml - repo sync -c --no-clone-bundle - - - name: Merge LEDE - run: | - cd friendlywrt-h3 - git clone https://github.com/coolsnowwolf/lede - cd friendlywrt - cp -r ../lede/package/lean package/ - sed -i 's/https:\/\/git.openwrt.org\/project\/luci.git^039ef1f4deba725d3591b159bbc9569885d68131/https:\/\/github.com\/coolsnowwolf\/luci/' feeds.conf.default - sed -i 's/https:\/\/git.openwrt.org\/feed\/packages.git^00803ffc91e80b16e9c1603ff32106d42e255923/https:\/\/github.com\/coolsnowwolf\/packages/' feeds.conf.default - - - name: Custom Applications - run: | - cd friendlywrt-h3/friendlywrt/package - git clone https://github.com/Baozisoftware/luci-app-koolproxy - - - name: Update Target.mk - run: | - cd friendlywrt-h3/friendlywrt/include - sed -i 's/dnsmasq /dnsmasq-full default-settings luci/' target.mk - - - name: Update Feeds - run: | - cd friendlywrt-h3/friendlywrt - ./scripts/feeds update -a - ./scripts/feeds install -a - - - name: Costom Configure File - run: | - cd friendlywrt-h3/friendlywrt - rm -f ./.config* - wget https://raw.githubusercontent.com/skytotwo/NanoPi-R1S-Build-By-Actions/master/r1s-h3-config - cp r1s-h3-config .config - - - name: Download package - if: always() - run: | - cd friendlywrt-h3/friendlywrt - make download -j8 - find dl -size -1024c -exec ls -l {} \; - find dl -size -1024c -exec rm -f {} \; - - - name: Build OpenWrt - run: | - cd friendlywrt-h3 - ./build.sh nanopi_r1s.mk - - - name: Zip Files - run: | - find friendlywrt-h3/out/ -name "FriendlyWrt_*img*" | xargs -i zip -r {}.zip {} - - - name: Assemble Artifact - run: | - rm -rf ./artifact/ - mkdir -p ./artifact/ - find friendlywrt-h3/out/ -name "FriendlyWrt_*img.zip*" | xargs -i mv -f {} ./artifact/ - - name: Upload Artifact - uses: actions/upload-artifact@master - with: - name: FriendlyWrt_NanoPi-R1S H3 v19.07 - path: ./artifact/ -© 2020 GitHub, Inc. -Terms -Privacy -Security -Status -Help -Contact GitHub -Pricing -API -Training -Blog -About From a48b733fef58d185f4fa140beca599cf57935f29 Mon Sep 17 00:00:00 2001 From: wmm1118 <50430107+wmm1118@users.noreply.github.com> Date: Sat, 22 Feb 2020 16:32:29 +0800 Subject: [PATCH 4/9] Delete main.yml --- .github/workflows/main.yml | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index e54d08bc..00000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: CI - -on: [push] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Run a one-line script - run: echo Hello, world! - - name: Run a multi-line script - run: | - echo Add other actions to build, - echo test, and deploy your project. From 148fad514c163871d1eb44c03b9854dfc2ecf958 Mon Sep 17 00:00:00 2001 From: wmm1118 <50430107+wmm1118@users.noreply.github.com> Date: Sat, 22 Feb 2020 16:35:23 +0800 Subject: [PATCH 5/9] main.yml # This is free software, lisence use MIT. # # Copyright (C) 2019 Jolly # # # # Write by Jolly 2019/12/7 # last update at 2019/12/19 name: NanoPi-R1s H3 OpenWrt 19.07 Build on: push: branches: - master # schedule: # - cron: 0 20 * * * # release: # types: [published] jobs: build: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@master with: ref: master - name: Initialization Environment env: DEBIAN_FRONTEND: noninteractive run: | wget -O - https://raw.githubusercontent.com/friendlyarm/build-env-on-ubuntu-bionic/master/install.sh | bash - name: Install Repo run: | git clone https://github.com/friendlyarm/repo sudo cp repo/repo /usr/bin/ - name: Download Source run: | mkdir friendlywrt-h3 cd friendlywrt-h3 repo init -u https://github.com/friendlyarm/friendlywrt_manifests -b master -m h3.xml --repo-url=https://github.com/friendlyarm/repo --no-clone-bundle - name: Merge UpStearm OpenWrt run: | cd friendlywrt-h3 cd .repo/manifests rm -f ./h3.xml wget https://raw.githubusercontent.com/skytotwo/NanoPi-R1S-Build-By-Actions/master/source_xml/h3_19.07.xml cp h3_19.07.xml h3.xml rm -rf ./h3_19.07.xml repo sync -c --no-clone-bundle - name: Merge LEDE run: | cd friendlywrt-h3 git clone https://github.com/coolsnowwolf/lede cd friendlywrt cp -r ../lede/package/lean package/ sed -i 's/https:\/\/git.openwrt.org\/project\/luci.git^039ef1f4deba725d3591b159bbc9569885d68131/https:\/\/github.com\/coolsnowwolf\/luci/' feeds.conf.default sed -i 's/https:\/\/git.openwrt.org\/feed\/packages.git^00803ffc91e80b16e9c1603ff32106d42e255923/https:\/\/github.com\/coolsnowwolf\/packages/' feeds.conf.default - name: Custom Applications run: | cd friendlywrt-h3/friendlywrt/package git clone https://github.com/Baozisoftware/luci-app-koolproxy - name: Update Target.mk run: | cd friendlywrt-h3/friendlywrt/include sed -i 's/dnsmasq /dnsmasq-full default-settings luci/' target.mk - name: Update Feeds run: | cd friendlywrt-h3/friendlywrt ./scripts/feeds update -a ./scripts/feeds install -a - name: Costom Configure File run: | cd friendlywrt-h3/friendlywrt rm -f ./.config* wget https://raw.githubusercontent.com/skytotwo/NanoPi-R1S-Build-By-Actions/master/r1s-h3-config cp r1s-h3-config .config - name: Download package if: always() run: | cd friendlywrt-h3/friendlywrt make download -j8 find dl -size -1024c -exec ls -l {} \; find dl -size -1024c -exec rm -f {} \; - name: Build OpenWrt run: | cd friendlywrt-h3 ./build.sh nanopi_r1s.mk - name: Zip Files run: | find friendlywrt-h3/out/ -name "FriendlyWrt_*img*" | xargs -i zip -r {}.zip {} - name: Assemble Artifact run: | rm -rf ./artifact/ mkdir -p ./artifact/ find friendlywrt-h3/out/ -name "FriendlyWrt_*img.zip*" | xargs -i mv -f {} ./artifact/ - name: Upload Artifact uses: actions/upload-artifact@master with: name: FriendlyWrt_NanoPi-R1S H3 v19.07 path: ./artifact/ --- .github/workflows/main.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..e54d08bc --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,17 @@ +name: CI + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Run a one-line script + run: echo Hello, world! + - name: Run a multi-line script + run: | + echo Add other actions to build, + echo test, and deploy your project. From 7b3cd9e6de40569aac765154e7edb195475fab36 Mon Sep 17 00:00:00 2001 From: wmm1118 <50430107+wmm1118@users.noreply.github.com> Date: Sat, 22 Feb 2020 16:36:02 +0800 Subject: [PATCH 6/9] Delete main.yml --- .github/workflows/main.yml | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index e54d08bc..00000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: CI - -on: [push] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Run a one-line script - run: echo Hello, world! - - name: Run a multi-line script - run: | - echo Add other actions to build, - echo test, and deploy your project. From 881aec2e1fc56a2695aee27b31ced79c9b3cb342 Mon Sep 17 00:00:00 2001 From: wmm1118 <50430107+wmm1118@users.noreply.github.com> Date: Sat, 22 Feb 2020 16:37:44 +0800 Subject: [PATCH 7/9] mail.yml --- .github/workflows/main.yml | 120 +++++++++++++++++++++++++++++++++++++ 1 file changed, 120 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..4fac6a73 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,120 @@ + +# This is free software, lisence use MIT. +# +# Copyright (C) 2019 Jolly +# +# +# +# Write by Jolly 2019/12/7 +# last update at 2019/12/19 + +name: NanoPi-R1s H3 OpenWrt 19.07 Build + +on: + push: + branches: + - master + # schedule: + # - cron: 0 20 * * * + # release: + # types: [published] + +jobs: + + build: + + runs-on: ubuntu-latest + + steps: + + - name: Checkout + uses: actions/checkout@master + with: + ref: master + + - name: Initialization Environment + env: + DEBIAN_FRONTEND: noninteractive + run: | + wget -O - https://raw.githubusercontent.com/friendlyarm/build-env-on-ubuntu-bionic/master/install.sh | bash + + - name: Install Repo + run: | + git clone https://github.com/friendlyarm/repo + sudo cp repo/repo /usr/bin/ + + - name: Download Source + run: | + mkdir friendlywrt-h3 + cd friendlywrt-h3 + repo init -u https://github.com/friendlyarm/friendlywrt_manifests -b master -m h3.xml --repo-url=https://github.com/friendlyarm/repo --no-clone-bundle + + - name: Merge UpStearm OpenWrt + run: | + cd friendlywrt-h3 + cd .repo/manifests + rm -f ./h3.xml + wget https://raw.githubusercontent.com/skytotwo/NanoPi-R1S-Build-By-Actions/master/source_xml/h3_19.07.xml + cp h3_19.07.xml h3.xml + rm -rf ./h3_19.07.xml + repo sync -c --no-clone-bundle + + - name: Merge LEDE + run: | + cd friendlywrt-h3 + git clone https://github.com/coolsnowwolf/lede + cd friendlywrt + cp -r ../lede/package/lean package/ + sed -i 's/https:\/\/git.openwrt.org\/project\/luci.git^039ef1f4deba725d3591b159bbc9569885d68131/https:\/\/github.com\/coolsnowwolf\/luci/' feeds.conf.default + sed -i 's/https:\/\/git.openwrt.org\/feed\/packages.git^00803ffc91e80b16e9c1603ff32106d42e255923/https:\/\/github.com\/coolsnowwolf\/packages/' feeds.conf.default + + - name: Custom Applications + run: | + cd friendlywrt-h3/friendlywrt/package + git clone https://github.com/Baozisoftware/luci-app-koolproxy + + - name: Update Target.mk + run: | + cd friendlywrt-h3/friendlywrt/include + sed -i 's/dnsmasq /dnsmasq-full default-settings luci/' target.mk + + - name: Update Feeds + run: | + cd friendlywrt-h3/friendlywrt + ./scripts/feeds update -a + ./scripts/feeds install -a + + - name: Costom Configure File + run: | + cd friendlywrt-h3/friendlywrt + rm -f ./.config* + wget https://raw.githubusercontent.com/skytotwo/NanoPi-R1S-Build-By-Actions/master/r1s-h3-config + cp r1s-h3-config .config + + - name: Download package + if: always() + run: | + cd friendlywrt-h3/friendlywrt + make download -j8 + find dl -size -1024c -exec ls -l {} \; + find dl -size -1024c -exec rm -f {} \; + + - name: Build OpenWrt + run: | + cd friendlywrt-h3 + ./build.sh nanopi_r1s.mk + + - name: Zip Files + run: | + find friendlywrt-h3/out/ -name "FriendlyWrt_*img*" | xargs -i zip -r {}.zip {} + + - name: Assemble Artifact + run: | + rm -rf ./artifact/ + mkdir -p ./artifact/ + find friendlywrt-h3/out/ -name "FriendlyWrt_*img.zip*" | xargs -i mv -f {} ./artifact/ + - name: Upload Artifact + uses: actions/upload-artifact@master + with: + name: FriendlyWrt_NanoPi-R1S H3 v19.07 + path: ./artifact/ From 73874d3c25fff71cbc2997b49a42f242939a95cd Mon Sep 17 00:00:00 2001 From: wmm1118 <50430107+wmm1118@users.noreply.github.com> Date: Sat, 29 Feb 2020 22:52:14 +0800 Subject: [PATCH 8/9] Delete main.yml --- .github/workflows/main.yml | 120 ------------------------------------- 1 file changed, 120 deletions(-) delete mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 4fac6a73..00000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,120 +0,0 @@ - -# This is free software, lisence use MIT. -# -# Copyright (C) 2019 Jolly -# -# -# -# Write by Jolly 2019/12/7 -# last update at 2019/12/19 - -name: NanoPi-R1s H3 OpenWrt 19.07 Build - -on: - push: - branches: - - master - # schedule: - # - cron: 0 20 * * * - # release: - # types: [published] - -jobs: - - build: - - runs-on: ubuntu-latest - - steps: - - - name: Checkout - uses: actions/checkout@master - with: - ref: master - - - name: Initialization Environment - env: - DEBIAN_FRONTEND: noninteractive - run: | - wget -O - https://raw.githubusercontent.com/friendlyarm/build-env-on-ubuntu-bionic/master/install.sh | bash - - - name: Install Repo - run: | - git clone https://github.com/friendlyarm/repo - sudo cp repo/repo /usr/bin/ - - - name: Download Source - run: | - mkdir friendlywrt-h3 - cd friendlywrt-h3 - repo init -u https://github.com/friendlyarm/friendlywrt_manifests -b master -m h3.xml --repo-url=https://github.com/friendlyarm/repo --no-clone-bundle - - - name: Merge UpStearm OpenWrt - run: | - cd friendlywrt-h3 - cd .repo/manifests - rm -f ./h3.xml - wget https://raw.githubusercontent.com/skytotwo/NanoPi-R1S-Build-By-Actions/master/source_xml/h3_19.07.xml - cp h3_19.07.xml h3.xml - rm -rf ./h3_19.07.xml - repo sync -c --no-clone-bundle - - - name: Merge LEDE - run: | - cd friendlywrt-h3 - git clone https://github.com/coolsnowwolf/lede - cd friendlywrt - cp -r ../lede/package/lean package/ - sed -i 's/https:\/\/git.openwrt.org\/project\/luci.git^039ef1f4deba725d3591b159bbc9569885d68131/https:\/\/github.com\/coolsnowwolf\/luci/' feeds.conf.default - sed -i 's/https:\/\/git.openwrt.org\/feed\/packages.git^00803ffc91e80b16e9c1603ff32106d42e255923/https:\/\/github.com\/coolsnowwolf\/packages/' feeds.conf.default - - - name: Custom Applications - run: | - cd friendlywrt-h3/friendlywrt/package - git clone https://github.com/Baozisoftware/luci-app-koolproxy - - - name: Update Target.mk - run: | - cd friendlywrt-h3/friendlywrt/include - sed -i 's/dnsmasq /dnsmasq-full default-settings luci/' target.mk - - - name: Update Feeds - run: | - cd friendlywrt-h3/friendlywrt - ./scripts/feeds update -a - ./scripts/feeds install -a - - - name: Costom Configure File - run: | - cd friendlywrt-h3/friendlywrt - rm -f ./.config* - wget https://raw.githubusercontent.com/skytotwo/NanoPi-R1S-Build-By-Actions/master/r1s-h3-config - cp r1s-h3-config .config - - - name: Download package - if: always() - run: | - cd friendlywrt-h3/friendlywrt - make download -j8 - find dl -size -1024c -exec ls -l {} \; - find dl -size -1024c -exec rm -f {} \; - - - name: Build OpenWrt - run: | - cd friendlywrt-h3 - ./build.sh nanopi_r1s.mk - - - name: Zip Files - run: | - find friendlywrt-h3/out/ -name "FriendlyWrt_*img*" | xargs -i zip -r {}.zip {} - - - name: Assemble Artifact - run: | - rm -rf ./artifact/ - mkdir -p ./artifact/ - find friendlywrt-h3/out/ -name "FriendlyWrt_*img.zip*" | xargs -i mv -f {} ./artifact/ - - name: Upload Artifact - uses: actions/upload-artifact@master - with: - name: FriendlyWrt_NanoPi-R1S H3 v19.07 - path: ./artifact/ From 9a49d413b13d8bb7c52e3eaa2bb414d4d37ef2f4 Mon Sep 17 00:00:00 2001 From: wmm1118 <50430107+wmm1118@users.noreply.github.com> Date: Sat, 29 Feb 2020 22:53:08 +0800 Subject: [PATCH 9/9] Create main.yml --- .github/workflows/main.yml | 119 +++++++++++++++++++++++++++++++++++++ 1 file changed, 119 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..1640997a --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,119 @@ +# This is free software, lisence use MIT. +# +# Copyright (C) 2019 Jolly +# +# +# +# Write by Jolly 2019/12/7 +# last update at 2019/12/19 + +name: NanoPi-R1s H3 OpenWrt 19.07 Build + +on: + push: + branches: + - master + # schedule: + # - cron: 0 20 * * * + # release: + # types: [published] + +jobs: + + build: + + runs-on: ubuntu-latest + + steps: + + - name: Checkout + uses: actions/checkout@master + with: + ref: master + + - name: Initialization Environment + env: + DEBIAN_FRONTEND: noninteractive + run: | + wget -O - https://raw.githubusercontent.com/friendlyarm/build-env-on-ubuntu-bionic/master/install.sh | bash + + - name: Install Repo + run: | + git clone https://github.com/friendlyarm/repo + sudo cp repo/repo /usr/bin/ + + - name: Download Source + run: | + mkdir friendlywrt-h3 + cd friendlywrt-h3 + repo init -u https://github.com/friendlyarm/friendlywrt_manifests -b master -m h3.xml --repo-url=https://github.com/friendlyarm/repo --no-clone-bundle + + - name: Merge UpStearm OpenWrt + run: | + cd friendlywrt-h3 + cd .repo/manifests + rm -f ./h3.xml + wget https://raw.githubusercontent.com/skytotwo/NanoPi-R1S-Build-By-Actions/master/source_xml/h3_19.07.xml + cp h3_19.07.xml h3.xml + rm -rf ./h3_19.07.xml + repo sync -c --no-clone-bundle + + - name: Merge LEDE + run: | + cd friendlywrt-h3 + git clone https://github.com/coolsnowwolf/lede + cd friendlywrt + cp -r ../lede/package/lean package/ + sed -i 's/https:\/\/git.openwrt.org\/project\/luci.git^039ef1f4deba725d3591b159bbc9569885d68131/https:\/\/github.com\/coolsnowwolf\/luci/' feeds.conf.default + sed -i 's/https:\/\/git.openwrt.org\/feed\/packages.git^00803ffc91e80b16e9c1603ff32106d42e255923/https:\/\/github.com\/coolsnowwolf\/packages/' feeds.conf.default + + - name: Custom Applications + run: | + cd friendlywrt-h3/friendlywrt/package + git clone https://github.com/Baozisoftware/luci-app-koolproxy + + - name: Update Target.mk + run: | + cd friendlywrt-h3/friendlywrt/include + sed -i 's/dnsmasq /dnsmasq-full default-settings luci/' target.mk + + - name: Update Feeds + run: | + cd friendlywrt-h3/friendlywrt + ./scripts/feeds update -a + ./scripts/feeds install -a + + - name: Costom Configure File + run: | + cd friendlywrt-h3/friendlywrt + rm -f ./.config* + wget https://raw.githubusercontent.com/skytotwo/NanoPi-R1S-Build-By-Actions/master/r1s-h3-config + cp r1s-h3-config .config + + - name: Download package + if: always() + run: | + cd friendlywrt-h3/friendlywrt + make download -j8 + find dl -size -1024c -exec ls -l {} \; + find dl -size -1024c -exec rm -f {} \; + + - name: Build OpenWrt + run: | + cd friendlywrt-h3 + ./build.sh nanopi_r1s.mk + + - name: Zip Files + run: | + find friendlywrt-h3/out/ -name "FriendlyWrt_*img*" | xargs -i zip -r {}.zip {} + + - name: Assemble Artifact + run: | + rm -rf ./artifact/ + mkdir -p ./artifact/ + find friendlywrt-h3/out/ -name "FriendlyWrt_*img.zip*" | xargs -i mv -f {} ./artifact/ + - name: Upload Artifact + uses: actions/upload-artifact@master + with: + name: FriendlyWrt_NanoPi-R1S H3 v19.07 + path: ./artifact/