You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After the React Native 0.81.5 upgrade, the Android build step in build.yml fails with error CXX1300 because RN's ReactAndroid/build.gradle.kts defaults to CMake 3.30.5, which isn't installed on CI runners (they have 3.22.1). This adds the CMAKE_VERSION: '3.22.1' env var override
The same fix already appliedin build-android-e2e.yml, so Gradle uses the available CMake instead of failing.
Changelog
CHANGELOG entry: @metamask/mobile - Fixed: Add CMAKE_VERSION override to build.yml to fix Android CI build after RN 0.81.5 upgrade
Related issues
Fixes:
Manual testing steps
Feature: my feature nameScenario: user [verb for user action]Given [describe expected initial app state]
When user [verb for user action]
Then [describe expected outcome]
I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.
Note
Low Risk
Low risk: this only adjusts CI build environment configuration, but could affect Android native build tooling if a different CMake version is actually required on some runners.
Overview
Ensures CI builds don’t fail after the React Native 0.81 upgrade by exporting CMAKE_VERSION=3.22.1 during the main build.yml build step, overriding RN’s default request for CMake 3.30.5 that isn’t available on the runner.
Reviewed by Cursor Bugbot for commit 85aee8d. Bugbot is set up for automated code reviews on this repo. Configure here.
Selected Performance tags: None (no tests recommended)
Risk Level: low
AI Confidence: 97%
click to see 🤖 AI reasoning details
E2E Test Selection:
The only change in this PR is adding a single environment variable CMAKE_VERSION: '3.22.1' to the Android build job in .github/workflows/build.yml. This is a pure CI/build infrastructure fix for React Native 0.81 compatibility on self-hosted runners that only have CMake 3.22.1 installed (not the 3.30.5 requested by RN's build scripts). The change:
Does not modify any application source code
Does not affect any E2E test infrastructure, page objects, or test configurations
Does not change any user-facing functionality or flows
Is isolated to the Android build compilation step (CXX1300 error fix)
Has no impact on test execution or test results
No E2E test tags are needed since this is purely a build system fix with no impact on app behavior or test infrastructure.
Performance Test Selection:
This change only adds a CMake version environment variable to the Android build job. It has no impact on app performance, rendering, data loading, or any user-facing functionality. No performance tests are needed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
After the React Native 0.81.5 upgrade, the Android build step in build.yml fails with error CXX1300 because RN's ReactAndroid/build.gradle.kts defaults to CMake 3.30.5, which isn't installed on CI runners (they have 3.22.1). This adds the CMAKE_VERSION: '3.22.1' env var override
The same fix already appliedin build-android-e2e.yml, so Gradle uses the available CMake instead of failing.
Changelog
CHANGELOG entry: @metamask/mobile - Fixed: Add CMAKE_VERSION override to build.yml to fix Android CI build after RN 0.81.5 upgrade
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Performance checks (if applicable)
trace()for usage andaddTokenfor an exampleFor performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist
Note
Low Risk
Low risk: this only adjusts CI build environment configuration, but could affect Android native build tooling if a different CMake version is actually required on some runners.
Overview
Ensures CI builds don’t fail after the React Native 0.81 upgrade by exporting
CMAKE_VERSION=3.22.1during the mainbuild.ymlbuild step, overriding RN’s default request for CMake 3.30.5 that isn’t available on the runner.Reviewed by Cursor Bugbot for commit 85aee8d. Bugbot is set up for automated code reviews on this repo. Configure here.