Skip to content

Commit 2ca1cea

Browse files
committed
Split expo and basic example builds
1 parent 6f0c70a commit 2ca1cea

7 files changed

Lines changed: 81 additions & 29 deletions

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build Android (basic-example)
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- .github/workflows/android-basic.yml
7+
- .github/workflows/android-build.yml
8+
- packages/react-native-gesture-handler/package.json
9+
- packages/react-native-gesture-handler/android/**
10+
- packages/react-native-gesture-handler/shared/**
11+
- packages/react-native-gesture-handler/src/specs/**
12+
- apps/basic-example/**
13+
- '!apps/basic-example/ios/**'
14+
- '!apps/basic-example/Gemfile*'
15+
- rnrepo.config.json
16+
- yarn.lock
17+
push:
18+
branches:
19+
- main
20+
workflow_dispatch:
21+
22+
concurrency:
23+
group: android-basic-${{ github.ref }}
24+
cancel-in-progress: true
25+
26+
jobs:
27+
basic-example:
28+
if: github.repository == 'software-mansion/react-native-gesture-handler'
29+
30+
uses: ./.github/workflows/android-build.yml
31+
with:
32+
app: basic-example
33+
artifact-name: android-apk-basic-example
34+
abi: x86_64

‎.github/workflows/android-build.yml‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: Build Android app
22

3-
# Reusable: builds one example app in Release and uploads the APK, so
4-
# `android-e2e.yml` can install that exact APK instead of building the app a
5-
# second time. Called by `android.yml`.
3+
# Reusable: builds one example app in Release and uploads the APK.
64
on:
75
workflow_call:
86
inputs:

‎.github/workflows/android.yml‎

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ on:
55
paths:
66
- .github/workflows/android.yml
77
- .github/workflows/android-build.yml
8+
- packages/react-native-gesture-handler/package.json
89
- packages/react-native-gesture-handler/android/**
910
- packages/react-native-gesture-handler/shared/**
1011
- packages/react-native-gesture-handler/src/**
11-
- apps/basic-example/**
1212
- apps/expo-example/**
1313
- apps/common-app/**
1414
- rnrepo.config.json
@@ -23,16 +23,11 @@ concurrency:
2323
cancel-in-progress: true
2424

2525
jobs:
26-
build:
26+
expo-example:
2727
if: github.repository == 'software-mansion/react-native-gesture-handler'
2828

29-
strategy:
30-
fail-fast: false
31-
matrix:
32-
app: [basic-example, expo-example]
33-
3429
uses: ./.github/workflows/android-build.yml
3530
with:
36-
app: ${{ matrix.app }}
37-
artifact-name: android-apk-${{ matrix.app }}
31+
app: expo-example
32+
artifact-name: android-apk-expo-example
3833
abi: x86_64

‎.github/workflows/ios-basic.yml‎

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build iOS (basic-example)
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- .github/workflows/ios-basic.yml
7+
- .github/workflows/ios-build.yml
8+
- packages/react-native-gesture-handler/package.json
9+
- packages/react-native-gesture-handler/RNGestureHandler.podspec
10+
- packages/react-native-gesture-handler/apple/**
11+
- packages/react-native-gesture-handler/shared/**
12+
- packages/react-native-gesture-handler/src/specs/**
13+
- apps/basic-example/**
14+
- '!apps/basic-example/android/**'
15+
- rnrepo.config.json
16+
- yarn.lock
17+
push:
18+
branches:
19+
- main
20+
workflow_dispatch:
21+
22+
concurrency:
23+
group: ios-basic-${{ github.ref }}
24+
cancel-in-progress: true
25+
26+
jobs:
27+
basic-example:
28+
if: github.repository == 'software-mansion/react-native-gesture-handler'
29+
30+
uses: ./.github/workflows/ios-build.yml
31+
with:
32+
app: basic-example
33+
scheme: BasicExample
34+
artifact-name: ios-app-basic-example
35+
xcode-version: '26.4.1'

‎.github/workflows/ios-build.yml‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
name: Build iOS app
22

33
# Reusable: builds one example app for the simulator in Release and uploads the
4-
# .app bundle, so `ios-e2e.yml` can install that exact binary instead of
5-
# building the app a second time. Called by `ios.yml`.
4+
# .app bundle.
65
on:
76
workflow_call:
87
inputs:

‎.github/workflows/ios.yml‎

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ on:
55
paths:
66
- .github/workflows/ios.yml
77
- .github/workflows/ios-build.yml
8+
- packages/react-native-gesture-handler/package.json
89
- packages/react-native-gesture-handler/RNGestureHandler.podspec
910
- packages/react-native-gesture-handler/apple/**
1011
- packages/react-native-gesture-handler/shared/**
1112
- packages/react-native-gesture-handler/src/**
12-
- apps/basic-example/**
1313
- apps/expo-example/**
1414
- apps/common-app/**
1515
- rnrepo.config.json
@@ -24,21 +24,12 @@ concurrency:
2424
cancel-in-progress: true
2525

2626
jobs:
27-
build:
27+
expo-example:
2828
if: github.repository == 'software-mansion/react-native-gesture-handler'
2929

30-
strategy:
31-
fail-fast: false
32-
matrix:
33-
include:
34-
- app: basic-example
35-
scheme: BasicExample
36-
- app: expo-example
37-
scheme: ExpoExample
38-
3930
uses: ./.github/workflows/ios-build.yml
4031
with:
41-
app: ${{ matrix.app }}
42-
scheme: ${{ matrix.scheme }}
43-
artifact-name: ios-app-${{ matrix.app }}
32+
app: expo-example
33+
scheme: ExpoExample
34+
artifact-name: ios-app-expo-example
4435
xcode-version: '26.4.1'

‎.github/workflows/static-example-apps-checks.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Test TypeScript and Lint
33
on:
44
pull_request:
55
paths:
6-
- apps/basic-example/**'
6+
- apps/basic-example/**
77
- apps/common-app/**
88
push:
99
branches:

0 commit comments

Comments
 (0)