Skip to content

Commit

Permalink
added ci/cd integration for flutter app
Browse files Browse the repository at this point in the history
  • Loading branch information
SrS2225a committed Feb 2, 2025
1 parent 40f9909 commit 4c8d525
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/flutter_build_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Flutter Build Test

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:
name: Build Flutter App
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true # Ensures the Flutter submodule is checked out

- name: Set up Java 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'

- name: Set up Flutter
run: |
echo "Adding Flutter to PATH"
echo "$GITHUB_WORKSPACE/flutter/bin" >> $GITHUB_PATH
flutter/bin/flutter doctor
- name: Install dependencies
run: flutter/bin/flutter pub get

- name: Build APK (Release)
run: flutter/bin/flutter build apk --release

- name: Build App Bundle (AAB)
run: flutter/bin/flutter build appbundle --release

0 comments on commit 4c8d525

Please sign in to comment.