Skip to content

Commit

Permalink
feat:move http2cppweb
Browse files Browse the repository at this point in the history
  • Loading branch information
chenxuan520 committed Oct 27, 2024
1 parent 3eb0241 commit 881243e
Show file tree
Hide file tree
Showing 20 changed files with 97 additions and 711 deletions.
13 changes: 12 additions & 1 deletion .config.vim
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ let g:Term_project_task=[
\'path' : s:root.'/src',
\'close' : 1,
\'type' : 'split',
\'key' : '\5',
\'key' : '\4',
\'end_script' : 'cclose|packadd termdebug|Termdebug ./bin/test_bin',
\},
\{
Expand All @@ -68,7 +68,18 @@ let g:Term_project_task=[
\'close' : 2,
\'end_script' : 'CocRestart',
\'type' : 'split',
\'key' : '\5',
\},
\{
\'name' : 'release',
\'command' : './release.sh',
\'mode' : 'quickfix',
\'path' : s:root.'/src',
\'close' : 2,
\'type' : 'split',
\'key' : '\6',
\'pre_script' : '',
\'end_script' : '',
\},
\]

52 changes: 52 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: build_and_release #名称随意
on:
push: #设置触发规则
branches:
- main
- master
tags:
- 'v*'
pull_request:
branches:
- main
- master

jobs:
build:
strategy:
matrix: # 会分开成两个任务分别执行
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code #这部分是为了从github自动clone代码
uses: actions/checkout@v4
with:
submodules: true

- name: Install ubuntu build tools #这部分是安装依赖
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y build-essential cmake
- name: Install macos build tools #这部分是安装依赖
if: matrix.os == 'macos-latest'
run: |
brew install cmake
- name: Create Release File
run: |
cd src
./release.sh
cp ./cppnet.tar.gz ../cppnet-${{ matrix.os }}-release.tar.gz
cd ..
- name: Release
uses: softprops/action-gh-release@v2 #具体参考https://github.com/softprops/action-gh-release
if: startsWith(github.ref, 'refs/tags/') # 设置为有tag才进行上传
with:
body: Auto Create Release
files: |
cppnet-${{ matrix.os }}-release.tar.gz
LICENSE
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ compile_commands.json
.cache
test_bin
.clangd
*.tar.gz
release
*.a
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 chenxuan

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- [x] 支持UDP协议(添加测试)
- [ ] 支持Http协议(彻底迁移 cppweb -> cppnet)
- [x] 支持 cicd 生成 lib包
- [ ] 添加 release pkg的demo 和cmakelist
- [x] 抽象出epoll层
- [x] 支持SSL
- [x] accept 改造
Expand Down
56 changes: 0 additions & 56 deletions src/cppnet/http/header/http_header.cpp

This file was deleted.

57 changes: 0 additions & 57 deletions src/cppnet/http/header/http_header.hpp

This file was deleted.

53 changes: 0 additions & 53 deletions src/cppnet/http/method/http_method.cpp

This file was deleted.

35 changes: 0 additions & 35 deletions src/cppnet/http/method/http_method.hpp

This file was deleted.

63 changes: 0 additions & 63 deletions src/cppnet/http/req/http_req.cpp

This file was deleted.

Loading

0 comments on commit 881243e

Please sign in to comment.