diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml new file mode 100644 index 0000000..81e65f8 --- /dev/null +++ b/.github/workflows/test-build.yml @@ -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 diff --git a/docs/compilation/source-code.md b/docs/compilation/source-code.md index 58e3cb6..79f82cb 100644 --- a/docs/compilation/source-code.md +++ b/docs/compilation/source-code.md @@ -25,8 +25,8 @@ KWDB 支持在 Linux 操作系统进行安装部署,下表列出了编译和 | checkinstall | any | | | libssl | v1.1.1+ | - Ubuntu系统该依赖名为libssl-dev。
- RHEL, CentOS, Kylin, UOS, AnolisOS系统该依赖名为libssl-devel。 | | libprotobuf | v3.6.1+ | - Ubuntu系统该依赖名为libprotobuf-dev。
- RHEL, CentOS, Kylin, UOS, AnolisOS系统该依赖名为libprotobuf-devel。 | -| liblzma | v5.2.0+ | - Ubuntu系统该依赖名为liblzma-dev。
- RHEL, CentOS, Kylin, UOS, AnolisOS系统该依赖名为liblzma-devel。 | -| libncurses | v6.2.0+ | - Ubuntu系统该依赖名为libncurses5-dev。
- RHEL, CentOS, Kylin, UOS, AnolisOS系统该依赖名为libncurses-devel。 | +| liblzma | v5.2.0+ | - Ubuntu系统该依赖名为liblzma-dev。
- RHEL, CentOS, Kylin, UOS, AnolisOS系统该依赖名为liblzma-devel。 | +| libncurses | v6.2.0+ | - Ubuntu系统该依赖名为libncurses5-dev。
- 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 | | @@ -40,7 +40,7 @@ KWDB 支持在 Linux 操作系统进行安装部署,下表列出了编译和 | 依赖 | 版本 | | :-------------| :------ | | openssl | v1.1.1+ | -| libprotobuf | v3.6.1+
**注意**:Ubuntu 18.04 默认的 libprotobuf 版本不满足要求,用户需要提前安装所需版本(推荐 3.6.1 和 3.12.4),并在编译时通过 `make PROTOBUF_DIR=` 指定高版本路径。| +| libprotobuf | v3.6.1+
**注意**:Ubuntu 18.04 默认的 libprotobuf 版本不满足要求,用户需要提前安装所需版本(推荐 3.6.1 和 3.12.4),并在编译时通过 `make PROTOBUF_DIR=` 指定高版本路径。| | geos | v3.3.8+ | | xz-libs | v5.2.0+ | | squashfs-tools | any |