Update and rename openwrt_R3P.yml to OpenWrt_R3P.yml
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
name: openwrt_R3P
|
name: OpenWrt_R3P
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
@ -8,13 +8,15 @@ on:
|
|||||||
env:
|
env:
|
||||||
REPO_URL: https://github.com/openwrt/openwrt
|
REPO_URL: https://github.com/openwrt/openwrt
|
||||||
REPO_BRANCH: master
|
REPO_BRANCH: master
|
||||||
CONFIG_FILE: R3P/.config
|
FEEDS_CONF: OpenWrt/R3P/feeds.conf.default
|
||||||
DIY_P1_SH: diy-part1.sh
|
CONFIG_FILE: OpenWrt/R3P/.config
|
||||||
DIY_P2_SH: diy-part2.sh
|
DIY_P1_SH: OpenWrt/R3P/diy-part1.sh
|
||||||
|
DIY_P2_SH: OpenWrt/R3P/diy-part2.sh
|
||||||
|
SSH_ACTIONS: false
|
||||||
UPLOAD_FIRMWARE: true
|
UPLOAD_FIRMWARE: true
|
||||||
UPLOAD_RELEASE: true
|
UPLOAD_RELEASE: true
|
||||||
TZ: Asia/Shanghai
|
TZ: Asia/Shanghai
|
||||||
OPENWRT_NAME: openwrt
|
OPENWRT_NAME: Openwrt
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -22,7 +24,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: 检查项目分支
|
- name: 检查项目分支
|
||||||
uses: actions/checkout@openwrt
|
uses: actions/checkout@main
|
||||||
|
|
||||||
- name: 初始化编译环境
|
- name: 初始化编译环境
|
||||||
env:
|
env:
|
||||||
@ -43,6 +45,7 @@ jobs:
|
|||||||
|
|
||||||
- name: 加载feeds.conf.default & DIY_P1_SH
|
- name: 加载feeds.conf.default & DIY_P1_SH
|
||||||
run: |
|
run: |
|
||||||
|
[ -e $FEEDS_CONF ] && mv $FEEDS_CONF openwrt/feeds.conf.default
|
||||||
chmod +x $DIY_P1_SH
|
chmod +x $DIY_P1_SH
|
||||||
cd openwrt
|
cd openwrt
|
||||||
$GITHUB_WORKSPACE/$DIY_P1_SH
|
$GITHUB_WORKSPACE/$DIY_P1_SH
|
||||||
@ -52,14 +55,12 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
./scripts/feeds update -a
|
./scripts/feeds update -a
|
||||||
./scripts/feeds install -a
|
./scripts/feeds install -a
|
||||||
|
|
||||||
- name: 加载config & DIY_P2_SH
|
- name: 加载config & DIY_P2_SH
|
||||||
run: |
|
run: |
|
||||||
[ -e $CONFIG_FILE ] && mv $CONFIG_FILE openwrt/.config
|
[ -e $CONFIG_FILE ] && mv $CONFIG_FILE openwrt/.config
|
||||||
chmod +x $DIY_P2_SH
|
chmod +x $DIY_P2_SH
|
||||||
cd openwrt
|
cd openwrt
|
||||||
$GITHUB_WORKSPACE/$DIY_P2_SH
|
$GITHUB_WORKSPACE/$DIY_P2_SH
|
||||||
|
|
||||||
- name: 下载安装包
|
- name: 下载安装包
|
||||||
id: package
|
id: package
|
||||||
run: |
|
run: |
|
Reference in New Issue
Block a user