diff options
| author | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-12-01 12:43:58 -0500 |
|---|---|---|
| committer | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-12-01 12:43:58 -0500 |
| commit | dfce074a05a58aed880f0385b5219ca8e755ce88 (patch) | |
| tree | da004a5134b4c9f827edc692953fe15db878f40f /.github/workflows | |
| parent | d2a564b66a96127bc06bb348f3fae52d11e4461e (diff) | |
ci: exclude deprecated legacy C++ runtime/ from automatic CI runsci/exclude-legacy-cpp-runtime-tests
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/runtime.yml | 148 | ||||
| -rw-r--r-- | .github/workflows/xma2-decoder.yml | 22 |
2 files changed, 18 insertions, 152 deletions
diff --git a/.github/workflows/runtime.yml b/.github/workflows/runtime.yml index a6b1e0346..8628456eb 100644 --- a/.github/workflows/runtime.yml +++ b/.github/workflows/runtime.yml | |||
| @@ -1,141 +1,19 @@ | |||
| 1 | # Builds the loader (runtime/) with MSVC and Vulkan headers (plus GPU tools and llvmpipe tests on Linux) on runtime | 1 | # Builds the legacy C++ loader (runtime/) with MSVC and Vulkan headers (plus GPU tools and llvmpipe tests on Linux). |
| 2 | # or translator changes, so a change that breaks the C++ build or tests shows up in CI. | 2 | # The legacy C++ Vulkan runtime/ is deprecated in favor of the Rust DX12 runtime (d3d12/) and the new Rust Vulkan |
| 3 | # runtime (in progress), so automatic push, pull_request, and scheduled CI runs are disabled. Trigger manually via | ||
| 4 | # workflow_dispatch when needed. | ||
| 3 | name: Runtime | 5 | name: Runtime |
| 4 | 6 | ||
| 5 | on: | 7 | on: |
| 6 | # What can break this build: the runtime and its vendored queue, the scripts the jobs run, this workflow, the | ||
| 7 | # line endings every checkout gets (.gitattributes), and everything the tools those scripts read depend on - | ||
| 8 | # their sibling imports, the data files they load by name (gfx10_formats.json is one a .py-only scan misses) and | ||
| 9 | # the hw_oracle directory. Any other file under tools/ used to start a full Windows and Wine build it cannot break | ||
| 10 | # (BUILD-856); paths-ignore cannot say "everything under tools/ except these", so the event lists what triggers | ||
| 11 | # it. tests/test_runtime_paths.py recomputes the tools/ part and fails when an entry is missing; keep the two | ||
| 12 | # lists identical. | ||
| 13 | push: | ||
| 14 | branches: [main] | ||
| 15 | paths: | ||
| 16 | - "runtime/**" | ||
| 17 | - "third_party/**" | ||
| 18 | - "scripts/**" | ||
| 19 | - ".github/workflows/runtime.yml" | ||
| 20 | - ".gitattributes" | ||
| 21 | - "tools/hw_oracle/**" | ||
| 22 | - "tools/bary_fallback_gs.py" | ||
| 23 | - "tools/bcpack.py" | ||
| 24 | - "tools/bcpack_history_train.cpp" | ||
| 25 | - "tools/bcpack_tables.py" | ||
| 26 | - "tools/bcpack_tables_bptc.py" | ||
| 27 | - "tools/cf_diff.py" | ||
| 28 | - "tools/cf_ref.py" | ||
| 29 | - "tools/cfg_structure.py" | ||
| 30 | - "tools/conformance/**" | ||
| 31 | - "tools/cpu_ref.py" | ||
| 32 | - "tools/descriptor_sources.py" | ||
| 33 | - "tools/f32_fuzz.py" | ||
| 34 | - "tools/file_mode.py" | ||
| 35 | - "tools/first_light.py" | ||
| 36 | - "tools/fspx_unpack.py" | ||
| 37 | - "tools/fssm_header.py" | ||
| 38 | - "tools/fssm_unpack.py" | ||
| 39 | - "tools/gen_bcpack_runtime_tables.py" | ||
| 40 | - "tools/gen_d3d12_stubs.py" | ||
| 41 | - "tools/gfx10_formats.json" | ||
| 42 | - "tools/heap_index_census.py" | ||
| 43 | - "tools/lane_masks.py" | ||
| 44 | - "tools/lod_bias_probe.py" | ||
| 45 | - "tools/mc_command.py" | ||
| 46 | - "tools/mesh_compute_vs.py" | ||
| 47 | - "tools/native_pso_hashes.py" | ||
| 48 | - "tools/rdna2_decode.py" | ||
| 49 | - "tools/rdna2_isa_tables.py" | ||
| 50 | - "tools/rdna2spirv.py" | ||
| 51 | - "tools/replace_retry.py" | ||
| 52 | - "tools/report_paths.py" | ||
| 53 | - "tools/shader_carve.py" | ||
| 54 | - "tools/shader_carve_accel.py" | ||
| 55 | - "tools/shader_carve_native/**" | ||
| 56 | - "tools/shader_disasm.py" | ||
| 57 | - "tools/shader_ir.py" | ||
| 58 | - "tools/shader_meta.py" | ||
| 59 | - "tools/shader_stage_manifest.py" | ||
| 60 | - "tools/spirv_asm.py" | ||
| 61 | - "tools/spirv_asm_tables.py" | ||
| 62 | - "tools/spirv_loop_guard.py" | ||
| 63 | - "tools/spirv_opt.py" | ||
| 64 | - "tools/spirv_stubs.py" | ||
| 65 | - "tools/vk_lod_bias.py" | ||
| 66 | - "tools/vk_subgroup_info.py" | ||
| 67 | - "tools/wave64_emulate_opt.py" | ||
| 68 | - "tools/wave64_halves.py" | ||
| 69 | - "tools/xdxr_bvh.py" | ||
| 70 | pull_request: | ||
| 71 | paths: | ||
| 72 | - "runtime/**" | ||
| 73 | - "third_party/**" | ||
| 74 | - "scripts/**" | ||
| 75 | - ".github/workflows/runtime.yml" | ||
| 76 | - ".gitattributes" | ||
| 77 | - "tools/hw_oracle/**" | ||
| 78 | - "tools/bary_fallback_gs.py" | ||
| 79 | - "tools/bcpack.py" | ||
| 80 | - "tools/bcpack_history_train.cpp" | ||
| 81 | - "tools/bcpack_tables.py" | ||
| 82 | - "tools/bcpack_tables_bptc.py" | ||
| 83 | - "tools/cf_diff.py" | ||
| 84 | - "tools/cf_ref.py" | ||
| 85 | - "tools/cfg_structure.py" | ||
| 86 | - "tools/conformance/**" | ||
| 87 | - "tools/cpu_ref.py" | ||
| 88 | - "tools/descriptor_sources.py" | ||
| 89 | - "tools/f32_fuzz.py" | ||
| 90 | - "tools/file_mode.py" | ||
| 91 | - "tools/first_light.py" | ||
| 92 | - "tools/fspx_unpack.py" | ||
| 93 | - "tools/fssm_header.py" | ||
| 94 | - "tools/fssm_unpack.py" | ||
| 95 | - "tools/gen_bcpack_runtime_tables.py" | ||
| 96 | - "tools/gen_d3d12_stubs.py" | ||
| 97 | - "tools/gfx10_formats.json" | ||
| 98 | - "tools/heap_index_census.py" | ||
| 99 | - "tools/lane_masks.py" | ||
| 100 | - "tools/lod_bias_probe.py" | ||
| 101 | - "tools/mc_command.py" | ||
| 102 | - "tools/mesh_compute_vs.py" | ||
| 103 | - "tools/native_pso_hashes.py" | ||
| 104 | - "tools/rdna2_decode.py" | ||
| 105 | - "tools/rdna2_isa_tables.py" | ||
| 106 | - "tools/rdna2spirv.py" | ||
| 107 | - "tools/replace_retry.py" | ||
| 108 | - "tools/report_paths.py" | ||
| 109 | - "tools/shader_carve.py" | ||
| 110 | - "tools/shader_carve_accel.py" | ||
| 111 | - "tools/shader_carve_native/**" | ||
| 112 | - "tools/shader_disasm.py" | ||
| 113 | - "tools/shader_ir.py" | ||
| 114 | - "tools/shader_meta.py" | ||
| 115 | - "tools/shader_stage_manifest.py" | ||
| 116 | - "tools/spirv_asm.py" | ||
| 117 | - "tools/spirv_asm_tables.py" | ||
| 118 | - "tools/spirv_loop_guard.py" | ||
| 119 | - "tools/spirv_opt.py" | ||
| 120 | - "tools/spirv_stubs.py" | ||
| 121 | - "tools/vk_lod_bias.py" | ||
| 122 | - "tools/vk_subgroup_info.py" | ||
| 123 | - "tools/wave64_emulate_opt.py" | ||
| 124 | - "tools/wave64_halves.py" | ||
| 125 | - "tools/xdxr_bvh.py" | ||
| 126 | workflow_dispatch: | 8 | workflow_dispatch: |
| 127 | # Daily default-branch snapshot, staggered after CI; ordinary pushes keep coalescing. | ||
| 128 | schedule: | ||
| 129 | - cron: "53 3 * * *" | ||
| 130 | 9 | ||
| 131 | permissions: | 10 | permissions: |
| 132 | contents: read | 11 | contents: read |
| 133 | 12 | ||
| 134 | concurrency: | 13 | concurrency: |
| 135 | # Coalesce superseded pending pushes per branch without canceling an active main build. | 14 | # Each manual dispatch gets its own group so runs do not cancel each other. |
| 136 | # Scheduled/manual runs already use run_id and cannot be replaced by queued pushes. | 15 | group: runtime-${{ github.event_name }}-${{ github.run_id }} |
| 137 | group: runtime-${{ github.event_name }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }} | 16 | cancel-in-progress: false |
| 138 | cancel-in-progress: ${{ github.event_name == 'pull_request' }} | ||
| 139 | 17 | ||
| 140 | jobs: | 18 | jobs: |
| 141 | windows: | 19 | windows: |
| @@ -358,23 +236,19 @@ jobs: | |||
| 358 | run: ctest --test-dir runtime/build --output-on-failure --timeout 300 | 236 | run: ctest --test-dir runtime/build --output-on-failure --timeout 300 |
| 359 | 237 | ||
| 360 | # Runs the Windows build's tests under Wine, so a change that breaks the loader on Linux (through Wine or Proton) | 238 | # Runs the Windows build's tests under Wine, so a change that breaks the loader on Linux (through Wine or Proton) |
| 361 | # shows up. The required ones are the loader and the stand-in game run end to end; the table in the job summary | 239 | # shows up when this workflow is dispatched manually. The required ones are the loader and the stand-in game run |
| 362 | # shows the rest. | 240 | # end to end; the table in the job summary shows the rest. |
| 363 | # Two Wines: Ubuntu's own (9.0) and WineHQ's current stable, which is closer to what Proton users run. | 241 | # Two Wines: Ubuntu's own (9.0) and WineHQ's current stable, which is closer to what Proton users run. |
| 364 | # Not on pull requests: in 188 sampled pull request runs these two jobs never failed when the Windows job had passed, | ||
| 365 | # yet they took about a quarter of the account's 20 concurrent runner slots. Pushes to main run winehq-stable only; | ||
| 366 | # the daily schedule and workflow_dispatch run both ubuntu and winehq-stable. Pull requests still build and test the | ||
| 367 | # Windows runtime natively and upload runtime-windows for testers. | ||
| 368 | wine: | 242 | wine: |
| 369 | needs: windows | 243 | needs: windows |
| 370 | # The uploaded build can still be tested under Wine if the later native tests fail. | 244 | # The uploaded build can still be tested under Wine if the later native tests fail. |
| 371 | if: ${{ github.event_name != 'pull_request' && !cancelled() && needs.windows.outputs.wine-artifact == 'success' }} | 245 | if: ${{ !cancelled() && needs.windows.outputs.wine-artifact == 'success' }} |
| 372 | runs-on: ubuntu-24.04 | 246 | runs-on: ubuntu-24.04 |
| 373 | timeout-minutes: 20 | 247 | timeout-minutes: 20 |
| 374 | strategy: | 248 | strategy: |
| 375 | fail-fast: false | 249 | fail-fast: false |
| 376 | matrix: | 250 | matrix: |
| 377 | wine: ${{ fromJSON(github.event_name == 'push' && '["winehq-stable"]' || '["ubuntu", "winehq-stable"]') }} | 251 | wine: [ubuntu, winehq-stable] |
| 378 | steps: | 252 | steps: |
| 379 | - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | 253 | - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| 380 | with: | 254 | with: |
diff --git a/.github/workflows/xma2-decoder.yml b/.github/workflows/xma2-decoder.yml index d7549a0f4..4f9d44480 100644 --- a/.github/workflows/xma2-decoder.yml +++ b/.github/workflows/xma2-decoder.yml | |||
| @@ -1,27 +1,19 @@ | |||
| 1 | # Builds and tests the legacy C++ runtime's Rust XMA2 FFI crate (runtime/xma_decoder/). | ||
| 2 | # The legacy C++ Vulkan runtime/ is deprecated in favor of the Rust DX12 runtime (d3d12/) and the new Rust Vulkan | ||
| 3 | # runtime (in progress), so automatic push and pull_request CI runs are disabled. Trigger manually via | ||
| 4 | # workflow_dispatch when needed. | ||
| 1 | name: XMA2 decoder | 5 | name: XMA2 decoder |
| 2 | 6 | ||
| 3 | on: | 7 | on: |
| 4 | push: | ||
| 5 | branches: [main] | ||
| 6 | paths: | ||
| 7 | - "runtime/xma_decoder/**" | ||
| 8 | - "third_party/xma/**" | ||
| 9 | - ".github/workflows/xma2-decoder.yml" | ||
| 10 | pull_request: | ||
| 11 | paths: | ||
| 12 | - "runtime/xma_decoder/**" | ||
| 13 | - "third_party/xma/**" | ||
| 14 | - ".github/workflows/xma2-decoder.yml" | ||
| 15 | workflow_dispatch: | 8 | workflow_dispatch: |
| 16 | 9 | ||
| 17 | permissions: | 10 | permissions: |
| 18 | contents: read | 11 | contents: read |
| 19 | 12 | ||
| 20 | concurrency: | 13 | concurrency: |
| 21 | # Pull requests coalesce and cancel superseded pending runs per number; a push gets its own group | 14 | # Each manual dispatch gets its own group so runs do not cancel each other. |
| 22 | # (run_id is unique per run), so a merge burst cannot replace queued main runs before they start. | 15 | group: xma2-decoder-${{ github.event_name }}-${{ github.run_id }} |
| 23 | group: xma2-decoder-${{ github.event_name }}-${{ github.event.pull_request.number || github.run_id }} | 16 | cancel-in-progress: false |
| 24 | cancel-in-progress: ${{ github.event_name == 'pull_request' }} | ||
| 25 | 17 | ||
| 26 | jobs: | 18 | jobs: |
| 27 | windows-ffi: | 19 | windows-ffi: |