-
Notifications
You must be signed in to change notification settings - Fork 1
100 lines (83 loc) · 2.82 KB
/
pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
name: Pull Request
on:
pull_request:
branches: ['main']
workflow_dispatch:
inputs:
ios-runner-type:
type: choice
required: true
description: "Runner type"
default: "self-hosted"
options:
- "self-hosted"
- "macos-13"
env:
BUILD_TYPE: 'SNAPSHOT' #BUILD_TYPE: Type of the build; allowed values: 'SNAPSHOT', 'RELEASE'
GITHUB_USERNAME: ${{ secrets.PERSONAL_GITHUB_USERNAME }}
GITHUB_PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_GITHUB_ACCESS_TOKEN }}
XCODE_VERSION: 15.4
JAVA_VERSION: 11
RUBY_VERSION: 3.1
jobs:
lint-and-format:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node
uses: ./.github/actions/setup-node
- name: Lint files
run: yarn lint
- name: Run formatter
run: yarn formatcheck
install-and-check-dependencies:
runs-on: ubuntu-latest
needs: [lint-and-format]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: yarn install
- name: Check dependencies
run: yarn check-dependencies
build-android-new-arch:
runs-on: ubuntu-latest
needs: [install-and-check-dependencies]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build Android App with new arch
uses: ./.github/actions/build-android
with:
new-arch-enabled: true
build-android-old-arch:
runs-on: ubuntu-latest
needs: [install-and-check-dependencies]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build Android App with old arch
uses: ./.github/actions/build-android
with:
new-arch-enabled: false
build-ios-new-arch:
runs-on: ${{ github.event.inputs.ios-runner-type || 'self-hosted' }}
needs: [install-and-check-dependencies]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build iOS App with new arch
uses: ./.github/actions/build-ios
with:
new-arch-enabled: true
build-ios-old-arch:
runs-on: ${{ github.event.inputs.ios-runner-type || 'self-hosted' }}
needs: [install-and-check-dependencies]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build iOS App with old arch
uses: ./.github/actions/build-ios
with:
new-arch-enabled: false