Skip to content

Commit 0c2cfea

Browse files
committed
Update circleci
1 parent bc01afc commit 0c2cfea

1 file changed

Lines changed: 16 additions & 11 deletions

File tree

.circleci/config.yml

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
1-
version: 2
1+
version: 2.1
2+
3+
orbs:
4+
android: circleci/android@2.3.0
5+
26
jobs:
37
build:
4-
working_directory: ~/code
5-
docker:
6-
- image: cimg/android:2024.08.1-ndk
8+
executor:
9+
name: android/android-docker
10+
tag: 2024.08.1-ndk
11+
resource-class: large
712
environment:
813
GRADLE_OPTS: -Dorg.gradle.workers.max=1 -Dorg.gradle.daemon=false -Dkotlin.compiler.execution.strategy="in-process"
914
RUST_VERSION: 1.80.0
@@ -16,16 +21,11 @@ jobs:
1621
command: |
1722
echo 'export PATH="$HOME"/.cargo/bin:"$PATH"' >> "$BASH_ENV"
1823
- run: rustup target add armv7-linux-androideabi aarch64-linux-android i686-linux-android x86_64-linux-android
19-
- restore_cache:
20-
key: jars-{{ checksum "build.gradle.kts" }}
24+
- android/restore-gradle-cache
2125
- run:
2226
name: Run Build and Tests
2327
command: ./gradlew assembleDebug check -PCARGO_PROFILE=debug
24-
- save_cache:
25-
paths:
26-
- ~/.gradle
27-
- ~/.android/build-cache
28-
key: jars-{{ checksum "build.gradle.kts" }}
28+
- android/save-gradle-cache
2929
- store_artifacts:
3030
path: mobile/build/outputs/apk
3131
destination: apk/mobile
@@ -44,3 +44,8 @@ jobs:
4444
- store_artifacts:
4545
path: tv/build/reports
4646
destination: reports/tv
47+
48+
workflows:
49+
test:
50+
jobs:
51+
- build

0 commit comments

Comments
 (0)