Skip to content

chore(ci): upgrade Rust toolchain from 1.88 to 1.91#688

Open
temeddix wants to merge 13 commits into
cunarist:mainfrom
temeddix:rust-upgrade/1.91
Open

chore(ci): upgrade Rust toolchain from 1.88 to 1.91#688
temeddix wants to merge 13 commits into
cunarist:mainfrom
temeddix:rust-upgrade/1.91

Conversation

@temeddix

@temeddix temeddix commented Jun 20, 2026

Copy link
Copy Markdown
Member

Changes

  • Upgrade CI workflows from Rust 1.88.0 to 1.91
  • Update official documentation Rust version table

Cause

cargo-platform@0.3.3 requires Rust 1.91, causing wasm-pack build failures on Rust 1.88.0.

Impact

  • Fixes ubuntu/web, macos/web, windows/windows CI builds
  • Rust 1.91 was released on 2025-10-30, a stable version

temeddix and others added 13 commits June 20, 2026 15:16
- Clear CMakeCache.txt and CMakeFiles before Windows builds
- Prevents CMake from requesting old VS 16 2019 generator
- Allows CMake to auto-detect latest available Visual Studio version
- Fixes CI failure introduced with Rust 1.91 upgrade
…ation

- Add comprehensive CMake cache cleanup to all Windows workflows
- Clean CMakeCache.txt, CMakeFiles/, *.cmake, and cmake_install.cmake
- Specify Visual Studio 17 2022 generator explicitly to avoid conflicts
- Add missing cleanup to user_app.yaml workflow
- Use -ErrorAction SilentlyContinue for robust PowerShell file operations
- Update platform-builds.md skill with Windows CMake troubleshooting guidance

Resolves Windows CI failures after Rust 1.91 upgrade by preventing
CMake generator version conflicts through comprehensive cache cleanup.
- Update CMAKE_GENERATOR from 'Visual Studio 17 2022' to 'Visual Studio 18 2026' in all workflows
- Add explicit --cmake-define parameter to flutter build command for additional safety
- Fixes CI failures where GitHub runners have VS 18 but Flutter defaults to VS 16

Resolves Visual Studio generator conflicts on Windows CI builds.
…s runners

- Flutter 3.24 hardcodes 'Visual Studio 16 2019' generator which fails
  on GitHub runners that now have Visual Studio 18 (2026)
- Flutter 3.27 properly detects available Visual Studio versions
- Update Dart version from 3.5 to 3.6 to match Flutter 3.27

Also removes unnecessary CMAKE_GENERATOR workaround from previous commits.
- flutter build windows does not support --cmake-define option
- Flutter 3.27 should properly detect Visual Studio 18 on GitHub runners
- Clean up unnecessary CMAKE_GENERATOR workaround

Co-authored-by: Claude <noreply@anthropic.com>
…ility

- windows-latest now uses VS 18 (2026) which Flutter 3.27 doesn't support
- windows-2025 still uses VS 2022 (VS 17) which Flutter detects correctly
- Keep Flutter at 3.27.4, Dart 3.6

Resolves Windows CI failures by using a runner with compatible VS version.
…ression

- Conditional expressions in runs-on are not supported by GitHub Actions
- Use matrix.os with explicit runner names (ubuntu-latest, windows-2025, macos-latest)
- Pin Windows to windows-2025 which has VS 2022 (compatible with Flutter 3.27)
- Rename matrix.runner to matrix.os for clarity

Resolves workflow validation errors that prevented jobs from running.
- matrix.os must use full runner names (ubuntu-latest, windows-2025, macos-latest)
- Include entries must match the full runner names
- This fixes the workflow validation error that prevented jobs from running
…s-2025

Changes:
- Upgrade Rust toolchain from 1.88 to 1.91 (cargo-platform 0.3.3 requirement)
- Upgrade Flutter from 3.24.0 to 3.27.4 (Dart 3.5 → 3.6)
- Pin Windows runner to windows-2025 (has VS 2022 compatible with Flutter)
  instead of windows-latest (now has VS 18 which Flutter doesn't support)
- Add CMake cache cleanup for Windows builds
- Update matrix from matrix.runner to matrix.os with explicit runner names

Resolves:
- Rust 1.91 requirement for cargo-platform 0.3.3
- Windows CI failures due to VS 18 / Flutter 3.24 incompatibility

Note: ubuntu/web and macos/web failures are pre-existing (wasm-bindgen threading)
…anup

- Use YAML pipe (|) for multi-line run commands on Windows builds
- Previous sed replacement broke the YAML syntax

Co-authored-by: Claude <noreply@anthropic.com>
…utter

- windows-2025 also has VS 18 now, same issue as windows-latest
- windows-2022 should have VS 2022 (VS 17) which Flutter 3.27 can detect

Co-authored-by: Claude <noreply@anthropic.com>
- Add -C link-arg=--export=__heap_base to RUSTFLAGS
- Install wasm-pack and wasm-bindgen-cli with nightly
- Fixes wasm build failures on Rust 1.91+

Resolves cunarist#686
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