Skip to content

ci: fix broken CI (Windows runner, tsc, iOS on Xcode 26) - #171

Merged
Naturalclar merged 11 commits into
masterfrom
fix/ci
Nov 24, 2026
Merged

Naturalclar merged 11 commits into
masterfrom
fix/ci

Conversation

@Naturalclar

@Naturalclar Naturalclar commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

CI has been red on every PR (most recently the Dependabot lodash bump). This gets all six checks green again.

Fixes

Windows CI

  • windows-2019 runners were retired → windows-2022, setup-msbuild@v2 / setup-nuget@v2, VS 17.
  • install-windows-test-app crashed with spawn EINVAL: react-native-test-app 2.x spawns npx.cmd without shell: true, which Node rejects since the CVE-2024-27980 fix. Generate with --no-autolink and run react-native autolink-windows as its own step.
  • The node_modules cache only stored the root node_modules but skipped both installs on a hit, so example/node_modules was missing on any cached run. Cache both, keyed on both lockfiles.

tsc

  • @types/node (pulled in transitively at *) now resolves to a version TypeScript 4 can't parse. Set "types": ["jest", "react"] in tsconfig.json; nothing here uses Node types.
  • Root cause worth knowing: yarn.lock is in Yarn Berry format but CI installs with Yarn 1.22 (packageManager), so the lockfile is ignored and every run resolves fresh versions.

iOS (macos-latest is now macOS 26 / Xcode 26, building RN 0.68)

  • boost 1.76 tarball URL (boostorg.jfrog.io) now serves different bytes → checksum failure. Point the podspec at archives.boost.io (same sha256, verified).
  • run-ios defaulted to an "iPhone 13" simulator that the image no longer has → pick the first available iPhone by UDID.
  • Yoga builds with -Werror and newer clang adds warnings it trips → drop -Werror from the Yoga podspec in CI.
  • example/ios/Podfile: define _LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION (boost uses std::unary_function, removed from libc++) and -Wno-error=enum-constexpr-conversion; wraps react-native-test-app's post_install since CocoaPods allows only one.
  • Disabled Flipper in the example (use_flipper!(false)): it's deprecated and doesn't compile with Xcode 26.

Also replaced deprecated ::set-output with $GITHUB_OUTPUT.

Not fixed here (follow-ups)

  • CI logs show Package @react-native-community/progress-view has been ignored because it contains invalid configuration. Reason: "dependency.platforms.android.libraryName" is not allowed — the example's autolinking skips the library, so the iOS/Android jobs build the example app without the library's native code.
  • The example still runs RN 0.68; the CI patches (boost URL, Yoga -Werror) are workarounds until it's upgraded.

🤖 Generated with Claude Code

Naturalclar and others added 10 commits November 24, 2026 11:04
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…arse

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…Node

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ed on cache hit

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Define _LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION so boost 1.76
compiles against libc++ that removed std::unary_function, and stop
enum-constexpr-conversion from being an error. Flipper is deprecated and
not needed to build the example.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Naturalclar Naturalclar changed the title ci: fix broken CI ci: fix broken CI (Windows runner, tsc, iOS on Xcode 26) Nov 24, 2026
@Naturalclar
Naturalclar marked this pull request as ready for review November 24, 2026 03:44
…ibrary copy

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Naturalclar
Naturalclar merged commit 915c031 into master Nov 24, 2026
6 checks passed
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