-
Notifications
You must be signed in to change notification settings - Fork 7
93 lines (76 loc) · 3 KB
/
release.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
on:
release:
types: [created]
name: Create Release
jobs:
build:
strategy:
matrix:
configuration: [Release]
# platform: [x86, x64]
runs-on: windows-latest
env:
Solution_Name: MqttClientPlugin.sln
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
# Install the .NET Core workload
#- name: Install .NET Core
# uses: actions/setup-dotnet@v1
# with:
# dotnet-version: 3.1.101
- name: Restore NuGet Packages
run: nuget restore $env:Solution_Name
#- name: Find MSBuild path
# run: dir HKLM:\SOFTWARE\Microsoft\MSBuild\ToolsVersions\
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
- name: Setup MSBuild.exe
uses: microsoft/[email protected]
# Execute all unit tests in the solution
#- name: Execute unit tests
# run: dotnet test
# Restore the application to populate the obj folder with RuntimeIdentifiers
- name: Restore the Plugin folder x86
run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration /p:Platform=x86
env:
Configuration: ${{ matrix.configuration }}
# Platform: ${{ matrix.platform }}
# Create the app package by building and packaging the Windows Application Packaging project
- name: Build the Plugin x86
run: msbuild $env:Solution_Name /t:Build /p:Configuration=$env:Configuration /p:Platform=x86
env:
Configuration: ${{ matrix.configuration }}
# Platform: ${{ matrix.platform }}
# Restore the application to populate the obj folder with RuntimeIdentifiers
- name: Restore the Plugin folder x64
run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration /p:Platform=x64
env:
Configuration: ${{ matrix.configuration }}
# Platform: ${{ matrix.platform }}
# Create the app package by building and packaging the Windows Application Packaging project
- name: Build the Plugin x64
run: msbuild $env:Solution_Name /t:Build /p:Configuration=$env:Configuration /p:Platform=x64
env:
Configuration: ${{ matrix.configuration }}
# Platform: ${{ matrix.platform }}
- name: Create RmSkin
run: BuildTools\Build-RainmeterSkin.ps1 -TargetPath "bin\Release\x64\MqttClient.dll" -PlatformName "Any CPU" -Skin "Hello World" -SolutionDir ".\\"
shell: powershell
- name: dir bin
run: dir bin
shell: powershell
- name: Upload output dlls
uses: actions/upload-artifact@v2
with:
name: MqttClientPlugin
path: bin\Release\*\*.dll
- name: Upload skin to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: bin\MqttClient_*.rmskin
tag: ${{ github.ref }}
overwrite: true
file_glob: true