Skip to content

Commit

Permalink
chore(actions): android emulator to start with clear cache and data
Browse files Browse the repository at this point in the history
  • Loading branch information
Nika Hassani committed Aug 6, 2024
1 parent 88ac695 commit e740e96
Show file tree
Hide file tree
Showing 15 changed files with 37 additions and 36 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions .github/composite_actions/launch_ios_simulator/dist/index.mjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions .github/composite_actions/log_cw_metric/dist/index.mjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .github/composite_actions/log_cw_metric/dist/main.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .github/composite_actions/log_cw_metric/dist/main.cjs.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions .github/composite_actions/setup_chromedriver/dist/index.mjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .github/composite_actions/setup_chromedriver/dist/main.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .github/workflows/actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ jobs:
java-version: "17"

- name: Test
timeout-minutes: 10
timeout-minutes: 60
uses: ./.github/composite_actions/launch_android_emulator
with:
script: echo "Success!"
2 changes: 1 addition & 1 deletion .github/workflows/amplify_canaries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ jobs:
secret-identifier: ${{ secrets.AWS_SECRET_IDENTIFIER }}

- name: Run Canary
timeout-minutes: 45
timeout-minutes: 60
uses: ./.github/composite_actions/launch_android_emulator
with:
# Perform a build to reduce startup time of `flutter test` and prevent timeout
Expand Down
3 changes: 2 additions & 1 deletion actions/lib/src/android/avd_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ final class AvdManager {
Future<void> _createEmulator() => core.withGroup('Create emulator', () async {
final targetImage = 'system-images;android-$apiLevel;$target;$abi';
await _avdmanager(
['create', 'avd', '-n', name, '-k', targetImage],
['--clear-cache', 'create', 'avd', '-n', name, '-k', targetImage],
stdinCmd: 'echo n',
);
});
Expand All @@ -83,6 +83,7 @@ final class AvdManager {
'-restart-when-stalled',
'-accel', 'on', // Fail if HW accel is unavailable
'-no-snapshot',
'-wipe-date',
'-verbose',
];
final emulator = await processManager.start(
Expand Down

0 comments on commit e740e96

Please sign in to comment.