forked from architdate/PKHeX-Plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
69 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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@v2 | ||
- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<ItemGroup> | ||
<PackageReference Include="PKHeX.Core" Version="24.11.12" /> | ||
<ProjectReference Include="..\..\PKHeX\PKHeX.Core\PKHeX.Core.csproj" /> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<ItemGroup> | ||
<PackageReference Include="PKHeX.Core" Version="24.11.12" /> | ||
<ProjectReference Include="..\..\PKHeX\PKHeX.Core\PKHeX.Core.csproj" /> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<ItemGroup> | ||
<PackageReference Include="LibUsbDotNet" Version="2.2.29" /> | ||
<PackageReference Include="PKHeX.Core" Version="24.11.12" /> | ||
<ProjectReference Include="..\..\PKHeX\PKHeX.Core\PKHeX.Core.csproj" /> | ||
</ItemGroup> | ||
</Project> |