Skip to content

Commit

Permalink
Update circleci
Browse files Browse the repository at this point in the history
  • Loading branch information
Mygod committed Aug 28, 2024
1 parent bc01afc commit 0c2cfea
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
version: 2
version: 2.1

orbs:
android: circleci/[email protected]

jobs:
build:
working_directory: ~/code
docker:
- image: cimg/android:2024.08.1-ndk
executor:
name: android/android-docker
tag: 2024.08.1-ndk
resource-class: large
environment:
GRADLE_OPTS: -Dorg.gradle.workers.max=1 -Dorg.gradle.daemon=false -Dkotlin.compiler.execution.strategy="in-process"
RUST_VERSION: 1.80.0
Expand All @@ -16,16 +21,11 @@ jobs:
command: |
echo 'export PATH="$HOME"/.cargo/bin:"$PATH"' >> "$BASH_ENV"
- run: rustup target add armv7-linux-androideabi aarch64-linux-android i686-linux-android x86_64-linux-android
- restore_cache:
key: jars-{{ checksum "build.gradle.kts" }}
- android/restore-gradle-cache
- run:
name: Run Build and Tests
command: ./gradlew assembleDebug check -PCARGO_PROFILE=debug
- save_cache:
paths:
- ~/.gradle
- ~/.android/build-cache
key: jars-{{ checksum "build.gradle.kts" }}
- android/save-gradle-cache
- store_artifacts:
path: mobile/build/outputs/apk
destination: apk/mobile
Expand All @@ -44,3 +44,8 @@ jobs:
- store_artifacts:
path: tv/build/reports
destination: reports/tv

workflows:
test:
jobs:
- build

0 comments on commit 0c2cfea

Please sign in to comment.