1
- name : Static framework Reanimated build check [Nightly]
1
+ name : Use frameworks Reanimated build check [Nightly]
2
2
env :
3
3
YARN_ENABLE_IMMUTABLE_INSTALLS : 0
4
+ YARN_ENABLE_HARDENED_MODE : 0
4
5
on :
5
6
pull_request :
6
7
paths :
7
- - .github/workflows/static-framework -reanimated-build-nightly.yml
8
+ - .github/workflows/use-frameworks -reanimated-build-check -nightly.yml
8
9
schedule :
9
10
- cron : ' 37 19 * * *'
10
11
workflow_call :
11
12
workflow_dispatch :
12
13
13
14
jobs :
14
- build :
15
+ use-frameworks-reanimated- build-check-nightly :
15
16
if : github.repository == 'software-mansion/react-native-reanimated'
16
17
runs-on : macos-14
17
- strategy :
18
- matrix :
19
- react-native-architecture : ['Paper', 'Fabric']
20
- fail-fast : false
21
18
concurrency :
22
- group : ios-static-framework- ${{ matrix.react-native-architecture }} -${{ github.ref }}
19
+ group : use- ${{matrix.type}}-frameworks-reanimated-build-check-nightly -${{ github.ref }}
23
20
cancel-in-progress : true
24
21
env :
25
22
APP_NAME : app
23
+ strategy :
24
+ matrix :
25
+ type : [static, dynamic]
26
26
steps :
27
+ - name : Setup Node
28
+ uses : actions/setup-node@v4
29
+ with :
30
+ registry-url : https://registry.npmjs.org/
27
31
- name : Setup Yarn
28
32
# Sometimes `npx @react-native-community/cli init` fails at random.
29
33
# Pre-installing it with Yarn seems to improve stability.
30
34
run : corepack enable && yarn init
31
35
- name : Install React Native
32
36
run : yarn add @react-native-community/cli
33
37
- name : Create app
34
- run : yarn rnc-cli init ${{ env.APP_NAME }} --skip-install --pm yarn -- install-pods false --skip-git-init
38
+ run : yarn rnc-cli init ${{ env.APP_NAME }} --skip-install --install-pods false --skip-git-init
35
39
- name : Setup Yarn Modern in app
36
40
working-directory : ${{ env.APP_NAME }}
37
41
run : |
@@ -44,14 +48,12 @@ jobs:
44
48
- name : Install Reanimated
45
49
working-directory : ${{ env.APP_NAME }}
46
50
run : yarn add "react-native-reanimated@https://github.com/software-mansion/react-native-reanimated.git#workspace=react-native-reanimated&commit=${{ github.sha }}"
47
- - name : Install Paper Pods
48
- if : ${{ matrix.react-native-architecture == 'Paper' }}
49
- working-directory : ${{env.APP_NAME}}/ios
50
- run : export USE_FRAMEWORKS=static NO_FLIPPER=1 && bundle install && bundle exec pod install
51
- - name : Install Fabric Pods
52
- if : ${{ matrix.react-native-architecture == 'Fabric' }}
51
+ - name : Install Worklets
52
+ working-directory : ${{ env.APP_NAME }}
53
+ run : yarn add "react-native-worklets@https://github.com/software-mansion/react-native-reanimated.git#workspace=react-native-worklets&commit=${{ github.sha }}"
54
+ - name : Install ${{matrix.type}} Pods
53
55
working-directory : ${{env.APP_NAME}}/ios
54
- run : export USE_FRAMEWORKS=static NO_FLIPPER=1 RCT_NEW_ARCH_ENABLED=1 && bundle install && bundle exec pod update
56
+ run : export USE_FRAMEWORKS=${{matrix.type}} && bundle install && bundle exec pod update
55
57
- name : Build app
56
58
working-directory : ${{env.APP_NAME}}/ios
57
- run : xcodebuild -workspace ${{env.APP_NAME}}.xcworkspace -scheme ${{env.APP_NAME}} -configuration Debug -destination 'generic/platform=iOS Simulator' build | xcpretty
59
+ run : xcodebuild -workspace ${{env.APP_NAME}}.xcworkspace -scheme ${{env.APP_NAME}} -configuration Debug -destination 'generic/platform=iOS Simulator' build
0 commit comments