Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
mirrors
openwrt
telephony
提交
39ca113f
T
telephony
项目概览
mirrors
/
openwrt
/
telephony
大约 1 年 前同步成功
通知
2
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
telephony
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
39ca113f
编写于
3月 29, 2023
作者:
M
micmac1
提交者:
GitHub
3月 29, 2023
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #807 from micmac1/ci-up
CI: sync up with changes in packages repo
上级
2a81709f
a4b6dfaf
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
101 addition
and
10 deletion
+101
-10
.github/workflows/check-autorelease-deprecation.yml
.github/workflows/check-autorelease-deprecation.yml
+91
-0
.github/workflows/entrypoint.sh
.github/workflows/entrypoint.sh
+5
-1
.github/workflows/formal.yml
.github/workflows/formal.yml
+1
-1
.github/workflows/multi-arch-test-build.yml
.github/workflows/multi-arch-test-build.yml
+4
-8
未找到文件。
.github/workflows/check-autorelease-deprecation.yml
0 → 100644
浏览文件 @
39ca113f
name
:
Check autorelease deprecation
on
:
pull_request_target
:
types
:
[
opened
,
synchronize
,
converted_to_draft
,
ready_for_review
,
edited
]
jobs
:
build
:
name
:
Check autorelease deprecation
runs-on
:
ubuntu-latest
strategy
:
fail-fast
:
false
permissions
:
pull-requests
:
write
steps
:
-
uses
:
actions/checkout@v3
with
:
ref
:
${{ github.event.pull_request.head.sha }}
fetch-depth
:
0
-
name
:
Determine branch name
run
:
|
BRANCH="${GITHUB_BASE_REF#refs/heads/}"
echo "Building for $BRANCH"
echo "BRANCH=$BRANCH" >> $GITHUB_ENV
-
name
:
Determine changed packages
run
:
|
RET=0
# only detect packages with changes
PKG_ROOTS=$(find . -name Makefile | \
grep -v ".*/src/Makefile" | \
sed -e 's@./\(.*\)/Makefile@\1/@')
CHANGES=$(git diff --diff-filter=d --name-only origin/$BRANCH...)
for ROOT in $PKG_ROOTS; do
for CHANGE in $CHANGES; do
if [[ "$CHANGE" == "$ROOT"* ]]; then
if grep -q '$(AUTORELEASE)' "$ROOT/Makefile"; then
CONTAINS_AUTORELEASE+="$ROOT"
fi
break
fi
done
done
if [ -n "$CONTAINS_AUTORELEASE" ]; then
RET=1
cat > "$GITHUB_WORKSPACE/pr_comment.md" << EOF
Please do no longer set *PKG_RELEASE* to *AUTORELEASE* as the
feature is deprecated. Please use an integer instead. Below is a
list of affected packages including correct *PKG_RELEASE*:
EOF
fi
for ROOT in $CONTAINS_AUTORELEASE; do
echo -n " - ${ROOT}Makefile: PKG_RELEASE:=" >> "$GITHUB_WORKSPACE/pr_comment.md"
last_bump="$(git log --pretty=format:'%h %s' "$ROOT" |
grep --max-count=1 -e ': [uU]pdate to ' -e ': [bB]ump to ' |
cut -f 1 -d ' ')"
if [ -n "$last_bump" ]; then
echo -n $(($(git rev-list --count "$last_bump..HEAD" "$ROOT") + 2)) >> "$GITHUB_WORKSPACE/pr_comment.md"
else
echo -n $(($(git rev-list --count HEAD "$ROOT") + 2)) >> "$GITHUB_WORKSPACE/pr_comment.md"
fi
echo >> "$GITHUB_WORKSPACE/pr_comment.md"
done
exit $RET
-
name
:
Find Comment
uses
:
peter-evans/find-comment@v2
if
:
${{ failure() }}
id
:
fc
with
:
issue-number
:
${{ github.event.pull_request.number }}
comment-author
:
'
github-actions[bot]'
-
name
:
Create or update comment
uses
:
peter-evans/create-or-update-comment@v2
if
:
${{ failure() }}
with
:
comment-id
:
${{ steps.fc.outputs.comment-id }}
issue-number
:
${{ github.event.pull_request.number }}
body-file
:
'
pr_comment.md'
edit-mode
:
replace
.github/workflows/entrypoint.sh
浏览文件 @
39ca113f
#!/bin/sh
# not enabling `errtrace` and `pipefail` since those are bash specific
set
-o
errexit
# failing commands causes script to fail
set
-o
nounset
# undefined variables causes script to fail
mkdir
-p
/var/lock/
opkg update
[
-n
"
$
CI_HELPER
"
]
||
CI_HELPER
=
"/ci/.github/workflows/ci_helpers.sh"
[
-n
"
$
{
CI_HELPER
:
=
''
}
"
]
||
CI_HELPER
=
"/ci/.github/workflows/ci_helpers.sh"
for
PKG
in
/ci/
*
.ipk
;
do
tar
-xzOf
"
$PKG
"
./control.tar.gz |
tar
xzf - ./control
...
...
.github/workflows/formal.yml
浏览文件 @
39ca113f
...
...
@@ -11,7 +11,7 @@ jobs:
fail-fast
:
false
steps
:
-
uses
:
actions/checkout@v
2
-
uses
:
actions/checkout@v
3
with
:
ref
:
${{ github.event.pull_request.head.sha }}
fetch-depth
:
0
...
...
.github/workflows/multi-arch-test-build.yml
浏览文件 @
39ca113f
...
...
@@ -11,10 +11,6 @@ jobs:
fail-fast
:
false
matrix
:
include
:
-
arch
:
arc_archs
target
:
archs38-generic
runtime_test
:
false
-
arch
:
arm_cortex-a9_vfpv3-d16
target
:
mvebu-cortexa9
runtime_test
:
false
...
...
@@ -31,7 +27,7 @@ jobs:
target
:
apm821xx-nand
runtime_test
:
false
-
arch
:
powerpc_854
0
-
arch
:
powerpc_854
8
target
:
mpc85xx-p1010
runtime_test
:
false
...
...
@@ -52,7 +48,7 @@ jobs:
runtime_test
:
true
steps
:
-
uses
:
actions/checkout@v
2
-
uses
:
actions/checkout@v
3
with
:
fetch-depth
:
0
...
...
@@ -132,7 +128,7 @@ jobs:
cat PKG-INFO
-
name
:
Store packages
uses
:
actions/upload-artifact@v
2
uses
:
actions/upload-artifact@v
3
with
:
name
:
${{env.ARCHIVE_NAME}}-packages
path
:
|
...
...
@@ -140,7 +136,7 @@ jobs:
PKG-INFO
-
name
:
Store logs
uses
:
actions/upload-artifact@v
2
uses
:
actions/upload-artifact@v
3
with
:
name
:
${{env.ARCHIVE_NAME}}-logs
path
:
|
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录