forked from kwsch/PKHeX
-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (51 loc) · 2.19 KB
/
csharp-ci-pkhex.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
name: C# CI PKHex
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: windows-2022
strategy:
matrix:
configuration: [Debug, Release]
steps:
- uses: actions/checkout@v4
with:
repository: 'pifopi/PKHeX'
path: PKHex
- uses: actions/checkout@v4
with:
repository: 'pifopi/PKHeX-Plugins'
path: PKHeX-Plugins
- uses: actions/checkout@v4
with:
repository: 'pifopi/HOME-Live-Plugin'
path: HOME-Live-Plugin
- uses: microsoft/setup-msbuild@v1
- name: Generate binaries
run: |
cd PKHeX
dotnet restore /p:Configuration=${{ matrix.configuration }} /p:Platform="Any CPU"
MSBuild.exe PKHeX.WinForms/PKHeX.WinForms.csproj /p:Configuration=${{ matrix.configuration }}
cd ../PKHeX-Plugins
dotnet restore /p:Configuration=${{ matrix.configuration }} /p:Platform="Any CPU"
MSBuild.exe AutoLegalityMod/AutoModPlugins.csproj /p:Configuration=${{ matrix.configuration }}
robocopy AutoLegalityMod\bin\${{ matrix.configuration }}\net8.0-windows ..\PKHeX\PKHeX.WinForms\bin\${{ matrix.configuration }}\net8.0-windows\win-x64\plugins\ AutoModPlugins.dll
$PKHeXPlugins = $lastexitcode
write-host "Robocopy PKHeX-Plugins exited with exit code:" $PKHeXPlugins
cd ../HOME-Live-Plugin
dotnet restore /p:Configuration=${{ matrix.configuration }} /p:Platform="Any CPU"
MSBuild.exe HomeLive.Plugins/HomeLive.Plugins.csproj /p:Configuration=${{ matrix.configuration }}
robocopy HomeLive.Plugins\bin\${{ matrix.configuration }}\net8.0-windows7.0 ..\PKHeX\PKHeX.WinForms\bin\${{ matrix.configuration }}\net8.0-windows\win-x64\plugins\ HomeLive.Plugins.dll
$HOMELivePlugin = $lastexitcode
write-host "Robocopy HOME-Live-Plugin exited with exit code:" $HOMELivePlugin
if ($PKHeXPlugins -ne 1 -or $HOMELivePlugin -ne 1)
{
exit 1
}
else
{
exit 0
}
- uses: actions/upload-artifact@v4
with:
name: PKHeX for windows (${{ matrix.configuration }})
path: PKHeX/PKHeX.WinForms/bin/${{ matrix.configuration }}/net8.0-windows/win-x64