-
-
Notifications
You must be signed in to change notification settings - Fork 89
54 lines (45 loc) · 1.5 KB
/
CIBuild.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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