Skip to content

Commit

Permalink
feat: add build-android and build-ios action
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoweii committed Oct 26, 2023
1 parent 41eec04 commit 63dee0c
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 17 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/build-android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Flutter SDK Build for Android

on:
push:
branches: [ "*" ]
pull_request:
branches: [ "main" ]

jobs:
build-android:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v2
with:
distribution: 'corretto'
java-version: '11'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Run build apk
run: |
flutter pub get
cd example
flutter build apk
22 changes: 22 additions & 0 deletions .github/workflows/build-ios.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Flutter SDK Build for iOS

on:
push:
branches: [ "*" ]
pull_request:
branches: [ "main" ]

jobs:
build-ios:
runs-on: macos-13-xl
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
architecture: x64
- name: Run build ios
run: |
flutter pub get
cd example
flutter build ios --release --no-codesign
17 changes: 0 additions & 17 deletions .github/workflows/build.yml

This file was deleted.

1 change: 1 addition & 0 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ description: Demonstrates how to use the clickstream_flutter plugin.
# The following line prevents the package from being accidentally published to
# pub.dev using `flutter pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1

environment:
sdk: '>=3.1.3 <4.0.0'
Expand Down

0 comments on commit 63dee0c

Please sign in to comment.