13
13
strategy :
14
14
matrix :
15
15
configuration : [Release]
16
-
17
16
runs-on : windows-latest
18
-
19
17
env :
20
18
Solution_Name : HomeLive.sln
21
19
@@ -25,14 +23,11 @@ jobs:
25
23
with :
26
24
fetch-depth : 0
27
25
28
- - name : Install .NET Core
26
+ - name : Install .NET
29
27
uses : actions/setup-dotnet@v4
30
28
with :
31
29
dotnet-version : 9.0.x
32
30
33
- - name : Setup MSBuild.exe
34
- uses : microsoft/setup-msbuild@v2
35
-
36
31
- name : Checkout PKHeX.Core
37
32
uses : actions/checkout@v4
38
33
with :
@@ -44,32 +39,25 @@ jobs:
44
39
run : |
45
40
cd PKHeX/PKHeX.Core
46
41
dotnet restore
47
- msbuild PKHeX.Core.csproj /p:Configuration= Release
42
+ dotnet build --configuration Release
48
43
49
44
- name : Restore NuGet packages
50
- run : dotnet restore
45
+ run : dotnet restore $env:Solution_Name
51
46
52
- - name : Replace latest PKHeX.Core NuGet
47
+ - name : Replace PKHeX.Core NuGet DLL
53
48
shell : pwsh
54
49
run : |
55
- $NuGetPackageFolder = Join-Path -Path $env:USERPROFILE -ChildPath ".nuget\packages\pkhex.core"
56
- $LatestVersion = (Get-ChildItem $NuGetPackageFolder | Sort-Object -Property LastWriteTime -Descending)[0].Name
50
+ $PackageBaseFolder = Join-Path -Path $env:USERPROFILE -ChildPath ".nuget\packages\pkhex.core"
51
+ $LatestVersionFolder = Get-ChildItem -Path $PackageBaseFolder -Directory | Sort-Object {[version]$_.Name} -Descending | Select-Object -First 1
52
+ $NuGetPackageFolder = Join-Path -Path $LatestVersionFolder.FullName -ChildPath "lib\net9.0"
57
53
$PkhexCoreDllSource = Join-Path -Path $env:GITHUB_WORKSPACE -ChildPath "PKHeX/PKHeX.Core/bin/Release/net9.0/PKHeX.Core.dll"
58
- $PkhexCoreDllDest = Join-Path -Path $NuGetPackageFolder -ChildPath "$LatestVersion/lib/net9.0/PKHeX.Core.dll"
59
- Copy-Item -Path $PkhexCoreDllSource -Destination $PkhexCoreDllDest
60
-
61
- - name : Execute unit tests
62
- run : dotnet test
54
+ $PkhexCoreDllDest = Join-Path -Path $NuGetPackageFolder -ChildPath "PKHeX.Core.dll"
55
+ Copy-Item -Path $PkhexCoreDllSource -Destination $PkhexCoreDllDest -Force
63
56
64
- - name : Restore the application
65
- run : msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration
66
- env :
67
- Configuration : ${{ matrix.configuration }}
68
-
69
- - name : Create the app package
70
- run : msbuild $env:Solution_Name /property:Configuration=Release
57
+ - name : Build HomeLive.Plugins
58
+ run : dotnet build $env:Solution_Name --configuration Release --no-restore
71
59
72
- - name : Upload build artifacts
60
+ - name : Upload Plugins artifacts
73
61
uses : actions/upload-artifact@v4
74
62
with :
75
63
name : HomeLive.Plugins
0 commit comments