feat: 重构 CI/CD 流水线,拆分为独立的构建和发布流程,更新相关文档和脚本
CI / validate (push) Successful in 5s
CI / build (amd64) (push) Successful in 3m38s
CI / build (arm64) (push) Successful in 8m39s
Release / build (amd64) (push) Successful in 3m35s
Release / build (arm64) (push) Successful in 8m58s
Release / release (push) Successful in 42s
CI / validate (push) Successful in 5s
CI / build (amd64) (push) Successful in 3m38s
CI / build (arm64) (push) Successful in 8m39s
Release / build (amd64) (push) Successful in 3m35s
Release / build (arm64) (push) Successful in 8m58s
Release / release (push) Successful in 42s
- 新增 .gitea/workflows/ci.yml,包含版本校验、构建和冒烟测试 - 新增 .gitea/workflows/release.yml,处理 tag 发布,上传包到仓库并创建 Release - 更新 README.md 和 CLAUDE.md,描述新的 CI/CD 流程和版本号约定 - 修改 init.sh,增加对关键锚点的检查,确保源码结构一致性 - 更新 Dockerfile,使用 OpenSSL 3.0.21 和 unbound 1.25.1,确保与 Monero 版本一致 - 更新 build-deb.sh 示例,反映最新版本号 - 新增 VERSION 文件,统一版本管理
This commit is contained in:
@@ -1,4 +1,22 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
require_pattern() {
|
||||
pattern=$1
|
||||
file=$2
|
||||
grep -Fq -- "$pattern" "$file" || {
|
||||
echo "Required patch anchor not found in $file: $pattern" >&2
|
||||
exit 1
|
||||
}
|
||||
}
|
||||
|
||||
require_pattern 'project(monero)' CMakeLists.txt
|
||||
require_pattern 'OUTPUT_NAME "monerod"' src/daemon/CMakeLists.txt
|
||||
require_pattern '${monero_SOURCE_DIR}' cmake/CheckLinkerFlag.cmake
|
||||
require_pattern 'DEF_MONERO_VERSION' src/version.cpp.in
|
||||
require_pattern 'DEF_MONERO_RELEASE_NAME "Fluorine Fermi"' src/version.cpp.in
|
||||
require_pattern 'add_linker_flag_if_supported("-pie" LD_SECURITY_FLAGS)' CMakeLists.txt
|
||||
require_pattern 'set(STATIC_FLAGS "-static-libgcc -static-libstdc++")' CMakeLists.txt
|
||||
|
||||
# Modify the CMakeLists.txt and source files to change the project name from "monero" to "mond"
|
||||
|
||||
@@ -57,6 +75,12 @@ sed -i 's|add_linker_flag_if_supported("-pie" LD_SECURITY_FLAGS)|# -pie removed
|
||||
# Linux STATIC_FLAGS 从 -static-libgcc/-static-libstdc++ 改真 -static
|
||||
sed -i 's|set(STATIC_FLAGS "-static-libgcc -static-libstdc++")|set(STATIC_FLAGS "-static")|' CMakeLists.txt
|
||||
|
||||
require_pattern 'project(mond)' CMakeLists.txt
|
||||
require_pattern 'OUTPUT_NAME "mond"' src/daemon/CMakeLists.txt
|
||||
require_pattern 'DEF_MOND_VERSION' src/version.cpp.in
|
||||
require_pattern '# -pie removed for fully-static' CMakeLists.txt
|
||||
require_pattern 'set(STATIC_FLAGS "-static")' CMakeLists.txt
|
||||
|
||||
echo "Project successfully modified from Monero to Mond!"
|
||||
echo "Binary output name: mond"
|
||||
echo "Project name: mond"
|
||||
|
||||
Reference in New Issue
Block a user