Skip to content

ci: pin the Flutter version in build.yaml - #45

Merged
rickdijk merged 1 commit into
developfrom
rick/fpl-32-octo_image-pin-the-flutter-version-in-ci
Sep 23, 2026
Merged

rickdijk merged 1 commit into
developfrom
rick/fpl-32-octo_image-pin-the-flutter-version-in-ci

Conversation

@rickdijk

Copy link
Copy Markdown
Collaborator

✨ What kind of change does this PR introduce? (Bug fix, feature, docs update...)

CI-only change: pin the Flutter version used in .github/workflows/build.yaml.

⤵️ What is the current behavior?

Every subosito/flutter-action step sets channel: "stable" with no flutter-version, so CI runs whatever stable happens to be on the day. That is exactly what let CI go red with no commit to the repo (FPL-34: stable moved past the example's old AGP/Kotlin). architecture: x64 is also passed on the macos-latest runners, which are Apple Silicon, not x64.

🆕 What is the new behavior (if this is a feature change)?

  • Workflow-level env: FLUTTER_VERSION: "3.47.4", matching the version flutter_cache_manager pins, referenced as flutter-version: ${{ env.FLUTTER_VERSION }} in every subosito/flutter-action step.
  • Dropped architecture: x64 from the two macos-latest jobs (build_ios, build_macOS).
  • AGENTS.md now states the pinned version and how to bump it.
  • Verifying locally at 3.47.4 also regenerated analysis_options.yaml (build dir excludes) and example/linux/flutter/generated_plugins.cmake (FFI plugin list) to match current Flutter tooling; no analyzer/lint findings turned up.

💥 Does this PR introduce a breaking change?

No. CI-only, no pubspec.yaml version bump.

🐛 Recommendations for testing

Confirm this PR's own build.yaml run is green, and check the "Set up Flutter" step logs show Flutter 3.47.4.

📝 Links to relevant issues/docs

Closes FPL-32. Follows FPL-34 (green baseline, PR #43). Reference repo: flutter_cache_manager.

🤔 Checklist before submitting

  • All projects build
  • Follows style guide lines
  • Relevant documentation was updated
  • Rebased onto current develop

🤖 Generated with Claude Code

Every subosito/flutter-action step set channel: "stable" with no
flutter-version, so CI ran whatever stable happened to be on the day.
That is what let CI go red with no commit to the repo (FPL-34).

Add a workflow-level FLUTTER_VERSION env var, matching the version
flutter_cache_manager pins, and reference it from every
flutter-action step. Also drop architecture: x64 from the two
macos-latest jobs, which run on Apple Silicon, not x64.

Update AGENTS.md to state the pinned version and how to bump it.

Verified locally at Flutter 3.47.4: dart format, flutter analyze,
flutter test, and the Android example release build are all clean,
which also regenerated analysis_options.yaml (build dir excludes)
and example/linux/flutter/generated_plugins.cmake (FFI plugin list)
to match current Flutter tooling.

Fixes FPL-32.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@rickdijk
rickdijk merged commit 71e04a1 into develop Sep 23, 2026
10 checks passed
@rickdijk
rickdijk deleted the rick/fpl-32-octo_image-pin-the-flutter-version-in-ci branch September 23, 2026 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant