Update publish_nuget.yml #202
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
- release/* | |
paths-ignore: | |
- 'docs/**' | |
pull_request: | |
branches: | |
- main | |
paths-ignore: | |
- 'docs/**' | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Clone NmeaParser | |
uses: actions/checkout@v1 | |
- name: Setup Visual Studio Command Prompt | |
uses: microsoft/[email protected] | |
- name: Install Android SDK | |
run: | | |
echo y>license_accepter.txt | |
echo y>>license_accepter.txt | |
echo y>>license_accepter.txt | |
echo y>>license_accepter.txt | |
echo y>>license_accepter.txt | |
echo y>>license_accepter.txt | |
echo y>>license_accepter.txt | |
echo y>>license_accepter.txt | |
cmd /c '"%ProgramFiles(x86)%\Android\android-sdk\cmdline-tools\7.0\bin\sdkmanager.bat" --licenses < license_accepter.txt' | |
cmd /c '"%ProgramFiles(x86)%\Android\android-sdk\cmdline-tools\7.0\bin\sdkmanager.bat" --install "platforms;android-24"' | |
cmd /c '"%ProgramFiles(x86)%\Android\android-sdk\cmdline-tools\7.0\bin\sdkmanager.bat" --install "platforms;android-21"' | |
- name: Build | |
run: | | |
msbuild /restore /t:Build src/NmeaParser.sln /p:Configuration=Release | |
- name: Tests | |
run: | | |
dotnet test src/UnitTests/NmeaParser.Tests.NET/bin/Release/net6.0/NmeaParser.Tests.Net.dll -v normal | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: NuGet Packages | |
path: artifacts/NuGet/Release |