Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/native-runtime-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,17 @@ jobs:
v8_cache_generation: v12-v8-15.3.10-pa-no-process-shim-ubuntu22-gcc12-lld-no-crel-shared-inspector
v8_cache_script: scripts/build-native-engine-runtime.sh
v8_cache_patch: packaging/WebScene.NativeEngine.Runtime/patches/V8BuildNoCrelPatch.txt
- os: windows-2022
rid: win-x64
cpu: x64
monolith: v8_monolith.lib
script: windows
v8_revision: 15.3.10
partition_alloc: true
v8_configuration: ReleasePartitionAlloc
v8_cache_generation: v9-v8-15.3.10-pa-windows-compat-inspector
v8_cache_script: scripts/build-native-engine-runtime.ps1
v8_cache_patch: packaging/WebScene.NativeEngine.Runtime/patches/V8WindowsCompatibilityPatch.txt
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -520,6 +531,7 @@ jobs:
--selection required \
--expected-rid osx-arm64 \
--expected-rid linux-x64 \
--expected-rid win-x64 \
--output artifacts/required-compatibility/cross-rid-summary.json
- name: Upload cross-RID required summary
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -553,6 +565,7 @@ jobs:
--version '${{ needs.metadata.outputs.package-version }}' \
--native-rid osx-arm64 \
--native-rid linux-x64 \
--native-rid win-x64 \
--output artifacts/nuget-packages/release-packages.json
shasum -a 256 \
artifacts/nuget-packages/*.nupkg \
Expand Down Expand Up @@ -592,6 +605,7 @@ jobs:
--advisory-test-failures \
--expected-rid osx-arm64 \
--expected-rid linux-x64 \
--expected-rid win-x64 \
--output artifacts/candidate-compatibility/cross-rid-summary.json
- name: Upload cross-RID candidate summary
if: always()
Expand All @@ -612,6 +626,8 @@ jobs:
rid: osx-arm64
- os: [self-hosted, Linux, X64]
rid: linux-x64
- os: windows-2022
rid: win-x64
runs-on: ${{ matrix.os }}
env:
# PR builds intentionally reuse package versions. Keep their extracted
Expand Down
28 changes: 28 additions & 0 deletions scripts/tests/test_native_runtime_workflow_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,34 @@ def test_v8_windows_environment_boundary_is_wired_into_build_and_ci(self) -> Non
self.assertEqual(restore_keys.count("matrix.rid != 'win-x64'"), 2)
self.assertNotIn("\n webscene-v8-sdk-", restore_keys)

def test_release_package_gate_covers_every_supported_rid(self) -> None:
package_workflow = self.workflows[
ROOT / ".github/workflows/native-runtime-packages.yml"
]
native = package_workflow.split("\n native:\n", 1)[1].split(
"\n required-evidence:\n", 1
)[0]
required = package_workflow.split("\n required-evidence:\n", 1)[1].split(
"\n package-set:\n", 1
)[0]
package_set = package_workflow.split("\n package-set:\n", 1)[1].split(
"\n candidate-evidence:\n", 1
)[0]
candidate = package_workflow.split("\n candidate-evidence:\n", 1)[1].split(
"\n consumer:\n", 1
)[0]
consumer = package_workflow.split("\n consumer:\n", 1)[1].split(
"\n publish:\n", 1
)[0]

for rid in ("osx-arm64", "linux-x64", "win-x64"):
with self.subTest(rid=rid):
self.assertIn(f"rid: {rid}", native)
self.assertIn(f"--expected-rid {rid}", required)
self.assertIn(f"--native-rid {rid}", package_set)
self.assertIn(f"--expected-rid {rid}", candidate)
self.assertIn(f"rid: {rid}", consumer)


if __name__ == "__main__":
unittest.main()
Loading