Skip to content

Commit

Permalink
Update flutter-actions.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
X-Wei authored Apr 21, 2024
1 parent 6aededb commit 5606219
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/flutter-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,20 @@ on:
workflow_dispatch:

jobs:
build:
build-android:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
cache: true
- run: flutter pub get
- run: flutter build apk

build-ios:
runs-on: macos-latest
steps:
- name: Clone repository
Expand All @@ -13,6 +26,10 @@ jobs:
uses: subosito/flutter-action@v2
with:
channel: stable
cache: true
- name: Update Cocoapods repo
run: pod repo update
- name: Install pods
run: cd ios && pod install && cd ..
- run: flutter pub get
- run: flutter build ios --release --no-codesign
- run: flutter build apk

0 comments on commit 5606219

Please sign in to comment.