-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (31 loc) · 977 Bytes
/
android-build.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
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: HeartRateDemo Android Build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
WORKING_DIRECTORY: project
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Restore Dependencies
working-directory: project
run: dotnet restore
- name: Build Unit Tests
working-directory: project/HeartRateDemo.Tests
run: dotnet build -c Debug
- name: Perform Unit Testing
working-directory: project/HeartRateDemo.Tests
run: dotnet test
- name: Build for Android
working-directory: project/HeartRateDemo
run: dotnet publish -f net7.0-android33.0 -c Debug