diff --git a/.github/workflows/OpenWrt18.06 MT7620 vssr.yml b/.github/workflows/OpenWrt18.06 MT7620 vssr.yml new file mode 100644 index 000000000..98a3c150a --- /dev/null +++ b/.github/workflows/OpenWrt18.06 MT7620 vssr.yml @@ -0,0 +1,234 @@ +# +# This is free software, lisence use MIT. +# +# Copyright (C) 2019 P3TERX +# Copyright (C) 2019 KFERMercer +# +# +# + +name: OpenWrt18.06 MT7620 +on: + push: + branches: + - master + # schedule: + # - cron: 0 20 * * * + # release: + # types: [published] +env: + SSH_ACTIONS: true + + + +jobs: + + build: + + runs-on: ubuntu-latest + + steps: + + - name: Checkout + uses: actions/checkout@master + with: + ref: master + + - 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* + sudo -E apt-get update + sudo -E apt-get -y install 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 + sudo -E apt-get -y autoremove --purge + sudo -E apt-get clean + # sudo mkdir -p -m 777 /mnt/openwrt/bin /mnt/openwrt/build_dir/host /mnt/openwrt/build_dir/hostpkg /mnt/openwrt/dl /mnt/openwrt/feeds /mnt/openwrt/staging_dir + # ln -s /mnt/openwrt/bin ./bin + # mkdir -p ./build_dir/host && ln -s /mnt/openwrt/build_dir/host ./build_dir/host + # mkdir -p ./build_dir/host && ln -s /mnt/openwrt/build_dir/hostpkg ./build_dir/hostpkg + # ln -s /mnt/openwrt/dl ./dl + # ln -s /mnt/openwrt/feeds ./feeds + # ln -s /mnt/openwrt/staging_dir ./staging_dir + df -h + - name: 自定义插件 + run: | + rm -rfv package/lean/autocore + rm -rfv package/lean/luci-app-adbyby-plus + cd package/diy + tar xvJf luci-app-docker.tar.xz + tar xvJf luci-app-koolddns.tar.xz + tar xvJf luci-app-rclone.tar.xz + tar xvJf autocore.tar.xz + tar xvJf luci-app-nps.tar.xz + tar xvJf luci-app-adbyby-plus.tar.xz + git clone https://github.com/Sweet-Fairy/luci-app-ssr-plus-Jo + git clone https://github.com/Sweet-Fairy/openwrt-package + git clone -b lean https://github.com/Sweet-Fairy/luci-app-ssr-plus-Jo package/luci-app-ssr-plus-lean + git clone https://github.com/lisaac/luci-lib-docker.git package/luci-lib-docker + git clone https://github.com/lisaac/luci-app-dockerman.git package/luci-app-dockerman + # ==========ssr-plus-Jo ssr-plus-lean不要一起编译 +vssr ========== + # ==========以上是示范如何加入tar.xz解包和拉github源码编译========== + + + - name: Update feeds + run: | + ./scripts/feeds update -a + ./scripts/feeds install -a + + + - name: SSH connection to Actions + uses: P3TERX/debugger-action@master + if: env.SSH_ACTIONS == 'true' + + - name: Generate configuration file + run: | + rm -f ./.config* + touch ./.config + # + # ========================固件定制部分======================= + # + # + # 如果不对本区块做出任何编辑, 则生成默认配置固件. + # + # 以下为定制化固件选项和说明: + # + # + # 有些插件/选项是默认开启的, 如果想要关闭, 请参照以下示例进行编写: + # + # ========================================= + # | # 取消编译VMware镜像: | + # | cat >> .config <> .config <> .config <> .config <> .config <> .config <> .config <> .config <> .config <> .config <> .config <> .config <