AOSSIE-Org / AOSSIE-Org/NeuroTrack

FEATURE REQUEST:Implement PR Build Check for Android & iOS

Đang mở
#72 0 bình luận 0 reaction 1 người được giao Được @xkaper001 nhận Xem trên GitHub
Ngôn ngữ chính
Dart
Star
29
Fork
50
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### Is your feature request related to a problem?

- [x] Yes, it is related to a problem

### Describe the feature you'd like

## 🌟 Feature Description
Implement a GitHub Actions workflow that automatically builds the Android and iOS versions of the Flutter app whenever a pull request (PR) is created or updated. This ensures that new changes do not break the build process before merging.

## 🔍 Problem Statement
Currently, there is no automated check to verify whether a PR causes build failures for Android or iOS. Without this, broken builds might get merged into the main branch, leading to debugging overhead and delays in development.

## 🎯 Expected Outcome
- A GitHub Actions workflow is triggered on every PR creation or update.
- The workflow successfully builds the Android app using flutter build apk.
- The workflow successfully builds the iOS app using flutter build ios (on macOS runner).
- The build process fails if any step encounters an error, preventing broken PRs from being merged.
- Build logs are available for debugging in the GitHub Actions tab.

## 📷 Screenshots and Design Ideas
Workflow YAML configuration will
- pull_request event trigger.
- Separate jobs for Android (Linux runner) and iOS (macOS runner) to optimize resource usage.
- Failure notifications for failed builds.

![Image](https://github.com/user-attachments/assets/f98f8366-5e7f-4e7f-8a68-fa4f8a79d5de)

![Image](https://github.com/user-attachments/assets/f64268f2-d53f-4b4c-aa78-149c98517ee8)

![Image](https://github.com/user-attachments/assets/ddb14c9e-5397-4955-aeba-68481bb7146f)

## 📋 Additional Context
- macOS runners are required for iOS builds due to Xcode dependencies.
- Android builds can be run on Linux runners to reduce costs.
- Future enhancements could include adding automated tests and static code analysis.

### Record

- [x] I agree to follow this project's Code of Conduct
- [x] I want to work on implementing this feature

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.