Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ccb83d6

Browse files
committedAug 16, 2024
Merge branch 'main' into @atlj/ship-codegen-specs
2 parents a202424 + a4450d2 commit ccb83d6

File tree

52 files changed

+2263
-2100
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+2263
-2100
lines changed
 

‎.github/workflows/build-templates.yml

Lines changed: 39 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -37,56 +37,67 @@ jobs:
3737
- view-mixed
3838
- view-new
3939
language:
40-
- java-objc
41-
- java-swift
4240
- kotlin-objc
4341
- kotlin-swift
42+
arch:
43+
- auto
4444
exclude:
45-
- os: macos-14
46-
language: kotlin-objc
47-
- os: macos-14
48-
language: kotlin-swift
49-
- type: module-new
50-
language: java-swift
5145
- type: module-new
5246
language: kotlin-swift
53-
- type: module-mixed
54-
language: java-swift
5547
- type: module-mixed
5648
language: kotlin-swift
57-
- type: view-new
58-
language: java-swift
5949
- type: view-new
6050
language: kotlin-swift
61-
- type: view-mixed
62-
language: java-swift
6351
- type: view-mixed
6452
language: kotlin-swift
6553
include:
6654
- os: ubuntu-latest
6755
type: library
6856
language: js
57+
arch: auto
58+
- os: ubuntu-latest
59+
type: module-mixed
60+
language: kotlin-objc
61+
arch: new
62+
- os: macos-14
63+
type: module-mixed
64+
language: kotlin-objc
65+
arch: new
66+
- os: ubuntu-latest
67+
type: view-mixed
68+
language: kotlin-objc
69+
arch: new
70+
- os: macos-14
71+
type: view-mixed
72+
language: kotlin-objc
73+
arch: new
6974
- os: ubuntu-latest
7075
type: module-legacy
7176
language: cpp
77+
arch: auto
7278
- os: ubuntu-latest
7379
type: module-mixed
7480
language: cpp
81+
arch: auto
7582
- os: ubuntu-latest
7683
type: module-new
7784
language: cpp
85+
arch: auto
7886
- os: macos-14
7987
type: module-legacy
8088
language: cpp
89+
arch: auto
8190
- os: macos-14
8291
type: module-mixed
8392
language: cpp
93+
arch: auto
8494
- os: macos-14
8595
type: module-new
8696
language: cpp
97+
arch: auto
8798

8899
concurrency:
89-
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os }}-${{ matrix.type }}-${{ matrix.language }}
100+
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os }}-${{ matrix.type }}-${{ matrix.language }}-${{ matrix.arch }}
90101
cancel-in-progress: true
91102

92103
runs-on: ${{ matrix.os }}
@@ -98,13 +109,20 @@ jobs:
98109
- name: Setup
99110
uses: ./.github/actions/setup
100111

112+
- name: Set environment variables
113+
run: |
114+
if [[ "${{ matrix.arch }}" == "new" ]]; then
115+
echo "RCT_NEW_ARCH_ENABLED=1" >> $GITHUB_ENV
116+
echo "ORG_GRADLE_PROJECT_newArchEnabled=true" >> $GITHUB_ENV
117+
fi
118+
101119
- name: Build package
102120
run: |
103121
yarn workspace create-react-native-library prepare
104122
105123
- name: Get working directory
106124
run: |
107-
echo "work_dir=${{ matrix.os }}-${{ matrix.type }}-${{ matrix.language }}" >> $GITHUB_ENV
125+
echo "work_dir=${{ matrix.os }}-${{ matrix.type }}-${{ matrix.language }}-${{ matrix.arch }}" >> $GITHUB_ENV
108126
109127
- name: Create library
110128
run: |
@@ -161,7 +179,7 @@ jobs:
161179
162180
# Build iOS for only some matrices to skip redundant builds
163181
if [[ ${{ matrix.os }} == macos-14 ]]; then
164-
if [[ ${{ matrix.type }} == view-* && ${{ matrix.language }} == java-* ]] || [[ ${{ matrix.type }} == module-* && ${{ matrix.language }} == java-* ]] || [[ ${{ matrix.type }} == module-* && ${{ matrix.language }} == cpp ]]; then
182+
if [[ ${{ matrix.type }} == view-* && ${{ matrix.language }} == kotlin-* ]] || [[ ${{ matrix.type }} == module-* && ${{ matrix.language }} == kotlin-* ]] || [[ ${{ matrix.type }} == module-* && ${{ matrix.language }} == cpp ]]; then
165183
echo "ios_build=1" >> $GITHUB_ENV
166184
fi
167185
fi
@@ -172,9 +190,9 @@ jobs:
172190
with:
173191
path: |
174192
${{ env.work_dir }}/.turbo
175-
key: ${{ runner.os }}-library-turborepo-${{ matrix.type }}-${{ matrix.language }}-${{ hashFiles(format('{0}/yarn.lock', env.work_dir)) }}
193+
key: ${{ runner.os }}-library-turborepo-${{ matrix.type }}-${{ matrix.language }}-${{ matrix.arch }}-${{ hashFiles(format('{0}/yarn.lock', env.work_dir)) }}
176194
restore-keys: |
177-
${{ runner.os }}-library-turborepo-${{ matrix.type }}-${{ matrix.language }}-
195+
${{ runner.os }}-library-turborepo-${{ matrix.type }}-${{ matrix.language }}-${{ matrix.arch }}-
178196
179197
- name: Check turborepo cache
180198
if: env.android_build == 1 || env.ios_build == 1
@@ -262,13 +280,13 @@ jobs:
262280
${{ runner.os }}-library-cocoapods-
263281
264282
- name: Install cocoapods
283+
env:
284+
NO_FLIPPER: 1
265285
if: env.ios_build == 1 && env.turbo_cache_hit_ios != 1 && steps.library-cocoapods-cache.outputs.cache-hit != 'true'
266286
working-directory: ${{ env.work_dir }}
267287
run: |
268288
cd example/ios
269289
pod install
270-
env:
271-
NO_FLIPPER: 1
272290
273291
- name: Build example (iOS)
274292
if: env.ios_build == 1
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Pull request title
2+
on:
3+
pull_request_target:
4+
types:
5+
- opened
6+
- edited
7+
- synchronize
8+
- reopened
9+
10+
permissions:
11+
pull-requests: read
12+
13+
jobs:
14+
validate:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: amannn/action-semantic-pull-request@v5
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)
Please sign in to comment.