This repository has been archived by the owner on Dec 19, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 44
67 lines (51 loc) · 1.83 KB
/
mobile.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
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Xamarin
on:
push:
branches:
- "main"
pull_request:
branches:
- "*"
jobs:
Build_Android:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Remove API Key Errors
run: '(get-content .\Source\FaceOff\Constants\CognitiveServicesConstants.cs) | Foreach-Object {$_ -replace "#error","//#error"} | set-content .\Source\FaceOff\Constants\CognitiveServicesConstants.cs'
shell: powershell
- name: Setup .NET 3.1 + .NET v6.0
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
3.1.x
- name: Restore NuGet
run: |
nuget restore ./Source
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.1
- name: Build Android App
run: |
msbuild ./Source/FaceOff.Droid/FaceOff.Droid.csproj /verbosity:normal /p:Configuration=Release
Build_UITest:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Remove API Key Errors
run: '(get-content .\Source\FaceOff\Constants\CognitiveServicesConstants.cs) | Foreach-Object {$_ -replace "#error","//#error"} | set-content .\Source\FaceOff\Constants\CognitiveServicesConstants.cs'
shell: powershell
- name: Setup .NET 3.1 + .NET v6.0
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
3.1.x
- name: Restore NuGet
run: |
nuget restore ./Source
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.1
- name: Build UI Test App
run: |
msbuild ./Source/FaceOff.UITests/FaceOff.UITests.csproj /verbosity:normal /p:Configuration=Debug