uupdate ci script for windows

pull/2701/head
Eric Windmill 1 month ago
parent 3f4a11a253
commit 98f8996e83

@ -15,9 +15,8 @@ defaults:
shell: bash shell: bash
jobs: jobs:
# Run the stable test script on the beta channel. Since this branch will soon # Test all samples on the beta channel. Since the beta channel will soon be
# be merged into main as our stable-targeting code, this is the key thing we # promoted to stable, this branch is only concerned with the beta.
# need to test.
Beta-CI: Beta-CI:
name: Test flutter beta channel name: Test flutter beta channel
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}

@ -11,10 +11,9 @@ int main(List<String> arguments) {
// the `--input` option and one for the `--output` option. // the `--input` option and one for the `--output` option.
// `--input` is the original asset file that this program should transform. // `--input` is the original asset file that this program should transform.
// `--output` is where flutter expects the transformation output to be written to. // `--output` is where flutter expects the transformation output to be written to.
final parser = final parser = ArgParser()
ArgParser() ..addOption(inputOptionName, mandatory: true, abbr: 'i')
..addOption(inputOptionName, mandatory: true, abbr: 'i') ..addOption(outputOptionName, mandatory: true, abbr: 'o');
..addOption(outputOptionName, mandatory: true, abbr: 'o');
ArgResults argResults = parser.parse(arguments); ArgResults argResults = parser.parse(arguments);
final String inputFilePath = argResults[inputOptionName]; final String inputFilePath = argResults[inputOptionName];

@ -15,7 +15,7 @@ Future<void> main() async {
} }
// pub workspace, only run 'get' once // pub workspace, only run 'get' once
await _runCommand('flutter', ['pub', 'get'], workingDirectory: './'); await _runCommand('flutter', ['pub', 'get'], workingDirectory: rootDir.path);
final packages = workspace.map((e) => e.toString()).toList(); final packages = workspace.map((e) => e.toString()).toList();
@ -54,6 +54,7 @@ Future<void> _runCommand(
executable, executable,
arguments, arguments,
workingDirectory: workingDirectory, workingDirectory: workingDirectory,
runInShell: true,
mode: ProcessStartMode.inheritStdio, mode: ProcessStartMode.inheritStdio,
); );
final exitCode = await process.exitCode; final exitCode = await process.exitCode;

Loading…
Cancel
Save