Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .github/workflows/validate-cxx-api-snapshots.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Validate C++ API Snapshots

on:
workflow_dispatch:
pull_request:
paths:
- "packages/react-native/ReactCommon/**"
- "packages/react-native/ReactAndroid/**"
- "packages/react-native/React/**"
- "packages/react-native/ReactApple/**"
- "scripts/cxx-api/**"
push:
branches:
- main
- "*-stable"
paths:
- "packages/react-native/ReactCommon/**"
- "packages/react-native/ReactAndroid/**"
- "packages/react-native/React/**"
- "packages/react-native/ReactApple/**"
- "scripts/cxx-api/**"

jobs:
validate_cxx_api_snapshots:
runs-on: ubuntu-latest
if: github.repository == 'facebook/react-native'
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install Doxygen
shell: bash
run: |
DOXYGEN_VERSION="1.16.1"
curl -fsSL "https://github.com/doxygen/doxygen/releases/download/Release_${DOXYGEN_VERSION//./_}/doxygen-${DOXYGEN_VERSION}.linux.bin.tar.gz" -o doxygen.tar.gz
tar xzf doxygen.tar.gz
echo "$PWD/doxygen-${DOXYGEN_VERSION}/bin" >> $GITHUB_PATH
- name: Setup node.js
uses: ./.github/actions/setup-node
- name: Run yarn
uses: ./.github/actions/yarn-install
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install Python dependencies
shell: bash
run: pip install doxmlparser natsort pyyaml
- name: Validate C++ API snapshots
shell: bash
run: python -m scripts.cxx-api.parser --check
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@

@end

__attribute__((deprecated("Use RCTCustomRefreshControlProtocol instead")))
@protocol RCTCustomRefreshContolProtocol<RCTCustomRefreshControlProtocol>
@end
// __attribute__((deprecated("Use RCTCustomRefreshControlProtocol instead")))
// @protocol RCTCustomRefreshContolProtocol<RCTCustomRefreshControlProtocol>
// @end
14,526 changes: 14,526 additions & 0 deletions scripts/cxx-api/api-snapshots/ReactAndroidDebugCxx.api

Large diffs are not rendered by default.

14,353 changes: 14,353 additions & 0 deletions scripts/cxx-api/api-snapshots/ReactAndroidReleaseCxx.api

Large diffs are not rendered by default.

Loading
Loading