-
-
Notifications
You must be signed in to change notification settings - Fork 34
64 lines (50 loc) Β· 1.85 KB
/
Copy pathios.yml
File metadata and controls
64 lines (50 loc) Β· 1.85 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
name: iOS CI with Xcode
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
paths:
- 'ios/**'
- 'Gemfile'
- 'Gemfile.lock'
- '.github/workflows/ios.yml'
- 'index.{js,ts}'
- 'metro.config.js'
- 'babel.config.js'
- 'react-native.config.js'
- 'package.json'
- 'yarn.lock'
# - 'package-lock.json'
# - 'pnpm-lock.yaml'
# - 'bun.lock'
# - 'vlt-lock.json'
workflow_dispatch:
jobs:
build-ios:
# if PR contains either 'linting' or '@types' labels (see: renovate.json5) don't run (i.e. skip) this expensive job
if: ${{ !(github.event_name == 'pull_request' && (contains(github.event.pull_request.labels.*.name, 'linting') || contains(github.event.pull_request.labels.*.name, 'types'))) }}
runs-on: macos-26 # https://github.com/actions/runner-images/blob/main/images/macos/macos-26-arm64-Readme.md
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
# - uses: mikehardy/buildcache-action@v1
# yarn cache
# node_modules cache
- name: Install deps and setup
run: yarn && yarn setup
- name: npx react-native info
run: npx react-native info
# - uses: ruby/setup-ruby@v1
# with:
# bundler-cache: true # bundle install and cache installed gems automatically
# - run: bundle exec rake
# - uses: setup/cocoapods # cache
# DerivedData cache
# - name: Xcode clean
# run: xcodebuild clean
- name: Normalise Hermes CocoaPods lockfile checksum # TODO: Fix https://github.com/facebook/react-native/issues/54891
run: yarn gems:frozen && bundle exec pod update hermes-engine --no-repo-update --project-directory=ios
- name: Install RubyGems and CocoaPods
run: yarn install:ios:ci
- name: Build iOS (release)
run: yarn ios:release