Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build Test

on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:

jobs:
build:
name: Build Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v3

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Type Check
run: pnpm run typecheck

- name: Build website
run: pnpm run build
6 changes: 3 additions & 3 deletions docs/compilation/source-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ KWDB 支持在 Linux 操作系统进行安装部署,下表列出了编译和
| checkinstall | any | |
| libssl | v1.1.1+ | - Ubuntu系统该依赖名为libssl-dev。<br/>- RHEL, CentOS, Kylin, UOS, AnolisOS系统该依赖名为libssl-devel。 |
| libprotobuf | v3.6.1+ | - Ubuntu系统该依赖名为libprotobuf-dev。<br/>- RHEL, CentOS, Kylin, UOS, AnolisOS系统该依赖名为libprotobuf-devel。 |
| liblzma | v5.2.0+ | - Ubuntu系统该依赖名为liblzma-dev。<br>- RHEL, CentOS, Kylin, UOS, AnolisOS系统该依赖名为liblzma-devel。 |
| libncurses | v6.2.0+ | - Ubuntu系统该依赖名为libncurses5-dev。<br>- RHEL, CentOS, Kylin, UOS, AnolisOS系统该依赖名为libncurses-devel。 |
| liblzma | v5.2.0+ | - Ubuntu系统该依赖名为liblzma-dev。<br/>- RHEL, CentOS, Kylin, UOS, AnolisOS系统该依赖名为liblzma-devel。 |
| libncurses | v6.2.0+ | - Ubuntu系统该依赖名为libncurses5-dev。<br/>- RHEL, CentOS, Kylin, UOS, AnolisOS系统该依赖名为libncurses-devel。 |
| libatomic | v7.3.0+ | 仅 GCC 和 G++ 7.3.0 版本需要增加此依赖。 |
| libstdc++-static | v7.3.0+ | 仅 GCC 和 G++ 7.3.0 版本需要增加此依赖。 |
| protobuf-compiler | any | |
Expand All @@ -40,7 +40,7 @@ KWDB 支持在 Linux 操作系统进行安装部署,下表列出了编译和
| 依赖 | 版本 |
| :-------------| :------ |
| openssl | v1.1.1+ |
| libprotobuf | v3.6.1+ <br>**注意**:Ubuntu 18.04 默认的 libprotobuf 版本不满足要求,用户需要提前安装所需版本(推荐 3.6.1 和 3.12.4),并在编译时通过 `make PROTOBUF_DIR=<protobuf_directory>` 指定高版本路径。|
| libprotobuf | v3.6.1+ <br/>**注意**:Ubuntu 18.04 默认的 libprotobuf 版本不满足要求,用户需要提前安装所需版本(推荐 3.6.1 和 3.12.4),并在编译时通过 `make PROTOBUF_DIR=<protobuf_directory>` 指定高版本路径。|
| geos | v3.3.8+ |
| xz-libs | v5.2.0+ |
| squashfs-tools | any |
Expand Down