Skip to content

Commit 8532175

Browse files
committed
Update cronet.yml
1 parent e783eaa commit 8532175

File tree

1 file changed

+31
-4
lines changed

1 file changed

+31
-4
lines changed

.github/workflows/cronet.yml

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,37 @@ env:
2121
PUB_ENVIRONMENT: bot.github
2222

2323
jobs:
24+
generate:
25+
name: jnigen
26+
runs-on: ubuntu-latest
27+
defaults:
28+
run:
29+
working-directory: pkgs/cronet_http
30+
steps:
31+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
32+
- uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165
33+
with:
34+
distribution: 'zulu'
35+
java-version: '17'
36+
- uses: subosito/flutter-action@fd55f4c5af5b953cc57a2be44cb082c8f6635e8e
37+
with:
38+
channel: 'stable'
39+
- id: install
40+
name: Install dependencies
41+
run: flutter pub get
42+
- name: Build APK
43+
run: cd example && flutter build apk && cd ..
44+
- name: Regenerate
45+
run: dart run jnigen --config jnigen.yaml
46+
- name: Generated Diff
47+
run: git diff --exit-code
48+
- name: Upload dependency graph
49+
if: failure()
50+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
51+
with:
52+
name: Bindings
53+
path: lib/src/jni/jni_bindings.dart
54+
retention-days: 1
2455
verify:
2556
name: Format & Analyze & Test (${{ matrix.cronetHttpNoPlay == 'true' && 'without Google Play' || 'with Google Play'}})
2657
runs-on: ubuntu-cpu16-ram64
@@ -50,10 +81,6 @@ jobs:
5081
- name: Analyze code
5182
if: always() && steps.install.outcome == 'success'
5283
run: flutter analyze --fatal-infos
53-
- name: Build APK
54-
run: cd pkgs/cronet_http/example && flutter build apk && cd ..
55-
- name: Regenerate
56-
run: dart run jnigen --config jnigen.yaml
5784
- name: Enable KVM group perms
5885
run: |
5986
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules

0 commit comments

Comments
 (0)