Skip to content

Fix language loading per latest PKHeX.Core #379

Fix language loading per latest PKHeX.Core

Fix language loading per latest PKHeX.Core #379

name: .NET Core Desktop
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
strategy:
matrix:
configuration: [Release]
runs-on: windows-latest
env:
Solution_Name: TeraFinder.sln
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v2
- name: Checkout PKHeX.Core
uses: actions/checkout@v4
with:
repository: kwsch/PKHeX
ref: master
path: PKHeX
- name: Build PKHeX.Core
run: |
cd PKHeX/PKHeX.Core
dotnet restore
msbuild PKHeX.Core.csproj /p:Configuration=Release
- name: Restore NuGet packages
run: dotnet restore
- name: Replace latest PKHeX.Core NuGet
shell: pwsh
run: |
$NuGetPackageFolder = Join-Path -Path $env:USERPROFILE -ChildPath ".nuget\packages\pkhex.core"
$LatestVersion = (Get-ChildItem $NuGetPackageFolder | Sort-Object -Property LastWriteTime -Descending)[0].Name
$PkhexCoreDllSource = Join-Path -Path $env:GITHUB_WORKSPACE -ChildPath "PKHeX/PKHeX.Core/bin/Release/net8.0/PKHeX.Core.dll"
$PkhexCoreDllDest = Join-Path -Path $NuGetPackageFolder -ChildPath "$LatestVersion/lib/net8.0/PKHeX.Core.dll"
Copy-Item -Path $PkhexCoreDllSource -Destination $PkhexCoreDllDest
- 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 Launcher artifacts
uses: actions/upload-artifact@v4
with:
name: TeraFinder.Launcher
path: TeraFinder.Launcher/bin
- name: Upload Plugins artifacts
uses: actions/upload-artifact@v4
with:
name: TeraFinder.Plugins
path: |
TeraFinder.Plugins/bin
!TeraFinder.Plugins/bin/Release/net8.0-windows7.0/PKHeX.Core.dll
!TeraFinder.Plugins/bin/Release/net8.0-windows7.0/PKHeX.Drawing.dll
!TeraFinder.Plugins/bin/Release/net8.0-windows7.0/PKHeX.Drawing.PokeSprite.dll