Skip to content

Commit 98f8996

Browse files
committed
uupdate ci script for windows
1 parent 3f4a11a commit 98f8996

3 files changed

Lines changed: 7 additions & 8 deletions

File tree

.github/workflows/beta.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@ defaults:
1515
shell: bash
1616

1717
jobs:
18-
# Run the stable test script on the beta channel. Since this branch will soon
19-
# be merged into main as our stable-targeting code, this is the key thing we
20-
# need to test.
18+
# Test all samples on the beta channel. Since the beta channel will soon be
19+
# promoted to stable, this branch is only concerned with the beta.
2120
Beta-CI:
2221
name: Test flutter beta channel
2322
runs-on: ${{ matrix.os }}

asset_transformation/grayscale_transformer/bin/grayscale_transformer.dart

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@ int main(List<String> arguments) {
1111
// the `--input` option and one for the `--output` option.
1212
// `--input` is the original asset file that this program should transform.
1313
// `--output` is where flutter expects the transformation output to be written to.
14-
final parser =
15-
ArgParser()
16-
..addOption(inputOptionName, mandatory: true, abbr: 'i')
17-
..addOption(outputOptionName, mandatory: true, abbr: 'o');
14+
final parser = ArgParser()
15+
..addOption(inputOptionName, mandatory: true, abbr: 'i')
16+
..addOption(outputOptionName, mandatory: true, abbr: 'o');
1817

1918
ArgResults argResults = parser.parse(arguments);
2019
final String inputFilePath = argResults[inputOptionName];

tool/ci_script.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Future<void> main() async {
1515
}
1616

1717
// pub workspace, only run 'get' once
18-
await _runCommand('flutter', ['pub', 'get'], workingDirectory: './');
18+
await _runCommand('flutter', ['pub', 'get'], workingDirectory: rootDir.path);
1919

2020
final packages = workspace.map((e) => e.toString()).toList();
2121

@@ -54,6 +54,7 @@ Future<void> _runCommand(
5454
executable,
5555
arguments,
5656
workingDirectory: workingDirectory,
57+
runInShell: true,
5758
mode: ProcessStartMode.inheritStdio,
5859
);
5960
final exitCode = await process.exitCode;

0 commit comments

Comments
 (0)