Skip to content

Commit 8056cd7

Browse files
cipolleschifacebook-github-bot
authored andcommitted
Add Tests in CircleCI to check dynamic frameworks with the old arch (#36003)
Summary: Pull Request resolved: #36003 This diff adds 4 tests in CircleCI to make sure we don't regress in the support of Dynamic Frameworks for the old architecture. ## Changelog [iOS][Fixed] - Add CircleCI tests for dynamic frameworks with the Old Architecture. Reviewed By: cortinico Differential Revision: D42829895 fbshipit-source-id: 5669be45d4f55161a11a6ece161b2a2aa384a644
1 parent b3040ec commit 8056cd7

File tree

1 file changed

+64
-2
lines changed

1 file changed

+64
-2
lines changed

.circleci/config.yml

Lines changed: 64 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ jobs:
853853
default: "StaticLibraries"
854854
description: Which kind of option we want to use for `use_frameworks!`
855855
type: enum
856-
enum: ["StaticLibraries", "StaticFrameworks"] #TODO: Add "DynamicFrameworks"
856+
enum: ["StaticLibraries", "StaticFrameworks", "DynamicFrameworks"]
857857
environment:
858858
- PROJECT_NAME: "iOSTemplateProject"
859859
- HERMES_WS_DIR: *hermes_workspace_root
@@ -906,6 +906,8 @@ jobs:
906906
907907
if [[ << parameters.use_frameworks >> == "StaticFrameworks" ]]; then
908908
export USE_FRAMEWORKS=static
909+
elif [[ << parameters.use_frameworks >> == "DynamicFrameworks" ]]; then
910+
export USE_FRAMEWORKS=dynamic
909911
fi
910912
911913
bundle exec pod install
@@ -1636,7 +1638,7 @@ workflows:
16361638
flavor: ["Debug", "Release"]
16371639
jsengine: ["Hermes", "JSC"]
16381640
flipper: ["WithFlipper", "WithoutFlipper"]
1639-
use_frameworks: [ "StaticLibraries", "StaticFrameworks" ] #TODO: make it works with DynamicFrameworks
1641+
use_frameworks: ["StaticLibraries", "StaticFrameworks", "DynamicFrameworks"]
16401642
exclude:
16411643
- architecture: "NewArch"
16421644
flavor: "Release"
@@ -1648,11 +1650,21 @@ workflows:
16481650
jsengine: "Hermes"
16491651
flipper: "WithFlipper"
16501652
use_frameworks: "StaticFrameworks"
1653+
- architecture: "NewArch"
1654+
flavor: "Release"
1655+
jsengine: "Hermes"
1656+
flipper: "WithFlipper"
1657+
use_frameworks: "DynamicFrameworks"
16511658
- architecture: "NewArch"
16521659
flavor: "Release"
16531660
jsengine: "Hermes"
16541661
flipper: "WithoutFlipper"
16551662
use_frameworks: "StaticFrameworks"
1663+
- architecture: "NewArch"
1664+
flavor: "Release"
1665+
jsengine: "Hermes"
1666+
flipper: "WithoutFlipper"
1667+
use_frameworks: "DynamicFrameworks"
16561668
- architecture: "NewArch"
16571669
flavor: "Release"
16581670
jsengine: "JSC"
@@ -1663,11 +1675,21 @@ workflows:
16631675
jsengine: "JSC"
16641676
flipper: "WithFlipper"
16651677
use_frameworks: "StaticFrameworks"
1678+
- architecture: "NewArch"
1679+
flavor: "Release"
1680+
jsengine: "JSC"
1681+
flipper: "WithFlipper"
1682+
use_frameworks: "DynamicFrameworks"
16661683
- architecture: "NewArch"
16671684
flavor: "Release"
16681685
jsengine: "JSC"
16691686
flipper: "WithoutFlipper"
16701687
use_frameworks: "StaticFrameworks"
1688+
- architecture: "NewArch"
1689+
flavor: "Release"
1690+
jsengine: "JSC"
1691+
flipper: "WithoutFlipper"
1692+
use_frameworks: "DynamicFrameworks"
16711693
- architecture: "OldArch"
16721694
flavor: "Release"
16731695
jsengine: "Hermes"
@@ -1678,6 +1700,11 @@ workflows:
16781700
jsengine: "Hermes"
16791701
flipper: "WithFlipper"
16801702
use_frameworks: "StaticFrameworks"
1703+
- architecture: "OldArch"
1704+
flavor: "Release"
1705+
jsengine: "Hermes"
1706+
flipper: "WithFlipper"
1707+
use_frameworks: "DynamicFrameworks"
16811708
- architecture: "OldArch"
16821709
flavor: "Release"
16831710
jsengine: "JSC"
@@ -1688,6 +1715,11 @@ workflows:
16881715
jsengine: "JSC"
16891716
flipper: "WithFlipper"
16901717
use_frameworks: "StaticFrameworks"
1718+
- architecture: "OldArch"
1719+
flavor: "Release"
1720+
jsengine: "JSC"
1721+
flipper: "WithFlipper"
1722+
use_frameworks: "DynamicFrameworks"
16911723
- architecture: "NewArch"
16921724
flavor: "Debug"
16931725
jsengine: "Hermes"
@@ -1718,6 +1750,36 @@ workflows:
17181750
jsengine: "JSC"
17191751
flipper: "WithFlipper"
17201752
use_frameworks: "StaticFrameworks"
1753+
- architecture: "NewArch"
1754+
flavor: "Debug"
1755+
jsengine: "Hermes"
1756+
flipper: "WithFlipper"
1757+
use_frameworks: "DynamicFrameworks"
1758+
- architecture: "NewArch"
1759+
flavor: "Debug"
1760+
jsengine: "Hermes"
1761+
flipper: "WithoutFlipper"
1762+
use_frameworks: "DynamicFrameworks"
1763+
- architecture: "NewArch"
1764+
flavor: "Debug"
1765+
jsengine: "JSC"
1766+
flipper: "WithFlipper"
1767+
use_frameworks: "DynamicFrameworks"
1768+
- architecture: "NewArch"
1769+
flavor: "Debug"
1770+
jsengine: "JSC"
1771+
flipper: "WithoutFlipper"
1772+
use_frameworks: "DynamicFrameworks"
1773+
- architecture: "OldArch"
1774+
flavor: "Debug"
1775+
jsengine: "Hermes"
1776+
flipper: "WithFlipper"
1777+
use_frameworks: "DynamicFrameworks"
1778+
- architecture: "OldArch"
1779+
flavor: "Debug"
1780+
jsengine: "JSC"
1781+
flipper: "WithFlipper"
1782+
use_frameworks: "DynamicFrameworks"
17211783
- test_ios_rntester:
17221784
requires:
17231785
- build_hermes_macos

0 commit comments

Comments
 (0)