Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

k2p #397

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

k2p #397

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#修改TNAME: K2P-5.0 中的K2P-5.0为你需要编译的型号,注意名称要与configs/templates/目录下的名字相同
#修改TNAME: K2P 中的K2P为你需要编译的型号,注意名称要与configs/templates/目录下的名字相同
name: Build Padavan

on:
Expand All @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -102,5 +109,5 @@ jobs:
uses: actions/upload-artifact@master
if: always()
with:
name: Padavan-packages
name: K2P
path: /opt/images