Commit Graph

49 Commits

Author SHA1 Message Date
An Tao bf1fc03bff
Fix lint (#2181) 2024-10-09 18:20:29 +08:00
an-tao 5225bb3295 Update trantor and add docker actions 2024-10-09 16:45:19 +08:00
Martin Chang 6726df139d
fix codespell error (#2038) 2024-05-26 14:08:18 +08:00
Nitromelon 306df8a8fb
Install gcc in ci. (#2028) 2024-05-22 14:48:12 +08:00
Nitromelon 82c46f13f8
Fix CI on windows (#2025) 2024-05-10 14:11:28 +08:00
Ken Matsui 674137e89d
Use clang-format-17 (#1931) 2024-01-30 09:57:58 +08:00
Ken Matsui 359b63fa77
Introduce cpplint (#1929) 2024-01-30 00:47:28 +08:00
dependabot[bot] 34d32a1ef0
Bump github/codeql-action from 2 to 3 (#1894)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2 to 3.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-01 21:09:34 +08:00
Ken Matsui 1fd5c7ea5e
Remove macos-11 CI; not supported by Homebrew (#1891) 2023-12-28 22:29:45 +08:00
Ken Matsui 01ad18d2d5
Add CI tests with more compilers (#1889) 2023-12-28 15:59:29 +08:00
Christian Clauss e76bf08eb2
GitHub Action to find typos in the codebase using codespell (#1876)
GitHub Action to find typos in the codebase using codespell
https://github.com/codespell-project/codespell
2023-12-09 13:48:24 +08:00
Greisberger Christophe 8026790e1a
Feature: Integrate spdlog as logging backend (#1771) 2023-12-04 23:42:35 +08:00
dependabot[bot] 1efe89a719
Bump actions/checkout from 3 to 4 (#1801)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-01 20:37:09 +08:00
Ken Matsui 5df9b48998
main -> master in C++ CI 2023-08-28 02:59:39 -07:00
Ken Matsui 8d4c17702a
Use ninja to build faster (#1755) 2023-08-28 17:59:14 +08:00
dependabot[bot] 9337571e1a
Bump actions/checkout from 2 to 3 (#1760)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-28 02:58:11 -07:00
Ken Matsui 40aa034595
Add dependabot.yml for GH actions (#1756) 2023-08-28 17:17:08 +08:00
Ken Matsui de4c811772
Set concurrency for CodeQL (#1759) 2023-08-28 02:12:34 -07:00
Ken Matsui 3ecb8b4917
Split macOS and Ubuntu CIs for readability (#1754) 2023-08-28 17:07:52 +08:00
Ken Matsui f761c54aa8
Extract format action into distinct job (#1751) 2023-08-28 13:50:22 +08:00
Ken Matsui bc4d740b0c
Set concurrency to prevent blocking CI queue (#1753) 2023-08-27 20:53:36 +08:00
Nikolay Mitev 17c80508c0 Drop cpp14 build (#1740)
* Drop C++14 Support

* Update README.md

* Remove drogon::optional in favor of std::optional

* Remove drogon::filesystem in favor of std::filesystem

* Remove boost::string_view and pre-c++17 hacks

* Remove boost::any

* Remove the string_view.h and the any.h

* Remove boost lib

* Update .clang-format and ci

Co-authored-by: Omar Mohamed <omar@omar-laptop.lan>
Co-authored-by: Ken Matsui <26405363+ken-matsui@users.noreply.github.com>
Co-authored-by: An Tao <antao2002@gmail.com>
Co-authored-by: albaropereyra22 <141711575+albaropereyra22@users.noreply.github.com>
Co-authored-by: Yoshihiro Hokazono <47231909+hokacci@users.noreply.github.com>
Co-authored-by: Omar Mohamed Khallaf <51155980+omarmohamedkh@users.noreply.github.com>
2023-08-23 11:49:55 +08:00
Ken Matsui 4ad68db5e2
Address warnings on macOS CI (#1722) 2023-08-12 13:08:32 +08:00
An Tao 56f620717e
Fix CI in MacOS (#1719) 2023-08-11 00:32:57 +08:00
Jorge 3c82dcb491
Add CodeQL workflow (#1664) 2023-07-03 17:19:25 +08:00
An Tao d321bd4fc1
Fix a conan issue in github actions (#1517) 2023-02-27 14:30:38 +08:00
Ken Matsui 5373e51f92
Remove redundancies from the CMake action (#1322) 2022-07-26 12:16:22 +08:00
LE GARREC Vincent b8f44aec2e
Rename BUILD_TRANTOR_SHARED to BUILD_SHARED_LIBS (#1299) 2022-06-29 17:29:20 +08:00
An Tao dd63a72dab
Update issue templates 2022-03-01 13:58:37 +08:00
autoantwort bfb25a3765
Accept system lib for uuid on macOS (#1152) 2022-01-09 12:04:38 +08:00
Ichiro bc4e8faec2
Fix lint (#1134) 2021-12-22 16:26:52 +08:00
Martin Chang 113d23494a
Fix CI to actually build in C++14 (#1100) 2021-12-01 21:55:38 +08:00
an-tao f49d71faba Modify FUNDING.yml 2021-09-25 11:10:16 +08:00
Martin Chang 56cb305ae3
Support custom MIME types and extensions (#1024)
* Drogon now support custom extension and MIME types
* Added contentTypeString() to retrieve the string version of content type (in case the content type is not in the ContentType enum)
* setCustomContentTypeAndString() also accepts MIME as input (instead of the full content-type header string),
* Remove webContentTypeToString()
* Added app().registerCustomExtensionMime()
* Added support to load custom extension from JSON config
2021-09-24 22:51:09 +08:00
An Tao 6a3f72f2e5
Fix 'build.sh -tshared' (#882) 2021-06-04 18:45:21 +08:00
Martin Chang 0b5075bfa9
Drogon test framework (#869) 2021-05-27 20:09:57 +08:00
An Tao ab5eb955b4
Fix unused parameter errors/warnings (#805) 2021-04-15 23:26:58 +08:00
Bertrand Darbon 54727a5dbe
Add exports macro to allow Shared Library with hidden symbols by default (e.g. Windows) (#745)
Co-authored-by: an-tao <antao2002@gmail.com>
2021-04-09 10:17:28 +08:00
urlordjames 260c9a547f
set make job count to number of threads in GitHub Actions workflow (#788) 2021-04-06 22:02:56 +08:00
An Tao 6d9aa3b44c
Add redis support (#719) 2021-03-13 19:13:54 +08:00
Martin Chang 4210dbce07
Revert OS X CI fix (#721) 2021-02-17 09:58:33 +08:00
Martin Chang a2142dd93e
Coroutine support (#693)
* app().registerHttpHandler() accepts coroutine as handlers
* HttpController can use coroutine as handlers'
* Http request handlers with coroutine catches exception instead of crashing the entire app
* DbClient now has execSqlCoro that is awaitable
* DbClient now has newTransactionCoro that is awaitable
* HttpClient have awaitable sendRequestCoro
* WebSocketClient have awaitable connectToServerCoro
* WebSocketClient have setAsyncMessageHandler and setAsyncConnectionClosedHandler
* drogon::AsyncTask and drogon::Task<T> as our corutine types
* Related tests
* Misc

Future work
* Coroutine for WebSocket server
* Known issues

co_future() and sync_wait may crash. It looks like GCC bug but I'm not sure.
Workarround: Make an coroutine of AsyncTask. Then launch said coroutine.
Not sure why wrapping the exact same thing in function crashes things.

Co-authored-by: an-tao <antao2002@gmail.com>
2021-02-06 17:05:58 +08:00
Martin Chang a060351f7a
Fix CI fail on OS X (#699) 2021-02-03 13:10:08 +08:00
An Tao 66fbb33956
Add format check to actions (#668) 2020-12-26 14:39:38 +08:00
An Tao 566297d4df
Create cmake.yml (#653) 2020-12-13 18:12:30 +08:00
antao c89835cca2 Create FUNDING.yml 2019-11-15 12:35:36 +08:00
an-tao e341488338 Restore .github folder 2019-03-20 23:26:58 +08:00
zhangjunjun a580f89c8b Add query test in db_test.cc for orm_lib 2019-03-20 21:56:56 +08:00
an-tao 2f6448e6b2 Update issue templates 2018-11-16 18:29:27 +08:00