Skip to content

Commit b8bd327

Browse files
committed
Merge branch 'main' into chore/ios-jsi-setup
2 parents b7bda8d + a55e40f commit b8bd327

File tree

1 file changed

+117
-120
lines changed

1 file changed

+117
-120
lines changed

.github/workflows/ci.yml

Lines changed: 117 additions & 120 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
name: CI
22
on:
3-
push:
4-
branches:
5-
- main
63
pull_request:
74
branches:
85
- main
@@ -38,120 +35,120 @@ jobs:
3835
- name: Run unit tests
3936
run: yarn test --maxWorkers=2 --coverage
4037

41-
build-library:
42-
runs-on: ubuntu-latest
43-
steps:
44-
- name: Checkout
45-
uses: actions/checkout@v4
46-
47-
- name: Setup
48-
uses: ./.github/actions/setup
49-
50-
- name: Build package
51-
run: yarn prepare
52-
53-
build-android:
54-
runs-on: ubuntu-latest
55-
env:
56-
TURBO_CACHE_DIR: .turbo/android
57-
steps:
58-
- name: Checkout
59-
uses: actions/checkout@v4
60-
61-
- name: Setup
62-
uses: ./.github/actions/setup
63-
64-
- name: Cache turborepo for Android
65-
uses: actions/cache@v4
66-
with:
67-
path: ${{ env.TURBO_CACHE_DIR }}
68-
key: ${{ runner.os }}-turborepo-android-${{ hashFiles('yarn.lock') }}
69-
restore-keys: |
70-
${{ runner.os }}-turborepo-android-
71-
72-
- name: Check turborepo cache for Android
73-
run: |
74-
TURBO_CACHE_STATUS=$(node -p "($(yarn turbo run build:android --cache-dir="${{ env.TURBO_CACHE_DIR }}" --dry=json)).tasks.find(t => t.task === 'build:android').cache.status")
75-
76-
if [[ $TURBO_CACHE_STATUS == "HIT" ]]; then
77-
echo "turbo_cache_hit=1" >> $GITHUB_ENV
78-
fi
79-
80-
- name: Install JDK
81-
if: env.turbo_cache_hit != 1
82-
uses: actions/setup-java@v4
83-
with:
84-
distribution: 'zulu'
85-
java-version: '17'
86-
87-
- name: Finalize Android SDK
88-
if: env.turbo_cache_hit != 1
89-
run: |
90-
/bin/bash -c "yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses > /dev/null"
91-
92-
- name: Cache Gradle
93-
if: env.turbo_cache_hit != 1
94-
uses: actions/cache@v4
95-
with:
96-
path: |
97-
~/.gradle/wrapper
98-
~/.gradle/caches
99-
key: ${{ runner.os }}-gradle-${{ hashFiles('example/android/gradle/wrapper/gradle-wrapper.properties') }}
100-
restore-keys: |
101-
${{ runner.os }}-gradle-
102-
103-
- name: Build example for Android
104-
env:
105-
JAVA_OPTS: '-XX:MaxHeapSize=6g'
106-
run: |
107-
yarn turbo run build:android --cache-dir="${{ env.TURBO_CACHE_DIR }}"
108-
109-
build-ios:
110-
runs-on: macos-14
111-
env:
112-
TURBO_CACHE_DIR: .turbo/ios
113-
steps:
114-
- name: Checkout
115-
uses: actions/checkout@v4
116-
117-
- name: Setup
118-
uses: ./.github/actions/setup
119-
120-
- name: Cache turborepo for iOS
121-
uses: actions/cache@v4
122-
with:
123-
path: ${{ env.TURBO_CACHE_DIR }}
124-
key: ${{ runner.os }}-turborepo-ios-${{ hashFiles('yarn.lock') }}
125-
restore-keys: |
126-
${{ runner.os }}-turborepo-ios-
127-
128-
- name: Check turborepo cache for iOS
129-
run: |
130-
TURBO_CACHE_STATUS=$(node -p "($(yarn turbo run build:ios --cache-dir="${{ env.TURBO_CACHE_DIR }}" --dry=json)).tasks.find(t => t.task === 'build:ios').cache.status")
131-
132-
if [[ $TURBO_CACHE_STATUS == "HIT" ]]; then
133-
echo "turbo_cache_hit=1" >> $GITHUB_ENV
134-
fi
135-
136-
- name: Cache cocoapods
137-
if: env.turbo_cache_hit != 1
138-
id: cocoapods-cache
139-
uses: actions/cache@v4
140-
with:
141-
path: |
142-
**/ios/Pods
143-
key: ${{ runner.os }}-cocoapods-${{ hashFiles('example/ios/Podfile.lock') }}
144-
restore-keys: |
145-
${{ runner.os }}-cocoapods-
146-
147-
- name: Install cocoapods
148-
if: env.turbo_cache_hit != 1 && steps.cocoapods-cache.outputs.cache-hit != 'true'
149-
run: |
150-
cd example/ios
151-
pod install
152-
env:
153-
NO_FLIPPER: 1
154-
155-
- name: Build example for iOS
156-
run: |
157-
yarn turbo run build:ios --cache-dir="${{ env.TURBO_CACHE_DIR }}"
38+
# build-library:
39+
# runs-on: ubuntu-latest
40+
# steps:
41+
# - name: Checkout
42+
# uses: actions/checkout@v4
43+
44+
# - name: Setup
45+
# uses: ./.github/actions/setup
46+
47+
# - name: Build package
48+
# run: yarn prepare
49+
50+
# build-android:
51+
# runs-on: ubuntu-latest
52+
# env:
53+
# TURBO_CACHE_DIR: .turbo/android
54+
# steps:
55+
# - name: Checkout
56+
# uses: actions/checkout@v4
57+
58+
# - name: Setup
59+
# uses: ./.github/actions/setup
60+
61+
# - name: Cache turborepo for Android
62+
# uses: actions/cache@v4
63+
# with:
64+
# path: ${{ env.TURBO_CACHE_DIR }}
65+
# key: ${{ runner.os }}-turborepo-android-${{ hashFiles('yarn.lock') }}
66+
# restore-keys: |
67+
# ${{ runner.os }}-turborepo-android-
68+
69+
# - name: Check turborepo cache for Android
70+
# run: |
71+
# TURBO_CACHE_STATUS=$(node -p "($(yarn turbo run build:android --cache-dir="${{ env.TURBO_CACHE_DIR }}" --dry=json)).tasks.find(t => t.task === 'build:android').cache.status")
72+
73+
# if [[ $TURBO_CACHE_STATUS == "HIT" ]]; then
74+
# echo "turbo_cache_hit=1" >> $GITHUB_ENV
75+
# fi
76+
77+
# - name: Install JDK
78+
# if: env.turbo_cache_hit != 1
79+
# uses: actions/setup-java@v4
80+
# with:
81+
# distribution: 'zulu'
82+
# java-version: '17'
83+
84+
# - name: Finalize Android SDK
85+
# if: env.turbo_cache_hit != 1
86+
# run: |
87+
# /bin/bash -c "yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses > /dev/null"
88+
89+
# - name: Cache Gradle
90+
# if: env.turbo_cache_hit != 1
91+
# uses: actions/cache@v4
92+
# with:
93+
# path: |
94+
# ~/.gradle/wrapper
95+
# ~/.gradle/caches
96+
# key: ${{ runner.os }}-gradle-${{ hashFiles('example/android/gradle/wrapper/gradle-wrapper.properties') }}
97+
# restore-keys: |
98+
# ${{ runner.os }}-gradle-
99+
100+
# - name: Build example for Android
101+
# env:
102+
# JAVA_OPTS: '-XX:MaxHeapSize=6g'
103+
# run: |
104+
# yarn turbo run build:android --cache-dir="${{ env.TURBO_CACHE_DIR }}"
105+
106+
# build-ios:
107+
# runs-on: macos-14
108+
# env:
109+
# TURBO_CACHE_DIR: .turbo/ios
110+
# steps:
111+
# - name: Checkout
112+
# uses: actions/checkout@v4
113+
114+
# - name: Setup
115+
# uses: ./.github/actions/setup
116+
117+
# - name: Cache turborepo for iOS
118+
# uses: actions/cache@v4
119+
# with:
120+
# path: ${{ env.TURBO_CACHE_DIR }}
121+
# key: ${{ runner.os }}-turborepo-ios-${{ hashFiles('yarn.lock') }}
122+
# restore-keys: |
123+
# ${{ runner.os }}-turborepo-ios-
124+
125+
# - name: Check turborepo cache for iOS
126+
# run: |
127+
# TURBO_CACHE_STATUS=$(node -p "($(yarn turbo run build:ios --cache-dir="${{ env.TURBO_CACHE_DIR }}" --dry=json)).tasks.find(t => t.task === 'build:ios').cache.status")
128+
129+
# if [[ $TURBO_CACHE_STATUS == "HIT" ]]; then
130+
# echo "turbo_cache_hit=1" >> $GITHUB_ENV
131+
# fi
132+
133+
# - name: Cache cocoapods
134+
# if: env.turbo_cache_hit != 1
135+
# id: cocoapods-cache
136+
# uses: actions/cache@v4
137+
# with:
138+
# path: |
139+
# **/ios/Pods
140+
# key: ${{ runner.os }}-cocoapods-${{ hashFiles('example/ios/Podfile.lock') }}
141+
# restore-keys: |
142+
# ${{ runner.os }}-cocoapods-
143+
144+
# - name: Install cocoapods
145+
# if: env.turbo_cache_hit != 1 && steps.cocoapods-cache.outputs.cache-hit != 'true'
146+
# run: |
147+
# cd example/ios
148+
# pod install
149+
# env:
150+
# NO_FLIPPER: 1
151+
152+
# - name: Build example for iOS
153+
# run: |
154+
# yarn turbo run build:ios --cache-dir="${{ env.TURBO_CACHE_DIR }}"

0 commit comments

Comments
 (0)