Require Flutter 3.47.9 for all builds
pubspec.yaml now pins environment.flutter to 3.47.9, so pub get refuses other SDKs. Every CI job reads that pin via flutter-version-file, including the web deploy (was 3.41.2). The AppImage SDK pin moves to 3.47.9 and CI fails if it drifts from pubspec. The Nix shell no longer bundles Flutter, since nixpkgs only packages 3.47.4; it warns when the SDK on PATH is missing or the wrong version.
This commit is contained in:
1 parent
0e01fd27dd
commit
7087203c6b
9 files changed
+43
-25
No files matched your search
@@ -17,7 +17,7 @@ jobs:
|
||||
java-version: "17"
|
||||
- uses: subosito/flutter-action@v2
|
||||
with:
|
||||
channel: "stable"
|
||||
flutter-version-file: pubspec.yaml
|
||||
cache: true
|
||||
- name: Cache Gradle
|
||||
uses: actions/cache@v4
|
||||
@@ -37,7 +37,7 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: subosito/flutter-action@v2
|
||||
with:
|
||||
channel: "stable"
|
||||
flutter-version-file: pubspec.yaml
|
||||
cache: true
|
||||
- run: flutter pub get
|
||||
- run: flutter build ios --release --no-codesign --no-pub
|
||||
@@ -122,7 +122,7 @@ jobs:
|
||||
mkdir -p build
|
||||
flutter --version
|
||||
flutter --version --machine > build/flutter-version.json
|
||||
jq -e --arg revision "$FLUTTER_REVISION" '.frameworkVersion == "3.47.4" and .frameworkRevision == $revision' build/flutter-version.json
|
||||
jq -e --arg revision "$FLUTTER_REVISION" --arg version "$(jq -r '.flutter.version' scripts/appimage-tools.json)" '.frameworkVersion == $version and .frameworkRevision == $revision' build/flutter-version.json
|
||||
- name: Install Linux build deps
|
||||
run: |
|
||||
sudo apt-get update
|
||||
@@ -183,7 +183,7 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: subosito/flutter-action@v2
|
||||
with:
|
||||
channel: "stable"
|
||||
flutter-version-file: pubspec.yaml
|
||||
cache: true
|
||||
- run: flutter pub get
|
||||
- run: flutter build macos --release --no-pub
|
||||
@@ -194,7 +194,7 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: subosito/flutter-action@v2
|
||||
with:
|
||||
channel: "stable"
|
||||
flutter-version-file: pubspec.yaml
|
||||
cache: true
|
||||
- run: flutter pub get
|
||||
- run: flutter build web --release --no-pub
|
||||
@@ -15,9 +15,7 @@ jobs:
|
||||
- name: Setup Flutter
|
||||
uses: subosito/flutter-action@v2
|
||||
with:
|
||||
channel: 'stable'
|
||||
# Match local development version which provides Dart 3.11.0
|
||||
flutter-version: '3.41.2'
|
||||
flutter-version-file: pubspec.yaml
|
||||
|
||||
- name: Setup Bun
|
||||
uses: oven-sh/setup-bun@v2
|
||||
|
||||
@@ -16,7 +16,16 @@ jobs:
|
||||
- name: Set up Flutter
|
||||
uses: subosito/flutter-action@v2
|
||||
with:
|
||||
channel: stable
|
||||
flutter-version-file: pubspec.yaml
|
||||
|
||||
- name: Check Flutter pins agree
|
||||
run: |
|
||||
pubspec=$(sed -n 's/^ flutter: *//p' pubspec.yaml)
|
||||
appimage=$(jq -r '.flutter.version' scripts/appimage-tools.json)
|
||||
if [ "$pubspec" != "$appimage" ]; then
|
||||
echo "pubspec.yaml pins Flutter $pubspec but scripts/appimage-tools.json pins $appimage" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Install dependencies
|
||||
run: flutter pub get
|
||||
|
||||
Reference in new issue
Block a user