Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Add build apk android on win/mac #1105

Merged
merged 4 commits into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 48 additions & 4 deletions .github/workflows/runnable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- main
paths:
- .github/workflows/runnable.yml
- 'lib/**'
- 'test/**'
- 'android/**'
Expand All @@ -24,6 +25,7 @@ on:
branches:
- main
paths:
- .github/workflows/runnable.yml
- 'lib/**'
- 'test/**'
- 'android/**'
Expand Down Expand Up @@ -60,6 +62,7 @@ jobs:
run: |
dart --version
flutter --version
- run: flutter doctor -v
- name: Prepare dependencies
run: flutter pub get
- name: Check Dart code formatting
Expand All @@ -86,6 +89,7 @@ jobs:
with:
channel: 'stable'
cache: true
- run: flutter doctor -v
- name: Prepare dependencies
run: flutter pub get
- name: Copy before dry run
Expand Down Expand Up @@ -116,8 +120,49 @@ jobs:
with:
channel: 'stable'
cache: true
- run: dart --version
- run: flutter --version
- run: flutter doctor -v
- run: flutter pub get
- run: cd example; flutter build apk --debug

test_android_on_windows:
needs: analyze
name: Test Android build on windows
runs-on: windows-latest
strategy:
matrix:
os: [ ubuntu-latest ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
cache: true
- run: flutter doctor -v
- run: flutter pub get
- run: cd example; flutter build apk --debug

test_android_on_macos:
needs: analyze
name: Test Android build on macOS
runs-on: macos-latest
strategy:
matrix:
os: [ ubuntu-latest ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
cache: true
- run: flutter doctor -v
- run: flutter pub get
- run: cd example; flutter build apk --debug

Expand All @@ -139,8 +184,7 @@ jobs:
channel: 'stable'
architecture: x64
cache: true
- run: dart --version
- run: flutter --version
- run: flutter doctor -v
- run: flutter pub get
- run: cd example; flutter build ios --no-codesign
- run: cd example; flutter build macos --debug
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ class CustomFilterSqlGIFImage extends StatefulWidget {
final Widget Function(BuildContext context, CustomFilter filter) builder;

@override
State<CustomFilterSqlGIFImage> createState() => _CustomFilterSqlGIFImageState();
State<CustomFilterSqlGIFImage> createState() =>
_CustomFilterSqlGIFImageState();
}

class _CustomFilterSqlGIFImageState extends State<CustomFilterSqlGIFImage> {
Expand Down
Loading