2323jobs :
2424 verify :
2525 name : Format & Analyze & Test
26- runs-on : ubuntu-latest
26+ runs-on : ubuntu-cpu16-ram64
27+ timeout-minutes : 30
2728 strategy :
29+ fail-fast : false
2830 matrix :
2931 cronetHttpNoPlay : ['false', 'true']
3032 defaults :
3133 run :
3234 working-directory : pkgs/cronet_http
3335 steps :
34- - uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
35- - uses : actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9
36+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
37+ - uses : actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12
3638 with :
3739 distribution : ' zulu'
3840 java-version : ' 17'
39- - uses : subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1
41+ - uses : subosito/flutter-action@f2c4f6686ca8e8d6e6d0f28410eeef506ed66aff
4042 with :
4143 channel : ' stable'
4244 - id : install
@@ -48,15 +50,28 @@ jobs:
4850 - name : Analyze code
4951 if : always() && steps.install.outcome == 'success'
5052 run : flutter analyze --fatal-infos
53+ - name : Enable KVM group perms
54+ run : |
55+ echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
56+ sudo udevadm control --reload-rules
57+ sudo udevadm trigger --name-match=kvm
5158 - name : Run tests
52- uses : reactivecircus/android-emulator-runner@77986be26589807b8ebab3fde7bbf5c60dabec32
59+ uses : reactivecircus/android-emulator-runner@62dbb605bba737720e10b196cb4220d374026a6d
5360 if : always() && steps.install.outcome == 'success'
5461 with :
5562 # api-level/minSdkVersion should be help in sync in:
5663 # - .github/workflows/cronet.yml
5764 # - pkgs/cronet_http/android/build.gradle
5865 # - pkgs/cronet_http/example/android/app/build.gradle
59- api-level : 21
66+
67+ # Google Play services does not support older Android API levels;
68+ # as of March 2025, they supported API level 23 and higher. Instead
69+ # of breaking when support for API level 23 is removed, just run
70+ # the tests that rely on Google Play services with the newest API
71+ # level (34 as of March 2025). The tests that don't rely on Google
72+ # Play serviecs can test the oldest supported API level.
73+ api-level : ${{ matrix.cronetHttpNoPlay == 'true' && '21' || '29' }}
74+ disable-animations : true
6075 arch : x86_64
6176 target : ${{ matrix.cronetHttpNoPlay == 'true' && 'default' || 'google_apis' }}
6277 script : cd pkgs/cronet_http/example && flutter test --dart-define=cronetHttpNoPlay=${{ matrix.cronetHttpNoPlay }} --timeout=1200s integration_test/
0 commit comments