Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
StoneAtom
stonedb
提交
6704a13b
stonedb
项目概览
StoneAtom
/
stonedb
11 个月 前同步成功
通知
7
Star
817
Fork
141
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
stonedb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
6704a13b
编写于
10月 10, 2022
作者:
Z
zsp108
提交者:
mergify[bot]
10月 10, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat(CI/CD):change 5.7 branch CI/CD use self-hosted
上级
c6c8f983
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
120 addition
and
0 deletion
+120
-0
.github/workflows/pull_requests.yml
.github/workflows/pull_requests.yml
+120
-0
未找到文件。
.github/workflows/pull_requests.yml
0 → 100644
浏览文件 @
6704a13b
name
:
StoneDB Compile & MTR
on
:
push
:
branches-ignore
:
-
main
paths-ignore
:
-
'
Docs/**'
-
'
docs/**'
-
'
website/**'
-
'
**.md'
-
'
scripts/setup/**'
-
'
.devcontainer/**'
-
'
.github/ISSUE_TEMPLATE/**'
pull_request
:
branches-ignore
:
-
main
# wait for mergify to ignore
paths-ignore
:
-
'
Docs/**'
-
'
docs/**'
-
'
website/**'
-
'
**.md'
-
'
.github/ISSUE_TEMPLATE/**'
#- 'scripts/**'
#- 'install_scripts/**'
concurrency
:
group
:
${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress
:
true
env
:
CARGO_TERM_COLOR
:
always
PROTOC
:
protoc
defaults
:
run
:
shell
:
bash
jobs
:
lint
:
name
:
lint
# if: ${{ contains(github.event.pull_request.labels.*.name, 'ready-for-testing') && github.event.pull_request.merged != true }}
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v3
with
:
ref
:
${{ github.event.pull_request.base.sha }}
-
uses
:
actions/checkout@v3
with
:
clean
:
false
# - name: Check License Header
# uses: apache/skywalking-eyes/header@main
-
name
:
Ensure clang-format-10 is available
run
:
|
command -v clang-format-10 > /dev/null || (apt-get update && apt-get install -y clang-format-10)
-
name
:
Format check
run
:
|
git diff -U0 --no-color ${{ github.event.pull_request.base.sha }} HEAD storage/tianmu | /usr/share/clang/clang-format-10/clang-format-diff.py -p1 | tee /tmp/.clang-format-diff
[ -s /tmp/.clang-format-diff ] && exit 1 || true
stonedb-build
:
name
:
stonedb-build
needs
:
lint
runs-on
:
fgdb
strategy
:
fail-fast
:
false
matrix
:
os
:
-
debian10_1.0.3
-
centos7_1.0.3
compiler
:
-
gcc-9.3
# exclude:
# - os: debian10_1.0.3
# compiler: gcc-9.3
env
:
CCACHE_DIR
:
/tmp/ccache/stonedb/${{ matrix.os }}-${{ matrix.compiler }}
CCACHE_MAXSIZE
:
8G
container
:
image
:
stoneatom/stonedb_buildenv:${{ matrix.os }}
steps
:
-
uses
:
actions/checkout@v3
-
name
:
compile stonedb
id
:
compile
run
:
|
mkdir build && cd build
# git config --global --add safe.directory /__w/stonedb/stonedb
cmake ../ \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/stonedb57/install \
-DMYSQL_DATADIR=/stonedb57/install/data \
-DSYSCONFDIR=/stonedb57/install \
-DMYSQL_UNIX_ADDR=/stonedb57/install/tmp/mysql.sock \
-DWITH_EMBEDDED_SERVER=OFF \
-DWITH_TIANMU_STORAGE_ENGINE=1 \
-DWITH_MYISAM_STORAGE_ENGINE=1 \
-DWITH_INNOBASE_STORAGE_ENGINE=1 \
-DWITH_PARTITION_STORAGE_ENGINE=1 \
-DMYSQL_TCP_PORT=3306 \
-DENABLED_LOCAL_INFILE=1 \
-DEXTRA_CHARSETS=all \
-DDEFAULT_CHARSET=utf8 \
-DDEFAULT_COLLATION=utf8_general_ci \
-DDOWNLOAD_BOOST=0 \
-DWITH_BOOST=/usr/local/stonedb-boost/ \
-DDOWNLOAD_ROCKSDB=0 \
-DWITH_ROCKSDB=/usr/local/stonedb-gcc-rocksdb/ \
-DWITH_MARISA=/usr/local/stonedb-marisa/ \
-DDOWNLOAD_ROCKSDB=0 \
-DWITH_ROCKSDB=/usr/local/stonedb-gcc-rocksdb && make -j`nproc` && make -j`nproc` install
-
name
:
mtr test
run
:
|
mkdir -p /stonedb57/install/log
groupadd mysql && useradd -g mysql mysql
chown -R mysql:mysql /stonedb57
cd /stonedb57/install/mysql-test
./mysql-test-run.pl --suite=tianmu --nowarnings --force --nocheck-testcases --retry=0
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录