forked from VIKINGYFY/CloseWRT-CI
-
Notifications
You must be signed in to change notification settings - Fork 0
89 lines (83 loc) · 2.27 KB
/
CWRT-ALL.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#CI项目
name: CWRT-ALL
#CI计划
on:
#自动编译:每周早上4点
schedule:
- cron: 0 20 * * 0
#手动编译
workflow_dispatch:
inputs:
ADJUST:
description: '内存低占用模式,默认关闭。'
default: 'false'
required: false
type: boolean
PACKAGE:
description: '手动调整插件包,仅限一个。'
required: false
type: string
TEST:
description: '仅输出配置文件,不编译固件。'
default: 'false'
required: false
type: boolean
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
#CI权限
permissions: write-all
#CI任务
jobs:
cleanup:
runs-on: ubuntu-22.04
steps:
- name: Delete old Releases and Workflows
uses: ophub/delete-releases-workflows@main
with:
gh_token: ${{secrets.GITHUB_TOKEN}}
delete_releases: true
releases_keep_latest: 0
delete_tags: true
delete_workflows: true
workflows_keep_day: 0
config:
needs: cleanup
name: ${{matrix.TARGET}}
strategy:
fail-fast: false
max-parallel: 3
matrix:
TARGET: [MTK-7981, MTK-7986]
REPO_INFO:
- {SOURCE: hanwckf/immortalwrt-mt798x, BRANCH: openwrt-21.02}
- {SOURCE: padavanonly/immortalwrt-mt798x, BRANCH: openwrt-21.02}
- {SOURCE: padavanonly/immortalwrt-mt798x-23.05, BRANCH: openwrt-23.05}
#调用公用编译核心WRT-CORE.yml
uses: ./.github/workflows/WRT-CORE.yml
with:
#编译平台
WRT_TARGET: ${{matrix.TARGET}}
#默认主题
WRT_THEME: argon
#默认主机名
WRT_NAME: CWRT
#默认WIFI名称
WRT_SSID: CWRT
#默认WIFI密码
WRT_WORD: 12345678
#默认地址
WRT_IP: 192.168.10.1
#默认密码,仅作提示,修改无用
WRT_PW: 无
#源码链接
WRT_REPO: https://github.com/${{matrix.REPO_INFO.SOURCE}}.git
#源码分支
WRT_BRANCH: ${{matrix.REPO_INFO.BRANCH}}
#源码名称
WRT_SOURCE: ${{matrix.REPO_INFO.SOURCE}}
#内存低占用模式
WRT_ADJUST: ${{inputs.ADJUST}}
#插件调整
WRT_PACKAGE: ${{inputs.PACKAGE}}
#仅输出配置文件
WRT_TEST: ${{inputs.TEST}}