From 8859d76fd63419a394e8c529be4d158bee7503c4 Mon Sep 17 00:00:00 2001 From: suyuan <175338101@qq.com> Date: Fri, 18 Sep 2020 22:52:55 +0800 Subject: [PATCH] 121 --- .github/workflows/stale.yml | 46 ++++++++++++++----------------------- build.sh | 6 ++--- 2 files changed, 20 insertions(+), 32 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 99f1ae80..faa4beee 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -10,6 +10,23 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/stale@v3.0.10 + name: Space cleanup + env: + DEBIAN_FRONTEND: noninteractive + run: | + docker rmi `docker images -q` + sudo rm -rf /usr/share/dotnet /etc/mysql /etc/php /etc/apt/sources.list.d + sudo -E apt-get -y purge azure-cli ghc* zulu* hhvm llvm* firefox google* dotnet* powershell openjdk* mysql* php* android* + sudo -E apt-get update + sudo -E apt-get -y 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 antlr3 gperf swig + sudo -E apt-get -y autoremove --purge + sudo -E apt-get clean + df -h + - name: Update feeds + run: | + sed -i 's/#src-git helloworld/src-git helloworld/g' ./feeds.conf.default + ./scripts/feeds update -a + ./scripts/feeds install -a with: repo-token: ${{ secrets.GITHUB_TOKEN }} stale-issue-message: "This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days" @@ -18,32 +35,3 @@ jobs: days-before-close: 5 exempt-issue-labels: 'work-in-progress,enhancement' exempt-pr-labels: 'work-in-progress,enhancement' - run: | - ./scripts/feeds update -a - ./scripts/feeds install -a - - name: Costom configure file - run: | - rm -f ./.config* - touch ./.config - - sed -i 's/^[ \t]*//g' ./.config - make defconfig - - name: Make download - run: | - make download -j8 - find dl -size -1024c -exec ls -l {} \; - find dl -size -1024c -exec rm -f {} \; - - name: Compile firmware - run: | - echo -e "$(nproc) thread build." - make -j$(nproc) V=s - - name: Assemble artifact - run: | - rm -rf ./artifact/ - mkdir -p ./artifact/ - find ./bin/targets/ -name "*combined*img*" | xargs -i mv -f {} ./artifact/ - find ./bin/targets/ -name "*sysupgrade*bin*" | xargs -i mv -f {} ./artifact/ - - name: Upload artifact - uses: actions/upload-artifact@master - with: - name: OpenWrt firmware \ No newline at end of file diff --git a/build.sh b/build.sh index 9e484802..bf6013e3 100755 --- a/build.sh +++ b/build.sh @@ -70,9 +70,9 @@ fi #_get_repo source https://github.com/ysurac/openmptcprouter-source "master" if [ "$OMR_OPENWRT" = "default" ]; then - _get_repo "$OMR_TARGET/source" https://github.com/openwrt/openwrt "38f6d5d217ca0c42f7f42b08f835a8a9cee71ad7" - _get_repo feeds/packages https://github.com/openwrt/packages "7479b3ecfafa6732185080ddfca68b68e27993b2" - _get_repo feeds/luci https://github.com/openwrt/luci "b95ac83ffd4fcf268be964002c45beba17d6e5c1" + _get_repo "$OMR_TARGET/source" https://github.com/openwrt/openwrt "master" + _get_repo feeds/packages https://github.com/openwrt/packages "master" + _get_repo feeds/luci https://github.com/openwrt/luci "master" elif [ "$OMR_OPENWRT" = "master" ]; then _get_repo "$OMR_TARGET/source" https://github.com/openwrt/openwrt "master" _get_repo feeds/packages https://github.com/openwrt/packages "master"