This reverts commit a66e5a7fa08b72016e04fffb735dd911d04b77a1.
This commit is contained in:
parent
adb3f13819
commit
4924969347
@ -442,7 +442,8 @@ Future<void> _runExampleProjectBuildTests(FileSystemEntity exampleDirectory) asy
|
||||
}
|
||||
if (Platform.isWindows) {
|
||||
if (Directory(path.join(examplePath, 'windows')).existsSync()) {
|
||||
// TODO(jmagman): Re-add Windows build tests when Visual Studio is available https://github.com/flutter/flutter/issues/81956.
|
||||
await _flutterBuildWin32(examplePath, release: false, additionalArgs: additionalArgs, verifyCaching: verifyCaching);
|
||||
await _flutterBuildWin32(examplePath, release: true, additionalArgs: additionalArgs, verifyCaching: verifyCaching);
|
||||
} else {
|
||||
print('Example project ${path.basename(examplePath)} has no windows directory, skipping Win32');
|
||||
}
|
||||
@ -506,6 +507,21 @@ Future<void> _flutterBuildMacOS(String relativePathToApplication, {
|
||||
);
|
||||
}
|
||||
|
||||
Future<void> _flutterBuildWin32(String relativePathToApplication, {
|
||||
@required bool release,
|
||||
bool verifyCaching = false,
|
||||
List<String> additionalArgs = const <String>[],
|
||||
}) async {
|
||||
assert(Platform.isWindows);
|
||||
await runCommand(flutter, <String>['config', '--enable-windows-desktop']);
|
||||
print('${green}Testing Windows build$reset for $cyan$relativePathToApplication$reset...');
|
||||
await _flutterBuild(relativePathToApplication, 'Windows', 'windows',
|
||||
release: release,
|
||||
verifyCaching: verifyCaching,
|
||||
additionalArgs: additionalArgs
|
||||
);
|
||||
}
|
||||
|
||||
Future<void> _flutterBuild(
|
||||
String relativePathToApplication,
|
||||
String platformLabel,
|
||||
|
@ -579,7 +579,7 @@
|
||||
"name": "Windows build_tests_2_3",
|
||||
"repo": "flutter",
|
||||
"task_name": "win_build_tests_2_3",
|
||||
"enabled": true
|
||||
"enabled": false
|
||||
},
|
||||
{
|
||||
"name": "Windows build_tests_3_3",
|
||||
|
Loading…
x
Reference in New Issue
Block a user