-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (54 loc) · 2.45 KB
/
dotnet-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
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
name: .NET projects building
# Eventually this script should run after the PR is created and commit is sent.
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
# https://github.com/mono/mono/issues/20250
#- name: Set default Xamarin SDK versions
# run: |
# $VM_ASSETS/select-xamarin-sdk-v2.sh --mono=6.12 --android=11.3
#- name: Set default Xcode 12.3
# run: |
# XCODE_ROOT=/Applications/Xcode_12.3.0.app
# echo "MD_APPLE_SDK_ROOT=$XCODE_ROOT" >> $GITHUB_ENV
# sudo xcode-select -s $XCODE_ROOT
#- name: Add msbuild to PATH
# uses: microsoft/setup-msbuild@v1.0.2
# with:
# vs-version: '[16.9,16.10)'
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
# We need to use NuGet because Xamarin doesn't like dotnet restore
- name: Setup NuGet
uses: NuGet/setup-nuget@v1.0.6
with:
nuget-api-key: ${{ secrets.NuGetAPIKey }}
nuget-version: '5.x'
- name: Run NuGet Restore
run: nuget restore Wirtualnik.NET/Wirtualnik.sln
- name: Build Wirtualnik.Data
run: dotnet build Wirtualnik.NET/Wirtualnik.Data/Wirtualnik.Data.csproj --configuration Release --no-restore
- name: Build Wirtualnik.Service
run: dotnet build -restore Wirtualnik.NET/Wirtualnik.Service/Wirtualnik.Service.csproj --configuration Release --no-restore
- name: Build Wirtualnik.Server
run: dotnet build -restore Wirtualnik.NET/Wirtualnik.Server/Wirtualnik.Server.csproj --configuration Release --no-restore
- name: Build Wirtualnik.Shared
run: dotnet build -restore Wirtualnik.NET/Wirtualnik.Shared/Wirtualnik.Shared.csproj --configuration Release --no-restore
#- name: Build Wirtualnik.XF
# run: msbuild -restore Wirtualnik.NET/Wirtualnik.XF/Wirtualnik.XF.csproj
#- name: Wirtualnik.XF.Android
# run: msbuild -restore Wirtualnik.NET/Wirtualnik.XF.Android/Wirtualnik.XF.Android.csproj
# We don't have macOS machine locally, so building iOS app is pointless.
# - name: Build Wirtualnik.XF.iOS
# run: msbuild -restore Wirtualnik.NET/Wirtualnik.XF.iOS/Wirtualnik.XF.iOS.csproj
# We don't have tests for now.
# - name: Test run: dotnet test --no-build --verbosity normal