-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
58 lines (51 loc) · 1.59 KB
/
ios-build-test.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
name: Example iOS check
on:
pull_request:
paths:
- .github/workflows/ios-build-test.yml
- RNSVG.podspec
- apple/**
- src/fabric/**
- package.json
- apps/paper-example/package.json
- apps/paper-example/ios/**
- apps/fabric-example/package.json
- apps/fabric-example/ios/**
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: macos-latest
# runs-on: [self-hosted, macOS]
strategy:
matrix:
working-directory: [paper-example, fabric-example]
fail-fast: false
concurrency:
group: ios-${{ matrix.working-directory }}-${{ github.ref }}
cancel-in-progress: true
steps:
- name: Checkout Git repository
uses: actions/checkout@v4
- name: Use latest stable Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Use Node.js 20
uses: actions/setup-node@v2
with:
node-version: 20
cache: 'yarn'
- name: Install react-native-svg node_modules
run: yarn install --frozen-lockfile
- name: Install app node_modules
working-directory: apps/${{ matrix.working-directory }}
run: yarn install --frozen-lockfile
- name: Install Pods
working-directory: apps/${{ matrix.working-directory }}/ios
run: bundle install && bundle exec pod install
- name: Build app
working-directory: apps/${{ matrix.working-directory }}
run: npx react-native run-ios --simulator="iPhone 16 Pro" --mode Debug --verbose --no-packager