From 120bdd3fb1d805009079c4129cbbf409b0a13b1b Mon Sep 17 00:00:00 2001 From: amass <168062547@qq.com> Date: Sun, 30 Jun 2024 14:52:55 +0800 Subject: [PATCH] Initial commit. --- .clang-format | 17 +++++++++++++ .gitea/workflows/deploy.yaml | 13 ++++++++++ .gitignore | 46 ++++++++++++++++++++++++++++++++++++ CMakeLists.txt | 7 ++++++ main.cpp | 6 +++++ 5 files changed, 89 insertions(+) create mode 100644 .clang-format create mode 100644 .gitea/workflows/deploy.yaml create mode 100644 .gitignore create mode 100644 CMakeLists.txt create mode 100644 main.cpp diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..f3960e2 --- /dev/null +++ b/.clang-format @@ -0,0 +1,17 @@ +BasedOnStyle: LLVM + +ObjCBlockIndentWidth: 4 +IndentWidth: 4 +TabWidth: 4 +AccessModifierOffset: -4 +ColumnLimit: 120 + +#模板声明后换行 +AlwaysBreakTemplateDeclarations: true + +# 是否允许短if单行 If true, if (a) return; 可以放到同一行 +AllowShortIfStatementsOnASingleLine: true + +#短句 while (true) continue; 能被放到单行。 +AllowShortLoopsOnASingleLine: true +AllowShortFunctionsOnASingleLine: false \ No newline at end of file diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml new file mode 100644 index 0000000..bc77d33 --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -0,0 +1,13 @@ +name: Deploy Applications +run-name: ${{ github.actor }} is building Bilby... +on: [push] +jobs: + Build: + runs-on: [ubuntu-latest, ubuntu-24.04] + container: + image: frp-by1.wwvvww.cn:45288/ubuntu_dev:24.04 + steps: + - name: Check out repository code + uses: actions/checkout@v4 + - run: cmake --build build --target all + - run: build/Bilby \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a407a4f --- /dev/null +++ b/.gitignore @@ -0,0 +1,46 @@ +# C++ objects and libs +*.slo +*.lo +*.o +*.a +*.la +*.lai +*.so +*.dll +*.dylib + +# Qt-es +object_script.*.Release +object_script.*.Debug +*_plugin_import.cpp +/.qmake.cache +/.qmake.stash +*.pro.user +*.pro.user.* +*.qbs.user +*.qbs.user.* +*.moc +moc_*.cpp +moc_*.h +qrc_*.cpp +ui_*.h +*.qmlc +*.jsc +*build-* + +# Qt unit tests +target_wrapper.* + +# QtCreator +*.autosave + +# QtCreator Qml +*.qmlproject.user +*.qmlproject.user.* + +# QtCreator CMake +CMakeLists.txt.user* +build +logs +Server/logs +Server/conf/cert \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..7d53e7c --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,7 @@ +cmake_minimum_required(VERSION 3.17) + +project(Bilby) + +add_executable(Bilby + main.cpp +) \ No newline at end of file diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..6cd0268 --- /dev/null +++ b/main.cpp @@ -0,0 +1,6 @@ +#include + +int main(int argc, char const *argv[]) { + std::cout << "hello, bilby." << std::endl; + return 0; +}