forked from nkast/MonoGame
-
-
Notifications
You must be signed in to change notification settings - Fork 10
71 lines (57 loc) · 2.15 KB
/
dotnet.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
# 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: .NET
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
# - name: Setup .NET
# uses: actions/setup-dotnet@v4
# with:
# dotnet-version: 8.0.x
# - name: Cache .NET workloads
# uses: actions/cache@v4
# with:
# path: ~\AppData\Local\Microsoft\dotnet\workloads
# key: ${{ runner.os }}-dotnet-workloads-${{ hashFiles('**/*.csproj') }}
# restore-keys: |
# ${{ runner.os }}-dotnet-workloads-
# - name: Install workloads
# run: dotnet workload install android ios
- name: Cache .NET nuget packages
uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Restore dependencies
run: dotnet restore KNI.sln
# - name: Build
# run: dotnet build KNI.sln --no-restore --property:WarningLevel=1
- name: Build Ref
run: dotnet build Platforms\Xna.Framework.Ref.csproj --property:WarningLevel=1
- name: Build BlazorGL
run: dotnet build Xna.Platform.BlazorGL.sln --property:WarningLevel=1
- name: Build WindowsDX11
run: dotnet build Xna.Platform.WinFormsDX11.sln --property:WarningLevel=1
- name: Build DesktopGL
run: dotnet build Xna.Platform.SDL2GL.sln --property:WarningLevel=1
- name: Build iOS
run: dotnet build Xna.Platform.iOSGL.sln --property:WarningLevel=1
- name: Build Android
run: dotnet build Xna.Platform.AndroidGL.sln --property:WarningLevel=1
# - name: Build Cardboard
# run: dotnet build Xna.Platform.CardboardGL.sln --property:WarningLevel=1
# - name: Build Windows UAP10
# run: dotnet msbuild Xna.Platform.UAPDX11.sln --property:WarningLevel=1
# - name: Test
# run: dotnet test --no-build --verbosity normal