-
-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Fetch FLUTTER_VERSION from pubspec.yaml file
- Loading branch information
1 parent
b62d3b4
commit c1bd537
Showing
5 changed files
with
18 additions
and
16 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 |
---|---|---|
|
@@ -12,7 +12,7 @@ jobs: | |
- run: cat .github/workflows/versions.env >> $GITHUB_ENV | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: ${{ env.FLUTTER_VERSION }} | ||
flutter-version-file: pubspec.yaml | ||
cache: true | ||
- run: flutter pub get | ||
- run: flutter gen-l10n | ||
|
@@ -35,11 +35,11 @@ jobs: | |
- run: cat .github/workflows/versions.env >> $GITHUB_ENV | ||
- uses: actions/setup-java@v4 | ||
with: | ||
java-version: ${{ env.JAVA_VERSION }} | ||
java-version: 17 | ||
distribution: "zulu" | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: ${{ env.FLUTTER_VERSION }} | ||
flutter-version-file: pubspec.yaml | ||
cache: true | ||
- run: flutter pub get | ||
- run: flutter build apk --debug | ||
|
@@ -51,7 +51,7 @@ jobs: | |
- run: cat .github/workflows/versions.env >> $GITHUB_ENV | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: ${{ env.FLUTTER_VERSION }} | ||
flutter-version-file: pubspec.yaml | ||
cache: true | ||
- run: flutter pub get | ||
- name: Prepare web | ||
|
@@ -68,6 +68,8 @@ jobs: | |
- run: cat .github/workflows/versions.env >> $GITHUB_ENV | ||
- name: Install dependencies | ||
run: sudo apt-get update && sudo apt-get install git wget curl clang cmake ninja-build pkg-config libgtk-3-dev libblkid-dev liblzma-dev libjsoncpp-dev cmake-data libsecret-1-dev libsecret-1-0 librhash0 libssl-dev libwebkit2gtk-4.1-dev -y | ||
- uses: chrisdickinson/setup-yq@latest | ||
- run: FLUTTER_VERSION=$(yq e '.environment.flutter' pubspec.yaml) | ||
- name: Install Flutter | ||
run: | | ||
git clone --branch ${{ env.FLUTTER_VERSION }} https://github.com/flutter/flutter.git | ||
|
@@ -82,7 +84,7 @@ jobs: | |
- run: cat .github/workflows/versions.env >> $GITHUB_ENV | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: ${{ env.FLUTTER_VERSION }} | ||
flutter-version-file: pubspec.yaml | ||
cache: true | ||
- name: Setup Xcode version | ||
uses: maxim-lobanov/[email protected] | ||
|
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 was deleted.
Oops, something went wrong.
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