-
Notifications
You must be signed in to change notification settings - Fork 26
49 lines (37 loc) · 1.2 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
on: [push, pull_request]
name: Continuous Integration
jobs:
build:
name: Build
runs-on: windows-2019
timeout-minutes: 60
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Retrieve Commit Hash
uses: pr-mpt/actions-commit-hash@v2
id: commit-hash
- name: Setup MSBuild
uses: microsoft/[email protected]
- name: Setup NuGet
uses: nuget/[email protected]
- name: Install .NET 6.0
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Install .NET iOS Workload
run: dotnet workload install ios
- name: Build .NET Core Projects
run: dotnet build managed-midi.Core.slnf
- name: Build .NET Framework Projects
run: msbuild managed-midi.Windows.slnf -restore -p:RestorePackagesConfig=true
- name: Build Xamarin Projects
run: msbuild managed-midi.Xamarin.slnf -restore
- name: Pack
run: nuget pack -Version 1.0-${{ steps.commit-hash.outputs.short }}
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
path: ./*.nupkg