-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add nightly build on latest stable sdk (#147)
Co-authored-by: Hoang Tran <[email protected]>
- Loading branch information
1 parent
53fabee
commit 627fc2e
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Nightly built. | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "20 2 * * *" # 02:20 am every day | ||
|
||
jobs: | ||
build-android: | ||
name: Build Android | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: example | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
channel: stable | ||
- uses: actions/setup-java@v4 | ||
with: | ||
java-version: "17" | ||
distribution: "temurin" | ||
- run: flutter pub get | ||
- name: Build appbundle. | ||
run: flutter build appbundle --profile --no-pub | ||
|
||
build-iOS: | ||
name: Build iOS | ||
runs-on: macos-latest | ||
defaults: | ||
run: | ||
working-directory: example | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
channel: stable | ||
- run: flutter pub get | ||
- name: Build iOS package | ||
run: flutter build ios --simulator |