Skip to content

Commit

Permalink
fix windows
Browse files Browse the repository at this point in the history
  • Loading branch information
laves committed Oct 17, 2023
1 parent db86c5e commit 6361ae2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/dotnet-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,13 @@ jobs:
include:
- os: ubuntu-latest
platform: linux
nuget-path: ~/.nuget/NuGet/local-nuget
- os: windows-latest
platform: windows
nuget-path: ~/AppData/Roaming/NuGet/local-nuget
- os: macos-latest
platform: mac
nuget-path: ~/.nuget/NuGet/local-nuget

steps:
- uses: actions/checkout@v3
Expand All @@ -46,30 +49,30 @@ jobs:

# *********** REMOVE AFTER RELEASE **********************
- name: mkdir NuGet directory
run: mkdir -p ~/.nuget/NuGet/local-nuget
run: mkdir -p ${{ matrix.nuget-path }}

- name: Add local NuGet source
run: dotnet nuget add source ~/.nuget/NuGet/local-nuget
run: dotnet nuget add source local-nuget

- name: Pack Porcupine for local ref
run: dotnet pack -c Release
working-directory: resources/porcupine/binding/dotnet

- name: Copy Porcupine Nuget
run: cp ../../../resources/porcupine/binding/dotnet/Porcupine/bin/Release/*.nupkg ~/.nuget/NuGet/local-nuget
run: cp ../../resources/porcupine/binding/dotnet/Porcupine/bin/Release/*.nupkg ${{ matrix.nuget-path }}

- name: Pack Rhino for local ref
run: dotnet pack -c Release
working-directory: resources/rhino/binding/dotnet

- name: Copy Rhino Nuget
run: cp ../../../resources/rhino/binding/dotnet/Rhino/bin/Release/*.nupkg ~/.nuget/NuGet/local-nuget
run: cp ../../resources/rhino/binding/dotnet/Rhino/bin/Release/*.nupkg ${{ matrix.nuget-path }}

- name: Pack Picovoice for local ref
run: dotnet pack ../../../sdk/dotnet/Picovoice/Picovoice.csproj -c Release

- name: Copy Picovoice Nuget
run: cp ../../../sdk/dotnet/Picovoice/bin/Release/*.nupkg ~/.nuget/NuGet/local-nuget
run: cp ../../../sdk/dotnet/Picovoice/bin/Release/*.nupkg ${{ matrix.nuget-path }}
# ******************************************************

- name: Dotnet build micdemo
Expand Down
15 changes: 11 additions & 4 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
include:
- os: ubuntu-latest
nuget-path: ~/.nuget/NuGet/local-nuget
- os: macos-latest
nuget-path: ~/.nuget/NuGet/local-nuget
- os: windows-latest
nuget-path: ~/AppData/Roaming/NuGet/local-nuget
dotnet-version: [2.1.x, 3.0.x, 3.1.x, 5.0.x, 6.0.x]
include:
- dotnet-version: 2.1.x
Expand Down Expand Up @@ -67,24 +74,24 @@ jobs:

# *********** REMOVE AFTER RELEASE **********************
- name: mkdir NuGet directory
run: mkdir -p ~/.nuget/NuGet/local-nuget
run: mkdir -p ${{ matrix.nuget-path }}

- name: Add local NuGet source
run: dotnet nuget add source ~/.nuget/NuGet/local-nuget
run: dotnet nuget add source local-nuget

- name: Pack Porcupine for local ref
run: dotnet pack -c Release
working-directory: resources/porcupine/binding/dotnet

- name: Copy Porcupine Nuget
run: cp ../../resources/porcupine/binding/dotnet/Porcupine/bin/Release/*.nupkg ~/.nuget/NuGet/local-nuget
run: cp ../../resources/porcupine/binding/dotnet/Porcupine/bin/Release/*.nupkg ${{ matrix.nuget-path }}

- name: Pack Rhino for local ref
run: dotnet pack -c Release
working-directory: resources/rhino/binding/dotnet

- name: Copy Rhino Nuget
run: cp ../../resources/rhino/binding/dotnet/Rhino/bin/Release/*.nupkg ~/.nuget/NuGet/local-nuget
run: cp ../../resources/rhino/binding/dotnet/Rhino/bin/Release/*.nupkg ${{ matrix.nuget-path }}
# ******************************************************

- name: Build binding
Expand Down

0 comments on commit 6361ae2

Please sign in to comment.