generated from AdamMc331/AndroidAppTemplate
-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (32 loc) · 929 Bytes
/
compile.yml
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
33
34
35
36
37
38
39
name: Compile Code
on:
push:
branches:
- development
pull_request:
jobs:
compile:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set Up JDK
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17
- name: Generate local.properties
env:
LOCAL_PROPERTIES: ${{ secrets.LOCAL_PROPERTIES }}
run: echo $LOCAL_PROPERTIES > ./local.properties
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
# Only write to the cache for builds on the 'development' branch
cache-read-only: ${{ github.ref != 'refs/heads/development' }}
- name: Compile
run: |
./gradlew compileDebugKotlin
./gradlew compileReleaseKotlin
env:
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}