This repository has been archived by the owner on Feb 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
75 lines (61 loc) · 2.42 KB
/
ci.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
68
69
70
71
72
73
74
75
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
Android:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup msbuild
uses: microsoft/setup-msbuild@v1
- name: Restore NuGet packages
run: msbuild -t:restore
working-directory: App1/App1.Android
- name: msbuild
# TODO: Enable `-warnAsError` flag once package conflicts are resolved.
run: msbuild
working-directory: App1/App1.Android
iOS:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
# Fixes error when using newer NuGet packages that require a minimum version of Xcode
- name: Use Xcode 14.0.1
uses: maxim-lobanov/setup-xamarin@v1
with:
xcode-version: 14.0.1
# The following two workaround steps can be removed when the following github issue is resolved: https://github.com/actions/virtual-environments/issues/5768
- name: Restore Workaround Remove
run: rm -rf ~/.config/NuGet/NuGet.Config
shell: bash
- name: Restore Workaround List
run: dotnet nuget list source
shell: bash
- name: Restore NuGet packages
run: msbuild -t:restore
working-directory: App1/App1.iOS
- name: msbuild
# TODO: Enable `-warnAsError` flag once package conflicts are resolved.
run: msbuild
working-directory: App1/App1.iOS
Windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup msbuild
uses: microsoft/setup-msbuild@v1
- name: "Update windows SDK"
uses: fbactions/setup-winsdk@v1
with:
winsdk-build-version: 18362
- name: Restore NuGet packages
run: msbuild -t:restore
working-directory: App1/App1.UWP
- name: msbuild
# TODO: Enable `-warnAsError` flag once XF is updated, and warnings aren't shown:
# https://developercommunity.visualstudio.com/content/problem/1251681/xamarinforms-application-warning.html
run: msbuild
working-directory: App1/App1.UWP