Skip to content

Commit

Permalink
Merge pull request #68 from francisduvivier/francisduvivier-androidbuild
Browse files Browse the repository at this point in the history
Enable android build action with gradle build cache and path filter
  • Loading branch information
thias15 authored Sep 29, 2020
2 parents 55cc9e2 + 866be02 commit 686b372
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@ name: Java CI with Gradle
on:
push:
branches: [ master ]
paths:
- 'android/**'
- '.github/workflows/gradle.yml'
pull_request:
branches: [ master ]
paths:
- 'android/**'
- '.github/workflows/gradle.yml'

jobs:
build:
Expand All @@ -20,6 +26,12 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Style
run: |
cd android
Expand All @@ -28,7 +40,7 @@ jobs:
run: |
cd android
./gradlew lint
# - name: Build
# run: |
# cd android
# ./gradlew build
- name: Build
run: |
cd android
./gradlew build

0 comments on commit 686b372

Please sign in to comment.