-
Notifications
You must be signed in to change notification settings - Fork 557
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:X-Wei/flutter_catalog
fix iOS build
- Loading branch information
Showing
110 changed files
with
5,417 additions
and
668 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"flutterSdkVersion": "stable" | ||
"flutterSdkVersion": "3.19.6" | ||
} |
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,3 @@ | ||
{ | ||
"flutter": "3.19.6" | ||
} |
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,42 @@ | ||
name: Build for Android | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-android-apk: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Cache Flutter | ||
uses: actions/cache@v3 | ||
id: flutter-cache | ||
with: | ||
key: $GITHUB_SHA-flutter | ||
path: ~/.flutter | ||
|
||
- name: Cache Gradle | ||
uses: actions/cache@v3 | ||
id: gradle-cache | ||
with: | ||
key: $GITHUB_SHA-gradle | ||
path: ~/.gradle | ||
|
||
- name: Set up JDK 19 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: "19" | ||
distribution: 'temurin' | ||
cache: "gradle" | ||
|
||
- name: Set up Flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
channel: stable | ||
cache: true | ||
|
||
- run: flutter pub get | ||
|
||
- run: flutter build apk |
45 changes: 4 additions & 41 deletions
45
.github/workflows/flutter-actions.yml → .github/workflows/build-ios.yml
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
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,30 @@ | ||
name: Build web & publish to Github Pages | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-and-deploy-web: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v4 | ||
- name: Cache Flutter | ||
uses: actions/cache@v3 | ||
id: flutter-cache | ||
with: | ||
key: $GITHUB_SHA-flutter | ||
path: ~/.flutter | ||
- name: Set up Flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
channel: stable | ||
cache: true | ||
- name: Build and deploy to GH pages | ||
uses: bluefireteam/flutter-gh-pages@v7 | ||
with: | ||
baseHref: /flutter_catalog/ | ||
# - run: flutter pub get | ||
# - run: flutter build web --release | ||
# - name: Deploy to GH pages | ||
# uses: peaceiris/actions-gh-pages@v4 |
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
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
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
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
Oops, something went wrong.