-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into update_feather
- Loading branch information
Showing
12 changed files
with
131 additions
and
1,106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: CI | ||
|
||
on: [ push, pull_request ] | ||
|
||
jobs: | ||
build-and-test: | ||
|
||
name: ${{ matrix.os }} (${{ matrix.configuration }}) | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
configuration: [ Debug, Release ] | ||
os: [ macos-latest, ubuntu-latest, windows-latest ] | ||
|
||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: 'true' | ||
|
||
- name: Setup MySQL | ||
uses: ankane/setup-mysql@v1 | ||
if : startsWith(matrix.os, 'macos') | ||
|
||
- name: Configure cmake | ||
run: cmake -B${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{ matrix.configuration }} | ||
|
||
- name: Build | ||
run: cmake --build ${{github.workspace}}/build --config ${{ matrix.configuration }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Clang Format Diff | ||
|
||
on: [ push, pull_request ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: install clang-format | ||
run: sudo apt install clang-format | ||
|
||
- name: check-diff | ||
run: | | ||
diff=`git-clang-format --diff HEAD^` | ||
if ! [[ "$diff" = "no modified files to format" || "$diff" = "clang-format did not modify any files" ]]; then | ||
echo "The diff you sent is not formatted correctly." | ||
echo "The suggested format is" | ||
echo "$diff" | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# feather使用说明 | ||
|
||
1. 安装依赖库 | ||
|
||
```text | ||
mysql | ||
``` | ||
|
||
2. 编译 | ||
|
||
```shell | ||
git clone --recurse-submodules https://github.com/qicosmos/feather.git | ||
|
||
cmake -B build | ||
|
||
cmake --build build | ||
``` | ||
|
||
3. 运行 | ||
|
||
* 创建运行时需要的目录结构 | ||
|
||
在`feather`目录下执行(此处假设构建目录为`feather/build`): | ||
|
||
```shell | ||
mkdir runtime | ||
cd runtime | ||
cp -rvt . ../build/feather ../purecpp ../cfg | ||
``` | ||
|
||
此时`runtime`目录下应该有文件(目录): | ||
|
||
```text | ||
cfg/ feather* purecpp/ | ||
``` | ||
|
||
* 修改配置文件(以下均相对于`runtime`目录) | ||
|
||
配置文件为`cfg/feather.cfg`,修改其中的数据库用户名和密码为真实数据。 | ||
|
||
* 运行 | ||
|
||
在`runtime`目录下执行: | ||
|
||
```shell | ||
./feather | ||
``` | ||
|
||
* 访问 | ||
|
||
**注意**:在数据库无数据的时候无法看到页面,可以通过访问:`http://localhost:8080/sign_out_page`注册用户并发表一篇文章。这时其他页面就可以访问了。 |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.