Repository navigation
68 lines (63 loc) · 1.62 KB
/
Copy pathbuild.yml
File metadata and controls
68 lines (63 loc) · 1.62 KB
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
name: Build
on:
push:
branches:
- master
paths:
- '.github/workflows/build.yml'
- 'android/**'
- 'ios/**'
- 'src/**'
- '*.podspec'
- 'Package.swift'
- 'package.json'
pull_request:
types: [ opened, synchronize, reopened ]
paths:
- '.github/workflows/build.yml'
- 'android/**'
- 'ios/**'
- 'src/**'
- '*.podspec'
- 'Package.swift'
- 'package.json'
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-android:
name: Build Android (RN ${{ matrix.rn_ver }})
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
rn_ver: [ latest, 0.87.1, 0.86.3 ]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: retyui/oss-react-native-build/build-app@v0
with:
platform: android
rn-ver: ${{ matrix.rn_ver }}
android-arch: arm64-v8a
build-ios:
name: Build iOS ${{ matrix.ios-package-manager }} (RN ${{ matrix.rn_ver }})
runs-on: macos-15
strategy:
fail-fast: false
matrix:
rn_ver: [ latest, 0.87.1, 0.86.3 ]
ios-package-manager: [ pods, spm ]
exclude:
- rn_ver: 0.86.3 # SPM requires RN >= 0.87
ios-package-manager: spm
steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: retyui/oss-react-native-build/build-app@v0
with:
platform: ios
rn-ver: ${{ matrix.rn_ver }}
ios-package-manager: ${{ matrix.ios-package-manager }}