This repository was archived by the owner on Jul 14, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
60 lines (45 loc) · 1.29 KB
/
Copy pathmain.yml
File metadata and controls
60 lines (45 loc) · 1.29 KB
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
name: Windows
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
strategy:
matrix:
configuration: [Release]
runs-on: windows-latest
env:
Solution_Name: SysBot.NET.sln
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v2
- name: Restore NuGet packages
run: dotnet restore
- name: Execute unit tests
run: dotnet test
- name: Restore the application
run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration
env:
Configuration: ${{ matrix.configuration }}
- name: Create the app package
run: msbuild $env:Solution_Name /property:Configuration=Release
- name: Upload WinForm artifacts
uses: actions/upload-artifact@v4
with:
name: SysBot.Pokemon.WinForms
path: SysBot.Pokemon.WinForms\bin\Release\net9.0-windows7.0
- name: Upload ConsoleApp artifacts
uses: actions/upload-artifact@v4
with:
name: SysBot.Pokemon.ConsoleApp
path: SysBot.Pokemon.ConsoleApp\bin\Release\net9.0