-
Notifications
You must be signed in to change notification settings - Fork 4
32 lines (26 loc) · 986 Bytes
/
Copy pathandroid_build.yml
File metadata and controls
32 lines (26 loc) · 986 Bytes
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
name: Android Build
# This will cancel any in progress workflows for the same PR, if
# multiple pushes happen in quick succession.
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
on: pull_request
jobs:
android-build:
runs-on: macos-26
steps:
- uses: actions/checkout@v6
- name: Set Up JDK
uses: actions/setup-java@v5
with:
distribution: 'zulu'
java-version-file: .github/.java-version
- name: Setup Gradle
uses: gradle/gradle-build-action@v3
with:
# Only write to the cache for builds on the 'development' branch
cache-read-only: ${{ github.ref != 'refs/heads/development' }}
# assembleDebug is used to improve build times by only building
# the debug Android artifacts. https://touchlab.co/touchlab-build-only-what-you-need
- name: Build Project
run: ./gradlew assembleDebug