Skip to content

Commit 4ad4422

Browse files
chore: simplify nightly configs (#354)
1 parent e08131c commit 4ad4422

File tree

1 file changed

+8
-87
lines changed

1 file changed

+8
-87
lines changed

.github/workflows/nightly.yml

Lines changed: 8 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ jobs:
4141
4242
build-android:
4343
runs-on: ubuntu-latest
44+
strategy:
45+
matrix:
46+
bundler: [metro, repack]
4447
steps:
4548
- uses: actions/checkout@v4
4649

@@ -71,7 +74,7 @@ jobs:
7174
NightlyDeploy \
7275
--template=default \
7376
--platform=ios --platform=android \
74-
--bundler=metro \
77+
--bundler=${{ matrix.bundler }} \
7578
--remote-cache-provider=github-actions
7679
7780
cd NightlyDeploy
@@ -86,6 +89,9 @@ jobs:
8689
8790
build-ios:
8891
runs-on: macos-latest
92+
strategy:
93+
matrix:
94+
bundler: [metro, repack]
8995
steps:
9096
- uses: actions/checkout@v4
9197

@@ -109,7 +115,7 @@ jobs:
109115
NightlyDeploy \
110116
--template=default \
111117
--platform=ios --platform=android \
112-
--bundler=metro \
118+
--bundler=${{ matrix.bundler }} \
113119
--remote-cache-provider=github-actions
114120
115121
cd NightlyDeploy
@@ -122,88 +128,3 @@ jobs:
122128
cd ../NightlyDeploy
123129
pnpm rnef build:ios --verbose \
124130
--destination=simulator
125-
126-
build-android-repack:
127-
runs-on: ubuntu-latest
128-
steps:
129-
- uses: actions/checkout@v4
130-
131-
- name: Setup
132-
uses: ./.github/actions/setup-node
133-
134-
- name: Install Java
135-
uses: actions/setup-java@v4
136-
with:
137-
java-version: 17
138-
distribution: adopt
139-
cache: gradle
140-
141-
- name: Build framework
142-
run: pnpm build
143-
144-
- name: Publish framework to Verdaccio
145-
run: |
146-
pnpm verdaccio:init &
147-
npx [email protected] http://localhost:4873
148-
pnpm verdaccio:publish
149-
150-
- name: Deploy template
151-
run: |
152-
cd ..
153-
NPM_CONFIG_REGISTRY=http://localhost:4873 pnpm create @rnef/app \
154-
--registry http://localhost:4873 \
155-
NightlyDeploy \
156-
--template=default \
157-
--platform=ios --platform=android \
158-
--bundler=repack \
159-
--remote-cache-provider=github-actions
160-
161-
cd NightlyDeploy
162-
NPM_CONFIG_REGISTRY=http://localhost:4873 \
163-
NPM_CONFIG_NODE_LINKER=hoisted \
164-
pnpm install
165-
166-
- name: Build Androidtemplate
167-
run: |
168-
cd ../NightlyDeploy
169-
pnpm rnef build:android
170-
171-
172-
build-ios-repack:
173-
runs-on: macos-latest
174-
steps:
175-
- uses: actions/checkout@v4
176-
177-
- name: Setup
178-
uses: ./.github/actions/setup-node
179-
180-
- name: Build framework
181-
run: pnpm build
182-
183-
- name: Publish framework to Verdaccio
184-
run: |
185-
pnpm verdaccio:init &
186-
npx [email protected] http://localhost:4873
187-
pnpm verdaccio:publish
188-
189-
- name: Deploy template
190-
run: |
191-
cd ..
192-
NPM_CONFIG_REGISTRY=http://localhost:4873 pnpm create @rnef/app \
193-
--registry http://localhost:4873 \
194-
NightlyDeploy \
195-
--template=default \
196-
--platform=ios --platform=android \
197-
--bundler=repack \
198-
--remote-cache-provider=github-actions
199-
200-
cd NightlyDeploy
201-
NPM_CONFIG_REGISTRY=http://localhost:4873 \
202-
NPM_CONFIG_NODE_LINKER=hoisted \
203-
pnpm install
204-
205-
- name: Build iOS template
206-
run: |
207-
cd ../NightlyDeploy
208-
pnpm rnef build:ios --verbose \
209-
--destination=simulator

0 commit comments

Comments
 (0)