Skip to content

.Net6

.Net6 #184

Workflow file for this run

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/setup-msbuild@v1.0.2
- 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@v1
with:
name: NuGet Packages
path: artifacts/NuGet/Release