Skip to content

Commit

Permalink
nuget publish (#19)
Browse files Browse the repository at this point in the history
* fix:bugfix

* fix:bugfix

* Update build.yml

* Update build.yml

* Update build.yml

* Update build.yml

* Update build.yml

* Update build.yml

* Update build.yml

* Update build.yml

* Update build.yml

* Update build.yml

* update ci
  • Loading branch information
Cosmoflips authored Dec 28, 2022
1 parent 58ae72d commit 829aa1f
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 2 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion CMakeLists.txt
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down
2 changes: 1 addition & 1 deletion Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 829aa1f

Please sign in to comment.