fix(windows): restore x64 and arm64 builds

This commit is contained in:
edde746
2026-07-26 15:32:02 +02:00
parent 5ee3120a97
commit 7e05686a7c
4 changed files with 47 additions and 11 deletions
+7 -1
View File
@@ -132,7 +132,13 @@ require(
for expected in (
"if: matrix.flutter_setup == 'action'",
"if: matrix.flutter_setup == 'git'",
"git -C $root fetch --depth 1 origin 559ffa3f75e7402d65a8def9c28389a9b2e6fe42",
'$expectedCommit = "559ffa3f75e7402d65a8def9c28389a9b2e6fe42"',
"git -C $root fetch --depth 1 origin refs/tags/3.44.0:refs/tags/3.44.0",
"git -C $root checkout --detach refs/tags/3.44.0",
"$actualCommit = git -C $root rev-parse HEAD",
"$actualCommit -ne $expectedCommit",
r'$versionOutput = & "$root\bin\flutter.bat" --version --machine',
'$version.frameworkVersion -ne "3.44.0"',
"flutter pub get --enforce-lockfile --no-example",
"--dart-define=SENTRY_DIST=github-windows-${{ matrix.arch }}",
"--split-debug-info=debug-info/windows-${{ matrix.arch }}",
+12
View File
@@ -35,6 +35,18 @@ class BuildWorkflowGuardTest(unittest.TestCase):
self.assertEqual(result.returncode, 0, result.stderr)
self.assertIn("architecture matrix checks passed", result.stdout)
def test_windows_arm_flutter_without_release_tag_is_rejected(self) -> None:
workflow = self._workflow().replace(
"git -C $root fetch --depth 1 origin refs/tags/3.44.0:refs/tags/3.44.0",
"git -C $root fetch --depth 1 origin 559ffa3f75e7402d65a8def9c28389a9b2e6fe42",
1,
)
result = self._run(workflow)
self.assertNotEqual(result.returncode, 0)
self.assertIn("refs/tags/3.44.0", result.stderr)
def test_mutable_download_in_signing_step_is_rejected(self) -> None:
workflow = self._workflow().replace(
" try {\n",