diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a32153a30..0146b544b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e29ffeb0f..59bb5fcfd 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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 [cache.bin] [--jobs N]` creates a module (and, for compute shaders, a diff --git a/global.json b/global.json new file mode 100644 index 000000000..d07970ac2 --- /dev/null +++ b/global.json @@ -0,0 +1,6 @@ +{ + "sdk": { + "version": "8.0.100", + "rollForward": "latestMajor" + } +} diff --git a/tests/Rpf9DumpDiagnostics/Rpf9DumpDiagnostics.csproj b/tests/Rpf9DumpDiagnostics/Rpf9DumpDiagnostics.csproj index 43d7ab194..8a2a474d8 100644 --- a/tests/Rpf9DumpDiagnostics/Rpf9DumpDiagnostics.csproj +++ b/tests/Rpf9DumpDiagnostics/Rpf9DumpDiagnostics.csproj @@ -4,6 +4,7 @@ net8.0 enable enable + true diff --git a/tests/Rpf9DumpDiagnostics/packages.lock.json b/tests/Rpf9DumpDiagnostics/packages.lock.json new file mode 100644 index 000000000..606e78df6 --- /dev/null +++ b/tests/Rpf9DumpDiagnostics/packages.lock.json @@ -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, )" + } + } + } + } +} \ No newline at end of file diff --git a/tests/requirements.txt b/tests/requirements.txt new file mode 100644 index 000000000..3fdf1e14f --- /dev/null +++ b/tests/requirements.txt @@ -0,0 +1 @@ +pytest==9.2.0 diff --git a/tools/rpf9dump/packages.lock.json b/tools/rpf9dump/packages.lock.json new file mode 100644 index 000000000..606e78df6 --- /dev/null +++ b/tools/rpf9dump/packages.lock.json @@ -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, )" + } + } + } + } +} \ No newline at end of file diff --git a/tools/rpf9dump/rpf9dump.csproj b/tools/rpf9dump/rpf9dump.csproj index 7a77370de..7b6bbfed4 100644 --- a/tools/rpf9dump/rpf9dump.csproj +++ b/tools/rpf9dump/rpf9dump.csproj @@ -1,5 +1,5 @@ - Exenet8.0enableenabletrue + Exenet8.0enableenabletruetrue