Skip to content

Commit 8d55b58

Browse files
committed
chore: unify remote build workflows using a matrix
1 parent d97c089 commit 8d55b58

5 files changed

+62
-94
lines changed

.github/workflows/remote-build-android-newdot.yml

-27
This file was deleted.

.github/workflows/remote-build-android-hybrid.yml renamed to .github/workflows/remote-build-android.yml

+14-4
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,32 @@ concurrency:
1111
jobs:
1212
build:
1313
runs-on: ubuntu-latest-xl
14+
strategy:
15+
matrix:
16+
include:
17+
- project_root: "./"
18+
variant: "developmentDebug"
19+
20+
- project_root: "Mobile-Expensify/"
21+
variant: "Debug"
22+
submodules: true
23+
checkout_token: ${{ secrets.OS_BOTIFY_TOKEN }}
1424
steps:
1525
- name: Checkout
1626
# v4
1727
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
1828
with:
19-
submodules: true
20-
token: ${{ secrets.OS_BOTIFY_TOKEN }}
29+
submodules: ${{ matrix.submodules || false }}
30+
token: ${{ matrix.checkout_token || github.token }}
2131

2232
- name: Setup Node
2333
uses: ./.github/actions/composite/setupNode
2434

2535
- name: RNEF Remote Build - Android
2636
uses: callstackincubator/android@a49920aadab9f41951944ea52bb7983fa6b20b03
2737
env:
28-
PROJECT_ROOT_PATH: "Mobile-Expensify/"
38+
PROJECT_ROOT_PATH: ${{ matrix.project_root }}
2939
with:
30-
variant: Debug
40+
variant: ${{ matrix.variant }}
3141
github-token: ${{ github.token }}
3242
comment-bot: false

.github/workflows/remote-build-ios-hybrid.yml

-34
This file was deleted.

.github/workflows/remote-build-ios-newdot.yml

-29
This file was deleted.
+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Remote Build iOS
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches-ignore: [staging, production]
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
11+
jobs:
12+
build:
13+
runs-on: macos-15-xlarge
14+
strategy:
15+
matrix:
16+
include:
17+
- destination: simulator
18+
project_root: ./
19+
scheme: 'New Expensify Dev'
20+
configuration: 'DebugDevelopment'
21+
22+
- destination: simulator
23+
project_root: Mobile-Expensify/
24+
scheme: 'Expensify Dev'
25+
configuration: 'Debug'
26+
submodules: true
27+
checkout_token: ${{ secrets.OS_BOTIFY_TOKEN }}
28+
steps:
29+
- name: Checkout
30+
# v4
31+
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
32+
with:
33+
submodules: ${{ matrix.submodules || false }}
34+
token: ${{ matrix.checkout_token || github.token }}
35+
36+
- name: Setup Node
37+
uses: ./.github/actions/composite/setupNode
38+
39+
- name: RNEF Remote Build - iOS
40+
uses: callstackincubator/ios@4c2dcc0d6b9c35407cf294e17386b65258a3b6af
41+
env:
42+
PROJECT_ROOT_PATH: ${{ matrix.project_root }}
43+
with:
44+
destination: ${{ matrix.destination }}
45+
scheme: ${{ matrix.scheme }}
46+
configuration: ${{ matrix.configuration }}
47+
github-token: ${{ github.token }}
48+
comment-bot: false

0 commit comments

Comments
 (0)