-
Notifications
You must be signed in to change notification settings - Fork 10
63 lines (51 loc) · 1.48 KB
/
winformdesigner.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Windows Form Designer CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
timeout-minutes: 10
strategy:
matrix:
platform: [x64]
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: nuget/setup-nuget@v1
- name: Install .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- uses: actions/cache@v4
id: cache
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
- uses: actions/cache@v4
id: cache2
with:
path: .\packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.config') }}
- name: Restore
shell: pwsh
run: |
dotnet restore PowerShellTools.sln
nuget restore PowerShellTools.sln
- name: Build Ironman Host
shell: pwsh
run: |
Push-Location IronmanPowerShellHost
dotnet publish -f net472 -c Release .\IronmanPowerShellHost.csproj
Pop-Location
- name: Build
shell: pwsh
run: |
$Version = Get-Content .\WinFormDesigner\version.txt -Raw
msbuild PowerShellTools.sln -t:rebuild -p:Configuration=Release -p:Platform=${{ matrix.platform }} -p:Version=$Version