From 98f8996e83bed539fd5a0754b7c08511e2fa35c7 Mon Sep 17 00:00:00 2001 From: Eric Windmill Date: Wed, 6 Aug 2025 10:49:54 -0400 Subject: [PATCH] uupdate ci script for windows --- .github/workflows/beta.yml | 5 ++--- .../grayscale_transformer/bin/grayscale_transformer.dart | 7 +++---- tool/ci_script.dart | 3 ++- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/beta.yml b/.github/workflows/beta.yml index 4186f86a7..9dcd376ea 100644 --- a/.github/workflows/beta.yml +++ b/.github/workflows/beta.yml @@ -15,9 +15,8 @@ defaults: shell: bash jobs: - # Run the stable test script on the beta channel. Since this branch will soon - # be merged into main as our stable-targeting code, this is the key thing we - # need to test. + # Test all samples on the beta channel. Since the beta channel will soon be + # promoted to stable, this branch is only concerned with the beta. Beta-CI: name: Test flutter beta channel runs-on: ${{ matrix.os }} diff --git a/asset_transformation/grayscale_transformer/bin/grayscale_transformer.dart b/asset_transformation/grayscale_transformer/bin/grayscale_transformer.dart index f0d4e7518..ac1e61795 100644 --- a/asset_transformation/grayscale_transformer/bin/grayscale_transformer.dart +++ b/asset_transformation/grayscale_transformer/bin/grayscale_transformer.dart @@ -11,10 +11,9 @@ int main(List arguments) { // the `--input` option and one for the `--output` option. // `--input` is the original asset file that this program should transform. // `--output` is where flutter expects the transformation output to be written to. - final parser = - ArgParser() - ..addOption(inputOptionName, mandatory: true, abbr: 'i') - ..addOption(outputOptionName, mandatory: true, abbr: 'o'); + final parser = ArgParser() + ..addOption(inputOptionName, mandatory: true, abbr: 'i') + ..addOption(outputOptionName, mandatory: true, abbr: 'o'); ArgResults argResults = parser.parse(arguments); final String inputFilePath = argResults[inputOptionName]; diff --git a/tool/ci_script.dart b/tool/ci_script.dart index eb912cbd2..3274aba8c 100644 --- a/tool/ci_script.dart +++ b/tool/ci_script.dart @@ -15,7 +15,7 @@ Future main() async { } // 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(); @@ -54,6 +54,7 @@ Future _runCommand( executable, arguments, workingDirectory: workingDirectory, + runInShell: true, mode: ProcessStartMode.inheritStdio, ); final exitCode = await process.exitCode;