Skip to content

Commit

Permalink
CI: Sample Apps - Patch Yoga (macOS 13) (#325)
Browse files Browse the repository at this point in the history
* update args

* yoga patch
  • Loading branch information
namidan authored Jul 10, 2024
1 parent 3f390dd commit c4e9665
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/app_prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,11 @@ jobs:
pod install --repo-update
working-directory: source/examples/Basic/ios

- name: Apply Patches
run: |
patch -p0 < *.patch
working-directory: source/examples/Basic/patches

- name: Build resolve Swift dependencies
run: |
xcodebuild -resolvePackageDependencies -workspace ios/Basic.xcworkspace -scheme BasicProduction -configuration Release
Expand Down Expand Up @@ -321,6 +326,11 @@ jobs:
RCT_NEW_ARCH_ENABLED=0 SWIFT_VERSION=5 pod install --repo-update
working-directory: source/examples/TestNamiTV/ios

- name: Apply Patches
run: |
patch -p0 < *.patch
working-directory: source/examples/TextNamiTV/patches

- name: Build resolve Swift dependencies
run: |
xcodebuild -resolvePackageDependencies -workspace ios/Basic.xcworkspace -scheme Basic-tvOS-PROD -configuration Release
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/app_stg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,11 @@ jobs:
pod install --repo-update
working-directory: source/examples/Basic/ios

- name: Apply Patches
run: |
patch -p0 < *.patch
working-directory: source/examples/Basic/patches

- name: Build resolve Swift dependencies
run: |
xcodebuild -resolvePackageDependencies -workspace ios/Basic.xcworkspace -scheme Basic -configuration Release
Expand Down Expand Up @@ -321,6 +326,11 @@ jobs:
RCT_NEW_ARCH_ENABLED=0 SWIFT_VERSION=5 pod install --repo-update
working-directory: source/examples/TestNamiTV/ios

- name: Apply Patches
run: |
patch -p0 < *.patch
working-directory: source/examples/TestNamiTV/patches

- name: Build resolve Swift dependencies
run: |
xcodebuild -resolvePackageDependencies -workspace ios/Basic.xcworkspace -scheme Basic-tvOS -configuration Release
Expand Down
11 changes: 11 additions & 0 deletions examples/Basic/patches/yoga-compilation-fix.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- ../node_modules/react-native/ReactCommon/yoga/yoga/Yoga.cpp.orig 2024-07-10 13:35:29
+++ ../node_modules/react-native/ReactCommon/yoga/yoga/Yoga.cpp 2024-07-10 11:54:48
@@ -2229,7 +2229,7 @@
depth,
generationCount);
node->setLayoutHadOverflow(
- node->getLayout().hadOverflow() |
+ node->getLayout().hadOverflow() ||
currentRelativeChild->getLayout().hadOverflow());
}
return deltaFreeSpace;
11 changes: 11 additions & 0 deletions examples/TestNamiTV/patches/yoga-compilation-fix.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- ../node_modules/react-native/ReactCommon/yoga/yoga/Yoga.cpp.orig 2024-07-10 13:35:29
+++ ../node_modules/react-native/ReactCommon/yoga/yoga/Yoga.cpp 2024-07-10 11:54:48
@@ -2229,7 +2229,7 @@
depth,
generationCount);
node->setLayoutHadOverflow(
- node->getLayout().hadOverflow() |
+ node->getLayout().hadOverflow() ||
currentRelativeChild->getLayout().hadOverflow());
}
return deltaFreeSpace;

0 comments on commit c4e9665

Please sign in to comment.