mirror of
https://github.com/ProjectLeonida/mandy.git
synced 2026-12-06 08:38:36 +00:00
CI: upgrade viewer-tests to Node 24 LTS and add pip/NuGet caching with global.json
This commit is contained in:
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
@ -57,6 +57,8 @@ jobs:
|
||||
- uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
|
||||
with:
|
||||
dotnet-version: "8.0.x"
|
||||
cache: true
|
||||
cache-dependency-path: "**/packages.lock.json"
|
||||
- name: Python tools compile
|
||||
run: python -m compileall -q make_game.py tools tests
|
||||
- name: make_game.py help
|
||||
@ -85,6 +87,8 @@ jobs:
|
||||
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
||||
with:
|
||||
python-version: "3.12"
|
||||
cache: "pip"
|
||||
cache-dependency-path: tests/requirements.txt
|
||||
- name: Install llvm-mc and spirv-tools
|
||||
run: |
|
||||
sudo apt-get update
|
||||
@ -93,7 +97,7 @@ jobs:
|
||||
pkgs+=(llvm-18)
|
||||
fi
|
||||
sudo apt-get install -y --no-install-recommends "${pkgs[@]}"
|
||||
pip install pytest
|
||||
pip install -r tests/requirements.txt
|
||||
- name: Translator tests
|
||||
run: |
|
||||
pytest_files=()
|
||||
@ -126,8 +130,8 @@ jobs:
|
||||
timeout-minutes: 10
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
|
||||
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
||||
with:
|
||||
node-version: "22"
|
||||
node-version: "24"
|
||||
- name: Viewer chunk streaming (synthetic, no browser or game data)
|
||||
run: node --test tests/test_viewer_streaming.cjs
|
||||
|
||||
@ -30,7 +30,7 @@ path, who builds what, and which D3D12 methods are still open.
|
||||
`ctest --test-dir runtime/build --output-on-failure`. The CPU tests that need no game data are configured
|
||||
on Windows. Tests that need the retail package read `LEONIDA_GAME_DIR` (and `LEONIDA_MOVIE` for the Bink
|
||||
decode test) in place and print `SKIP` when the variable is unset; never copy or commit those files.
|
||||
- Viewer streaming tests: `node --test tests/test_viewer_streaming.cjs` (Node.js 22+, no packages,
|
||||
- Viewer streaming tests: `node --test tests/test_viewer_streaming.cjs` (Node.js 22+, CI tests 24 LTS; no packages,
|
||||
browser, network or game data). These execute the viewer streaming code with a synthetic loader and clock.
|
||||
- Tool checks: `python -m compileall -q make_game.py tools tests`. The optional
|
||||
`vk_pipeline_check <spirv dir> [cache.bin] [--jobs N]` creates a module (and, for compute shaders, a
|
||||
|
||||
6
global.json
Normal file
6
global.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"sdk": {
|
||||
"version": "8.0.100",
|
||||
"rollForward": "latestMajor"
|
||||
}
|
||||
}
|
||||
@ -4,6 +4,7 @@
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="../../tools/rpf9dump/ModelDecodeFailure.cs" Link="ModelDecodeFailure.cs" />
|
||||
|
||||
26
tests/Rpf9DumpDiagnostics/packages.lock.json
Normal file
26
tests/Rpf9DumpDiagnostics/packages.lock.json
Normal file
@ -0,0 +1,26 @@
|
||||
{
|
||||
"version": 1,
|
||||
"dependencies": {
|
||||
"net8.0": {
|
||||
"BCnEncoder.Net": {
|
||||
"type": "Transitive",
|
||||
"resolved": "2.3.0",
|
||||
"contentHash": "DJhHJiBJKXUXxlkkrv74ckzJb3wYxqIAZHjXD9G76kpsD0YyJOmqtNufHWEuJe0eH0tB1tCZn80/3JV2UVP7yQ==",
|
||||
"dependencies": {
|
||||
"CommunityToolkit.HighPerformance": "8.4.0"
|
||||
}
|
||||
},
|
||||
"CommunityToolkit.HighPerformance": {
|
||||
"type": "Transitive",
|
||||
"resolved": "8.4.0",
|
||||
"contentHash": "flxspiBs0G/0GMp7IK2J2ijV9bTG6hEwFc/z6ekHqB6nwRJ4Ry2yLdx+TkbCUYFCl4XhABkAwomeKbT6zM2Zlg=="
|
||||
},
|
||||
"rpfpreview.core": {
|
||||
"type": "Project",
|
||||
"dependencies": {
|
||||
"BCnEncoder.Net": "[2.3.0, )"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
1
tests/requirements.txt
Normal file
1
tests/requirements.txt
Normal file
@ -0,0 +1 @@
|
||||
pytest==9.2.0
|
||||
26
tools/rpf9dump/packages.lock.json
Normal file
26
tools/rpf9dump/packages.lock.json
Normal file
@ -0,0 +1,26 @@
|
||||
{
|
||||
"version": 1,
|
||||
"dependencies": {
|
||||
"net8.0": {
|
||||
"BCnEncoder.Net": {
|
||||
"type": "Transitive",
|
||||
"resolved": "2.3.0",
|
||||
"contentHash": "DJhHJiBJKXUXxlkkrv74ckzJb3wYxqIAZHjXD9G76kpsD0YyJOmqtNufHWEuJe0eH0tB1tCZn80/3JV2UVP7yQ==",
|
||||
"dependencies": {
|
||||
"CommunityToolkit.HighPerformance": "8.4.0"
|
||||
}
|
||||
},
|
||||
"CommunityToolkit.HighPerformance": {
|
||||
"type": "Transitive",
|
||||
"resolved": "8.4.0",
|
||||
"contentHash": "flxspiBs0G/0GMp7IK2J2ijV9bTG6hEwFc/z6ekHqB6nwRJ4Ry2yLdx+TkbCUYFCl4XhABkAwomeKbT6zM2Zlg=="
|
||||
},
|
||||
"rpfpreview.core": {
|
||||
"type": "Project",
|
||||
"dependencies": {
|
||||
"BCnEncoder.Net": "[2.3.0, )"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,5 +1,5 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup><OutputType>Exe</OutputType><TargetFramework>net8.0</TargetFramework><ImplicitUsings>enable</ImplicitUsings><Nullable>enable</Nullable><ServerGarbageCollection>true</ServerGarbageCollection></PropertyGroup>
|
||||
<PropertyGroup><OutputType>Exe</OutputType><TargetFramework>net8.0</TargetFramework><ImplicitUsings>enable</ImplicitUsings><Nullable>enable</Nullable><ServerGarbageCollection>true</ServerGarbageCollection><RestorePackagesWithLockFile>true</RestorePackagesWithLockFile></PropertyGroup>
|
||||
<!-- third_party/rpf9-explorer is a git submodule (git submodule update, with the init option) -->
|
||||
<ItemGroup><ProjectReference Include="..\..\third_party\rpf9-explorer\Core\RpfPreview.Core.csproj" /></ItemGroup>
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user