Skip to content

Commit 4add286

Browse files
committed
Update github workflow
1 parent 515d14c commit 4add286

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/flutter_ci_cd.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,15 @@ jobs:
3232
flutter-version: ${{ env.FLUTTER_VERSION }}
3333
channel: stable
3434
cache: true
35+
36+
- name: Install GTK3 and Build Tools
37+
run: |
38+
sudo apt-get update
39+
sudo apt-get install -y libgtk-3-dev build-essential pkg-config
3540
41+
- name: Accept Android Licenses
42+
run: yes | flutter doctor --android-licenses
43+
3644
- name: Install dependencies
3745
run: flutter pub get
3846

@@ -41,22 +49,22 @@ jobs:
4149

4250
- name: Build APK (Release - Unsigned)
4351
run: |
44-
flutter build apk --release --target-platform android-arm64
52+
flutter build apk --split-per-abi
4553
echo "APK built successfully!"
4654
ls -la build/app/outputs/flutter-apk/
4755
4856
- name: Upload APK artifact
4957
uses: actions/upload-artifact@v4
5058
with:
5159
name: app-release-unsigned
52-
path: build/app/outputs/flutter-apk/app-release-arm64.apk
60+
path: build/app/outputs/flutter-apk/*.apk
5361
retention-days: 2
5462

5563
- name: Create GitHub Release
5664
if: startsWith(github.ref, 'refs/tags/v')
5765
uses: softprops/action-gh-release@v1
5866
with:
59-
files: build/app/outputs/flutter-apk/app-release-arm64.apk
67+
files: build/app/outputs/flutter-apk/*.apk
6068
generate_release_notes: true
6169
prerelease: false
6270
draft: false

0 commit comments

Comments
 (0)