diff --git a/.github/workflows/build-padavan.yml "b/.github/\345\267\245\344\275\234\346\265\201\347\250\213/build-padavan.yml" similarity index 92% rename from .github/workflows/build-padavan.yml rename to ".github/\345\267\245\344\275\234\346\265\201\347\250\213/build-padavan.yml" index 7fd5b3fa2d..8ce45320ac 100644 --- a/.github/workflows/build-padavan.yml +++ "b/.github/\345\267\245\344\275\234\346\265\201\347\250\213/build-padavan.yml" @@ -1,4 +1,4 @@ -#修改TNAME: K2P-5.0 中的K2P-5.0为你需要编译的型号,注意名称要与configs/templates/目录下的名字相同 +#修改TNAME: K2P 中的K2P为你需要编译的型号,注意名称要与configs/templates/目录下的名字相同 name: Build Padavan on: @@ -16,7 +16,7 @@ on: jobs: build: - runs-on: ubuntu-18.04 + runs-on: ubuntu-20.04 if: github.event.repository.owner.id == github.event.sender.id steps: @@ -31,14 +31,21 @@ jobs: cpio git python-docutils gettext automake autopoint texinfo build-essential help2man \ pkg-config zlib1g-dev libgmp3-dev libmpc-dev libmpfr-dev libncurses5-dev libltdl-dev wget - name: Clone source code + env: + KERNEL: 3.4 run: | - git clone --depth=1 https://github.com/chongshengB/rt-n56u.git /opt/rt-n56u + if [ $KERNEL = "4.4" ] ; then + git clone --depth=1 https://github.com/MeIsReallyBa/padavan-4.4.git /opt/rt-n56u + else + git clone --depth=1 https://github.com/henhaoderen/rt-n56u.git /opt/rt-n56u + fi cd /opt/rt-n56u/toolchain-mipsel sh dl_toolchain.sh mkdir -p /opt/images/ - name: Build Firmware env: - TNAME: K2P-5.0 + TNAME: K2P + KERNEL: 3.4 run: | cd /opt/rt-n56u/trunk if [ ! -f configs/templates/$TNAME.config ] ; then @@ -102,5 +109,5 @@ jobs: uses: actions/upload-artifact@master if: always() with: - name: Padavan-packages + name: K2P path: /opt/images