-
Notifications
You must be signed in to change notification settings - Fork 118
94 lines (74 loc) · 2.59 KB
/
dev.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name: dev-build
#this drops to github with beta tag?
on:
push:
branches: [ dev]
pull_request:
branches: [ dev, main ]
workflow_dispatch:
jobs:
build:
name: Build Comet-Nuget
env:
NUPKG_MAJOR: 0.2
BASE: 334
runs-on: windows-2022
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/setup-java@v2
with:
distribution: 'zulu' # See 'Supported distributions' for available options
java-version: '11'
- name: install .NET
shell: pwsh
run: |
$ProgressPreference = 'SilentlyContinue'
Invoke-WebRequest -Uri "https://dot.net/v1/dotnet-install.ps1" -OutFile dotnet-install.ps1
& .\dotnet-install.ps1 -InstallDir "$env:ProgramFiles\dotnet\" -Verbose -Channel STS
& dotnet --list-sdks
# - name: Install Visual Studio Preview
# shell: pwsh
# run: powershell .\build\install-vs.ps1
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.1
with:
vs-prerelease: true
- name: Install Maui Workload
shell: pwsh
run: |
& dotnet workload install maui `
--skip-sign-check `
- name: Restore Comet-Nuget.sln
run: msbuild /r build/Comet-Nuget.sln
- name: Build Comet-Nuget.sln
run: MSBuild build/Comet-Nuget.sln
- name: Nuget Pack step
shell: bash
run: |
MINOR_VERSION=$(( $BASE + $GITHUB_RUN_NUMBER ))
VERSION=0.3.$MINOR_VERSION-alpha
echo "PACKAGE VERSION: $VERSION"
nuget pack Comet.nuspec -version $VERSION -Symbols -SymbolPackageFormat snupkg
- name: Nuget Pack Template step
shell: bash
run: |
MINOR_VERSION=$(( $BASE + $GITHUB_RUN_NUMBER ))
VERSION=0.3.$MINOR_VERSION-alpha
echo "PACKAGE VERSION: $VERSION"
nuget pack "templates\comet-templates.nuspec" -version $VERSION
- uses: actions/upload-artifact@v2
name: Upload Nuget Artifact
with:
name: nuget-artifact.${{env.GITHUB_RUN_NUMBER}}
path: |
**\*.nupkg
**\*.snupkg
**\*.symbols.nupkg
# - name: Restore Comet-Tests.sln
# run: nuget restore build/Comet-Tests.sln
# - name: Build Tests Project
# run: msbuild tests/Comet.Tests/Comet.Tests.csproj /p:Configuration=Release
# - name: Run Tests Project
# run: dotnet test tests/Comet.Tests/Comet.Tests.csproj