Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use a newer .net tool chain #11

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 13 additions & 16 deletions .github/workflows/main.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,56 +129,53 @@ jobs:
needs: build
runs-on: ubuntu-latest


steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive

- name: Install apt packages
uses: awalsh128/[email protected]
with:
packages: mono-mcs nuget

- name: Download Linux aprilasr
uses: actions/download-artifact@master
with:
name: libaprilasr.so
path: ${{github.workspace}}/bindings/csharp/nuget/build/lib/linux-x64/
path: ${{github.workspace}}/bindings/csharp/AprilAsr/build/lib/linux-x64/

- name: Download Linux onnxruntime
uses: actions/download-artifact@master
with:
name: libonnxruntime.so
path: ${{github.workspace}}/bindings/csharp/nuget/build/lib/linux-x64/
path: ${{github.workspace}}/bindings/csharp/AprilAsr/build/lib/linux-x64/

- name: Download Windows aprilasr
uses: actions/download-artifact@master
with:
name: libaprilasr.dll
path: ${{github.workspace}}/bindings/csharp/nuget/build/lib/win-x64/
path: ${{github.workspace}}/bindings/csharp/AprilAsr/build/lib/win-x64/

- name: Download Windows onnxruntime
uses: actions/download-artifact@master
with:
name: onnxruntime.dll
path: ${{github.workspace}}/bindings/csharp/nuget/build/lib/win-x64/
path: ${{github.workspace}}/bindings/csharp/AprilAsr/build/lib/win-x64/

- name: Display structure of downloaded files
run: ls -R
working-directory: ${{github.workspace}}/bindings/csharp/nuget/build/lib
working-directory: ${{github.workspace}}/bindings/csharp/AprilAsr/build/lib

- name: Setup .NET SDK
uses: actions/setup-dotnet@v1

- name: Build C# bindings
working-directory: ${{github.workspace}}/bindings/csharp/nuget
run: mcs -out:lib/netstandard2.0/AprilAsr.dll -target:library src/*.cs
working-directory: ${{github.workspace}}/bindings/csharp/AprilAsr
run: dotnet build -c Release

- name: Run nuget pack
working-directory: ${{github.workspace}}/bindings/csharp/nuget
run: mkdir out && nuget pack -Verbosity detailed -OutputDirectory out
working-directory: ${{github.workspace}}/bindings/csharp/AprilAsr
run: mkdir out && dotnet pack -c Release --no-build --output out

- name: Upload nupkg
uses: actions/[email protected]
with:
name: nupkg
path: ${{github.workspace}}/bindings/csharp/nuget/out
path: ${{github.workspace}}/bindings/csharp/AprilAsr/out
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
*.dll
*.exp
*.exe
*.nupkg
bindings/csharp/AprilAsrDemo/bin
bindings/csharp/AprilAsrDemo/obj

bindings/python/build
bindings/python/dist
april-docs/src/csharp/html
Expand Down
2 changes: 1 addition & 1 deletion april-docs/src/csharp/Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,7 @@ WARN_LOGFILE =
# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING
# Note: If this tag is empty the current directory is searched.

INPUT = ../../../bindings/csharp/nuget/src
INPUT = ../../../bindings/csharp/AprilAsr

# This tag can be used to specify the character encoding of the source files
# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
Expand Down
Loading