Skip to content

Commit ef8b3d6

Browse files
authored
chore(CI): Fix workflow issues (#835)
1 parent 494eab8 commit ef8b3d6

File tree

2 files changed

+14
-52
lines changed

2 files changed

+14
-52
lines changed

.github/workflows/android.yml

Lines changed: 11 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,20 @@ on:
44
pull_request:
55
branches:
66
- master
7-
- next
87
paths:
98
- '.github/workflows/android.yml'
109
- 'android/**'
1110
- 'example/android/**'
1211
push:
1312
branches:
1413
- master
15-
- next
16-
17-
concurrency:
18-
group: ${{ github.ref }}-android
19-
cancel-in-progress: true
2014

2115
jobs:
2216
android-build:
2317
runs-on: macos-12
18+
concurrency:
19+
group: ${{ github.ref }}-android
20+
cancel-in-progress: true
2421
steps:
2522
- uses: actions/checkout@v4
2623
- uses: ./.github/actions/install-dependencies
@@ -48,53 +45,25 @@ jobs:
4845
with:
4946
distribution: 'zulu'
5047
java-version: '17'
51-
52-
- name: Gradle cache
53-
uses: actions/cache@v4
54-
with:
55-
path: |
56-
~/.gradle/caches
57-
~/.gradle/wrapper
58-
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/buildSrc/**/*.kt') }}
59-
60-
- name: AVD cache
61-
uses: actions/cache@v4
62-
id: avd-cache
63-
with:
64-
path: |
65-
~/.android/avd/*
66-
~/.android/adb*
67-
key: avd-cache
48+
cache: 'gradle'
6849

6950
- name: Install Maestro CLI
7051
run: export MAESTRO_VERSION=1.31.0; curl -Ls "https://get.maestro.mobile.dev" | bash
7152

7253
- name: Add Maestro to path
7354
run: echo "${HOME}/.maestro/bin" >> $GITHUB_PATH
7455

75-
- name: create AVD and generate snapshot for caching
76-
if: steps.avd-cache.outputs.cache-hit != 'true'
77-
uses: reactivecircus/android-emulator-runner@v2
78-
with:
79-
api-level: 29
80-
force-avd-creation: false
81-
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
82-
disable-animations: false
83-
cores: 2
84-
ram-size: 4096M
85-
profile: Nexus 6
86-
script: echo "Generated AVD snapshot for caching."
87-
8856
- name: Run Android Emulator and app
8957
uses: reactivecircus/android-emulator-runner@v2
9058
with:
91-
api-level: 29
92-
force-avd-creation: false
93-
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
59+
api-level: 31
60+
target: aosp_atd
61+
profile: pixel_2
62+
ram-size: '4096M'
63+
disk-size: '10G'
9464
disable-animations: false
95-
cores: 2
96-
ram-size: 4096M
97-
profile: Nexus 6
65+
avd-name: e2e_emulator
66+
arch: x86_64
9867
script: |
9968
yarn run-example-android
10069
yarn test:e2e:android

.github/workflows/ios.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,25 @@ on:
44
pull_request:
55
branches:
66
- master
7-
- next
87
paths:
98
- '.github/workflows/ios.yml'
109
- 'ios/**'
1110
- 'example/ios/**'
1211
push:
1312
branches:
1413
- master
15-
- next
1614

17-
concurrency:
18-
group: ${{ github.ref }}-ios
19-
cancel-in-progress: true
2015

2116
jobs:
2217
ios-build:
2318
runs-on: macos-14
19+
concurrency:
20+
group: ${{ github.ref }}-ios
21+
cancel-in-progress: true
2422
steps:
2523
- uses: actions/checkout@v4
2624
- uses: ./.github/actions/install-dependencies
2725

28-
- name: Use latest stable Xcode
29-
uses: maxim-lobanov/setup-xcode@v1
30-
with:
31-
xcode-version: latest-stable
32-
3326
- name: Pull dependencies
3427
uses: actions/cache@v4
3528
with:

0 commit comments

Comments
 (0)