diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..8cdcf4c --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +name: CI + +on: [ push, pull_request ] + +jobs: + build: + + name: ${{ matrix.os }} (${{ matrix.configuration }}) + runs-on: ${{ matrix.os }} + + strategy: + matrix: + configuration: [ Debug, Release ] + os: [ macos-latest, ubuntu-latest, windows-latest ] + + steps: + - name: Checkout Code + uses: actions/checkout@v2 + + - name: Configure cmake + run: cmake -B${{github.workspace}}/examples/build -DCMAKE_BUILD_TYPE=${{ matrix.configuration }} + + - name: Build with ${{ matrix.compiler }} + run: cmake --build ${{github.workspace}}/examples/build --config ${{ matrix.configuration }} \ No newline at end of file diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml new file mode 100644 index 0000000..fd179a3 --- /dev/null +++ b/.github/workflows/clang-format.yml @@ -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 \ No newline at end of file diff --git a/examples/client/basic_client.vcxproj b/examples/client/basic_client.vcxproj deleted file mode 100644 index 7731ed7..0000000 --- a/examples/client/basic_client.vcxproj +++ /dev/null @@ -1,140 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 15.0 - {576FED72-213E-4695-BAB1-7B19AD472B21} - basicclient - 10.0 - - - - Application - true - v142 - MultiByte - - - Application - false - v142 - true - MultiByte - - - Application - true - v142 - MultiByte - - - Application - false - v142 - true - MultiByte - - - - - - - - - - - - - - - - - - - - - ..\..\include;..\..\thirdparty\msgpack-c\include;..\..\thirdparty\asio;$(IncludePath) - - - ..\..\include;..\..\third\msgpack\include;$(IncludePath) - - - ..\..\include;..\..\third\msgpack\include;$(IncludePath) - - - ..\..\include;..\..\third\msgpack\include;$(IncludePath) - - - - Level3 - Disabled - true - true - 4996 - - - - - Level3 - Disabled - true - true - 4996 - MSGPACK_NO_BOOST;%(PreprocessorDefinitions) - - - - - Level3 - MaxSpeed - true - true - true - true - 4996 - - - true - true - - - - - Level3 - MaxSpeed - true - true - true - true - 4996 - %(PreprocessorDefinitions) - - - true - true - - - - - - - - - \ No newline at end of file diff --git a/examples/client/basic_client.vcxproj.filters b/examples/client/basic_client.vcxproj.filters deleted file mode 100644 index 048f37d..0000000 --- a/examples/client/basic_client.vcxproj.filters +++ /dev/null @@ -1,22 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hh;hpp;hxx;hm;inl;inc;ipp;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms - - - - - 源文件 - - - \ No newline at end of file diff --git a/examples/server/basic_server.vcxproj b/examples/server/basic_server.vcxproj deleted file mode 100644 index 6a4c8f1..0000000 --- a/examples/server/basic_server.vcxproj +++ /dev/null @@ -1,144 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 15.0 - {BEF1E094-0FE7-4309-89AB-DC7F0A75E687} - basicserver - 10.0.18362.0 - - - - Application - true - v141 - MultiByte - - - Application - false - v141 - true - MultiByte - - - Application - true - v142 - MultiByte - - - Application - false - v142 - true - MultiByte - - - - - - - - - - - - - - - - - - - - - ..\..\include;..\..\third\msgpack\include;$(IncludePath) - - - ..\..\include;..\..\third\msgpack\include;$(IncludePath) - - - ..\..\include;..\..\thirdparty\msgpack-c\include;..\..\thirdparty\asio;$(IncludePath) - $(LibraryPath) - - - ..\..\include;..\..\third\msgpack\include;$(IncludePath) - - - - Level3 - Disabled - true - true - 4996 - - - - - Level3 - Disabled - true - true - 4996 - MSGPACK_NO_BOOST;%(PreprocessorDefinitions) - - - - - Level3 - MaxSpeed - true - true - true - true - 4996 - - - true - true - - - - - Level3 - MaxSpeed - true - true - true - true - 4996 - %(PreprocessorDefinitions) - - - true - true - - - - - - - - - - - - \ No newline at end of file diff --git a/examples/server/basic_server.vcxproj.filters b/examples/server/basic_server.vcxproj.filters deleted file mode 100644 index b0a7abc..0000000 --- a/examples/server/basic_server.vcxproj.filters +++ /dev/null @@ -1,27 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hh;hpp;hxx;hm;inl;inc;ipp;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms - - - - - 源文件 - - - - - 头文件 - - - \ No newline at end of file