1+ on : [ push, pull_request ]
2+ name : Build
3+ jobs :
4+ build :
5+ name : OpenBubbles APK
6+ runs-on : ubuntu-latest
7+ steps :
8+ - uses : actions/checkout@v4
9+ with :
10+ submodules : recursive
11+
12+ - name : Free Disk Space (Ubuntu)
13+ uses : jlumbroso/free-disk-space@main
14+ with :
15+ tool-cache : true
16+ android : false
17+ dotnet : true
18+ haskell : true
19+ large-packages : true
20+ swap-storage : true
21+
22+ - name : Set up Rust
23+ uses : actions-rs/toolchain@v1
24+ with :
25+ toolchain : stable
26+
27+ - name : Set up Flutter
28+ uses : subosito/flutter-action@v2
29+ with :
30+ channel : stable
31+ flutter-version : 3.24.0
32+
33+ - name : Set up Java
34+ uses : actions/setup-java@v2
35+ with :
36+ java-version : ' 21'
37+ distribution : ' temurin'
38+
39+ - name : Install Protobuf compiler
40+ run : sudo apt-get install -y protobuf-compiler
41+
42+ - name : Set up fake Fairplay keys
43+ run : |
44+ mkdir -p rustpush/certs/fairplay
45+
46+ cert_names=(
47+ "4056631661436364584235346952193"
48+ "4056631661436364584235346952194"
49+ "4056631661436364584235346952195"
50+ "4056631661436364584235346952196"
51+ "4056631661436364584235346952197"
52+ "4056631661436364584235346952198"
53+ "4056631661436364584235346952199"
54+ "4056631661436364584235346952200"
55+ "4056631661436364584235346952201"
56+ "4056631661436364584235346952208"
57+ )
58+
59+ for name in "${cert_names[@]}"; do
60+ touch rustpush/certs/fairplay/$name.pem
61+ touch rustpush/certs/fairplay/$name.crt
62+ done
63+
64+ # First run is expected to fail until ffmpeg_kit_flutter_new is fixed.
65+ - name : Run Build Script
66+ run : |
67+ flutter build apk --flavor alpha --debug --target-platform android-arm64
0 commit comments