chore: Introduce tool versions file
This commit is contained in:
parent
3b204373e9
commit
06827038d8
6 changed files with 15 additions and 14 deletions
12
.github/workflows/integrate.yaml
vendored
12
.github/workflows/integrate.yaml
vendored
|
|
@ -14,7 +14,7 @@ jobs:
|
||||||
- run: git diff --exit-code
|
- run: git diff --exit-code
|
||||||
- uses: subosito/flutter-action@v2
|
- uses: subosito/flutter-action@v2
|
||||||
with:
|
with:
|
||||||
flutter-version-file: pubspec.yaml
|
flutter-version-file: .tool_versions.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
|
||||||
|
|
@ -52,7 +52,7 @@ jobs:
|
||||||
- uses: ./.github/actions/free_up_space
|
- uses: ./.github/actions/free_up_space
|
||||||
- uses: subosito/flutter-action@v2
|
- uses: subosito/flutter-action@v2
|
||||||
with:
|
with:
|
||||||
flutter-version-file: pubspec.yaml
|
flutter-version-file: .tool_versions.yaml
|
||||||
cache: true
|
cache: true
|
||||||
- uses: moonrepo/setup-rust@v1
|
- uses: moonrepo/setup-rust@v1
|
||||||
with:
|
with:
|
||||||
|
|
@ -80,7 +80,7 @@ jobs:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
- uses: subosito/flutter-action@v2
|
- uses: subosito/flutter-action@v2
|
||||||
with:
|
with:
|
||||||
flutter-version-file: pubspec.yaml
|
flutter-version-file: .tool_versions.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
|
||||||
|
|
@ -104,7 +104,7 @@ jobs:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
- 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
|
- run: echo "FLUTTER_VERSION=$(yq '.environment.flutter' < .tool_versions.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
|
||||||
|
|
@ -120,7 +120,7 @@ jobs:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
- uses: subosito/flutter-action@v2
|
- uses: subosito/flutter-action@v2
|
||||||
with:
|
with:
|
||||||
flutter-version-file: pubspec.yaml
|
flutter-version-file: .tool_versions.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
|
||||||
|
|
@ -194,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-file: pubspec.yaml
|
flutter-version-file: .tool_versions.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
|
||||||
|
|
|
||||||
4
.github/workflows/main_deploy.yaml
vendored
4
.github/workflows/main_deploy.yaml
vendored
|
|
@ -17,7 +17,7 @@ jobs:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
- uses: subosito/flutter-action@v2
|
- uses: subosito/flutter-action@v2
|
||||||
with:
|
with:
|
||||||
flutter-version-file: pubspec.yaml
|
flutter-version-file: .tool_versions.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
|
||||||
|
|
@ -41,7 +41,7 @@ jobs:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
- uses: subosito/flutter-action@v2
|
- uses: subosito/flutter-action@v2
|
||||||
with:
|
with:
|
||||||
flutter-version-file: pubspec.yaml
|
flutter-version-file: .tool_versions.yaml
|
||||||
cache: true
|
cache: true
|
||||||
- name: Set up Ruby
|
- name: Set up Ruby
|
||||||
uses: ruby/setup-ruby@v1
|
uses: ruby/setup-ruby@v1
|
||||||
|
|
|
||||||
8
.github/workflows/release.yaml
vendored
8
.github/workflows/release.yaml
vendored
|
|
@ -20,7 +20,7 @@ jobs:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
- uses: subosito/flutter-action@v2
|
- uses: subosito/flutter-action@v2
|
||||||
with:
|
with:
|
||||||
flutter-version-file: pubspec.yaml
|
flutter-version-file: .tool_versions.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
|
||||||
|
|
@ -80,7 +80,7 @@ jobs:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
- uses: subosito/flutter-action@v2
|
- uses: subosito/flutter-action@v2
|
||||||
with:
|
with:
|
||||||
flutter-version-file: pubspec.yaml
|
flutter-version-file: .tool_versions.yaml
|
||||||
cache: true
|
cache: true
|
||||||
- name: Add Firebase Messaging
|
- name: Add Firebase Messaging
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -115,7 +115,7 @@ jobs:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
- 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
|
- run: echo "FLUTTER_VERSION=$(yq '.environment.flutter' < .tool_versions.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
|
||||||
|
|
@ -141,7 +141,7 @@ jobs:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
- uses: subosito/flutter-action@v2
|
- uses: subosito/flutter-action@v2
|
||||||
with:
|
with:
|
||||||
flutter-version-file: pubspec.yaml
|
flutter-version-file: .tool_versions.yaml
|
||||||
cache: true
|
cache: true
|
||||||
- name: Set up Ruby
|
- name: Set up Ruby
|
||||||
uses: ruby/setup-ruby@v1
|
uses: ruby/setup-ruby@v1
|
||||||
|
|
|
||||||
2
.tool_versions.yaml
Normal file
2
.tool_versions.yaml
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
environment:
|
||||||
|
flutter: 3.41.4
|
||||||
|
|
@ -2268,4 +2268,4 @@ packages:
|
||||||
version: "3.1.3"
|
version: "3.1.3"
|
||||||
sdks:
|
sdks:
|
||||||
dart: ">=3.11.1 <4.0.0"
|
dart: ">=3.11.1 <4.0.0"
|
||||||
flutter: "3.41.4"
|
flutter: ">=3.38.4"
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,6 @@ version: 2.4.0+3546
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=3.11.1 <4.0.0"
|
sdk: ">=3.11.1 <4.0.0"
|
||||||
flutter: "3.41.4"
|
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
archive: ^4.0.7
|
archive: ^4.0.7
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue