diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0c630c1..23578da 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -136,3 +136,37 @@ jobs: - name: test run: cmake --build build --target test + + nuget: + strategy: + matrix: + os: [ubuntu-latest] + runs-on: ${{ matrix.os }} + steps: + - name: Checkout + uses: actions/checkout@v1 + + - name: Setup .NET Core SDK + uses: actions/setup-dotnet@v3.0.3 + + - name: Setup Python + uses: actions/setup-python@v4.4.0 + + - name: install dependencies + if: ${{matrix.os == 'ubuntu-latest' }} + run: | + sudo apt install build-essential python3-pip dpkg-dev + sudo apt install build-essential python3-pip dpkg-dev + + - run: pip install -r requirements.txt + + - name: configure + run: cmake -S. -Bbuild -DBUILD_DOTNET=ON + + - name: build + run: cmake --build build + + - name: upload Nuget + run: | + cd ./build/dotnet/packages + dotnet nuget push lebai.1.0.*.nupkg --api-key ${{ secrets.NUGET_KEY }} --source https://api.nuget.org/v3/index.json \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt old mode 100755 new mode 100644 index 77a3f2c..acca913 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,7 +7,8 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") option(CMAKE_EXPORT_COMPILE_COMMANDS "Export compile command" TRUE) -project(lebai VERSION 1.0.10 LANGUAGES CXX) + +project(lebai VERSION 1.0.11 LANGUAGES CXX) set(PROJECT_NAMESPACE lebai) message(STATUS "${PROJECT_NAME} version: ${PROJECT_VERSION}") # message(STATUS "major: ${PROJECT_VERSION_MAJOR}") diff --git a/Doxyfile b/Doxyfile index f976318..262aa39 100644 --- a/Doxyfile +++ b/Doxyfile @@ -38,7 +38,7 @@ PROJECT_NAME = "lebai sdk" # could be handy for archiving the generated documentation or if some version # control system is used. -PROJECT_NUMBER = 1.0.10 +PROJECT_NUMBER = 1.0.11 # Using the PROJECT_BRIEF tag one can provide an optional one line description # for a project that appears at the top of each page and should give viewer a