build: Use flutter version from pubspec.yaml instead of env file
This commit is contained in:
parent
127c3fd7bf
commit
386d01296f
6 changed files with 14 additions and 40 deletions
20
.github/workflows/integrate.yaml
vendored
20
.github/workflows/integrate.yaml
vendored
|
|
@ -12,10 +12,9 @@ jobs:
|
||||||
- uses: webiny/action-conventional-commits@v1.3.1
|
- uses: webiny/action-conventional-commits@v1.3.1
|
||||||
- run: ./scripts/generate-locale-config.sh
|
- run: ./scripts/generate-locale-config.sh
|
||||||
- run: git diff --exit-code
|
- run: git diff --exit-code
|
||||||
- run: cat .github/workflows/versions.env >> $GITHUB_ENV
|
|
||||||
- uses: subosito/flutter-action@v2
|
- uses: subosito/flutter-action@v2
|
||||||
with:
|
with:
|
||||||
flutter-version: ${{ env.FLUTTER_VERSION }}
|
flutter-version-file: pubspec.yaml
|
||||||
cache: true
|
cache: true
|
||||||
- name: Check for unused translations
|
- name: Check for unused translations
|
||||||
run: flutter pub run translations_cleaner list-unused-terms -a
|
run: flutter pub run translations_cleaner list-unused-terms -a
|
||||||
|
|
@ -51,14 +50,9 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
- uses: ./.github/actions/free_up_space
|
- uses: ./.github/actions/free_up_space
|
||||||
- run: cat .github/workflows/versions.env >> $GITHUB_ENV
|
|
||||||
- uses: actions/setup-java@v5
|
|
||||||
with:
|
|
||||||
java-version: ${{ env.JAVA_VERSION }}
|
|
||||||
distribution: "zulu"
|
|
||||||
- uses: subosito/flutter-action@v2
|
- uses: subosito/flutter-action@v2
|
||||||
with:
|
with:
|
||||||
flutter-version: ${{ env.FLUTTER_VERSION }}
|
flutter-version-file: pubspec.yaml
|
||||||
cache: true
|
cache: true
|
||||||
- uses: moonrepo/setup-rust@v1
|
- uses: moonrepo/setup-rust@v1
|
||||||
with:
|
with:
|
||||||
|
|
@ -84,10 +78,9 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
- run: cat .github/workflows/versions.env >> $GITHUB_ENV
|
|
||||||
- uses: subosito/flutter-action@v2
|
- uses: subosito/flutter-action@v2
|
||||||
with:
|
with:
|
||||||
flutter-version: ${{ env.FLUTTER_VERSION }}
|
flutter-version-file: pubspec.yaml
|
||||||
cache: true
|
cache: true
|
||||||
- uses: moonrepo/setup-rust@v1
|
- uses: moonrepo/setup-rust@v1
|
||||||
- run: rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
|
- run: rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
|
||||||
|
|
@ -109,9 +102,9 @@ jobs:
|
||||||
runs-on: ${{ matrix.arch == 'arm64' && 'ubuntu-24.04-arm' || 'ubuntu-latest'}}
|
runs-on: ${{ matrix.arch == 'arm64' && 'ubuntu-24.04-arm' || 'ubuntu-latest'}}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
- run: cat .github/workflows/versions.env >> $GITHUB_ENV
|
|
||||||
- name: Install dependencies
|
- 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 libwebkit2gtk-4.1-dev -y
|
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 libwebkit2gtk-4.1-dev -y
|
||||||
|
- run: echo "FLUTTER_VERSION=$(yq '.environment.flutter' < pubspec.yaml)" >> $GITHUB_ENV
|
||||||
- name: Install Flutter
|
- name: Install Flutter
|
||||||
run: |
|
run: |
|
||||||
git clone --branch ${{ env.FLUTTER_VERSION }} https://github.com/flutter/flutter.git
|
git clone --branch ${{ env.FLUTTER_VERSION }} https://github.com/flutter/flutter.git
|
||||||
|
|
@ -125,10 +118,9 @@ jobs:
|
||||||
runs-on: macos-15
|
runs-on: macos-15
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
- run: cat .github/workflows/versions.env >> $GITHUB_ENV
|
|
||||||
- uses: subosito/flutter-action@v2
|
- uses: subosito/flutter-action@v2
|
||||||
with:
|
with:
|
||||||
flutter-version: ${{ env.FLUTTER_VERSION }}
|
flutter-version-file: pubspec.yaml
|
||||||
cache: true
|
cache: true
|
||||||
- name: Use Xcode 16.4
|
- name: Use Xcode 16.4
|
||||||
run: sudo xcode-select --switch /Applications/Xcode_16.4.app
|
run: sudo xcode-select --switch /Applications/Xcode_16.4.app
|
||||||
|
|
@ -202,7 +194,7 @@ jobs:
|
||||||
echo "Generated AVD snapshot for caching."
|
echo "Generated AVD snapshot for caching."
|
||||||
- uses: subosito/flutter-action@v2
|
- uses: subosito/flutter-action@v2
|
||||||
with:
|
with:
|
||||||
flutter-version: ${{ env.FLUTTER_VERSION }}
|
flutter-version-file: pubspec.yaml
|
||||||
cache: true
|
cache: true
|
||||||
- uses: remarkablemark/setup-maestro-cli@v1
|
- uses: remarkablemark/setup-maestro-cli@v1
|
||||||
- name: Load integration test env
|
- name: Load integration test env
|
||||||
|
|
|
||||||
10
.github/workflows/main_deploy.yaml
vendored
10
.github/workflows/main_deploy.yaml
vendored
|
|
@ -15,10 +15,9 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
- run: cat .github/workflows/versions.env >> $GITHUB_ENV
|
|
||||||
- uses: subosito/flutter-action@v2
|
- uses: subosito/flutter-action@v2
|
||||||
with:
|
with:
|
||||||
flutter-version: ${{ env.FLUTTER_VERSION }}
|
flutter-version-file: pubspec.yaml
|
||||||
- uses: moonrepo/setup-rust@v1
|
- uses: moonrepo/setup-rust@v1
|
||||||
- run: rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
|
- run: rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
|
||||||
- name: Prepare web
|
- name: Prepare web
|
||||||
|
|
@ -40,14 +39,9 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
- run: cat .github/workflows/versions.env >> $GITHUB_ENV
|
|
||||||
- uses: actions/setup-java@v5
|
|
||||||
with:
|
|
||||||
java-version: ${{ env.JAVA_VERSION }}
|
|
||||||
distribution: 'zulu'
|
|
||||||
- uses: subosito/flutter-action@v2
|
- uses: subosito/flutter-action@v2
|
||||||
with:
|
with:
|
||||||
flutter-version: ${{ env.FLUTTER_VERSION }}
|
flutter-version-file: pubspec.yaml
|
||||||
cache: true
|
cache: true
|
||||||
- name: Set up Ruby
|
- name: Set up Ruby
|
||||||
uses: ruby/setup-ruby@v1
|
uses: ruby/setup-ruby@v1
|
||||||
|
|
|
||||||
19
.github/workflows/release.yaml
vendored
19
.github/workflows/release.yaml
vendored
|
|
@ -18,10 +18,9 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
- run: cat .github/workflows/versions.env >> $GITHUB_ENV
|
|
||||||
- uses: subosito/flutter-action@v2
|
- uses: subosito/flutter-action@v2
|
||||||
with:
|
with:
|
||||||
flutter-version: ${{ env.FLUTTER_VERSION }}
|
flutter-version-file: pubspec.yaml
|
||||||
cache: true
|
cache: true
|
||||||
- uses: moonrepo/setup-rust@v1
|
- uses: moonrepo/setup-rust@v1
|
||||||
- run: rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
|
- run: rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
|
||||||
|
|
@ -67,14 +66,9 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
- run: cat .github/workflows/versions.env >> $GITHUB_ENV
|
|
||||||
- uses: actions/setup-java@v5
|
|
||||||
with:
|
|
||||||
java-version: ${{ env.JAVA_VERSION }}
|
|
||||||
distribution: 'zulu'
|
|
||||||
- uses: subosito/flutter-action@v2
|
- uses: subosito/flutter-action@v2
|
||||||
with:
|
with:
|
||||||
flutter-version: ${{ env.FLUTTER_VERSION }}
|
flutter-version-file: pubspec.yaml
|
||||||
cache: true
|
cache: true
|
||||||
- name: Add Firebase Messaging
|
- name: Add Firebase Messaging
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -107,9 +101,9 @@ jobs:
|
||||||
runs-on: ${{ matrix.arch == 'arm64' && 'ubuntu-24.04-arm' || 'ubuntu-latest'}}
|
runs-on: ${{ matrix.arch == 'arm64' && 'ubuntu-24.04-arm' || 'ubuntu-latest'}}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
- run: cat .github/workflows/versions.env >> $GITHUB_ENV
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: sudo apt-get update && sudo apt-get install 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 libwebkit2gtk-4.1-dev -y
|
run: sudo apt-get update && sudo apt-get install 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 libwebkit2gtk-4.1-dev -y
|
||||||
|
- run: echo "FLUTTER_VERSION=$(yq '.environment.flutter' < pubspec.yaml)" >> $GITHUB_ENV
|
||||||
- name: Install Flutter
|
- name: Install Flutter
|
||||||
run: |
|
run: |
|
||||||
git clone --branch ${{ env.FLUTTER_VERSION }} https://github.com/flutter/flutter.git
|
git clone --branch ${{ env.FLUTTER_VERSION }} https://github.com/flutter/flutter.git
|
||||||
|
|
@ -133,14 +127,9 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
- run: cat .github/workflows/versions.env >> $GITHUB_ENV
|
|
||||||
- uses: actions/setup-java@v5
|
|
||||||
with:
|
|
||||||
java-version: ${{ env.JAVA_VERSION }}
|
|
||||||
distribution: 'zulu'
|
|
||||||
- uses: subosito/flutter-action@v2
|
- uses: subosito/flutter-action@v2
|
||||||
with:
|
with:
|
||||||
flutter-version: ${{ env.FLUTTER_VERSION }}
|
flutter-version-file: pubspec.yaml
|
||||||
cache: true
|
cache: true
|
||||||
- name: Set up Ruby
|
- name: Set up Ruby
|
||||||
uses: ruby/setup-ruby@v1
|
uses: ruby/setup-ruby@v1
|
||||||
|
|
|
||||||
2
.github/workflows/versions.env
vendored
2
.github/workflows/versions.env
vendored
|
|
@ -1,2 +0,0 @@
|
||||||
FLUTTER_VERSION=3.41.2
|
|
||||||
JAVA_VERSION=17
|
|
||||||
|
|
@ -2316,4 +2316,4 @@ packages:
|
||||||
version: "3.1.3"
|
version: "3.1.3"
|
||||||
sdks:
|
sdks:
|
||||||
dart: ">=3.10.3 <4.0.0"
|
dart: ">=3.10.3 <4.0.0"
|
||||||
flutter: ">=3.38.4"
|
flutter: "3.41.3"
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ version: 2.4.0+3546
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=3.10.0 <4.0.0"
|
sdk: ">=3.10.0 <4.0.0"
|
||||||
|
flutter: 3.41.3
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
animations: ^2.1.1
|
animations: ^2.1.1
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue