Files
SimplicityTools/.github/workflows/android.yml
Ketal e3909c5996 Update android.yml (#76)
* Update android.yml

* Update android.yml

Co-authored-by: 乌堆小透明 <lturtle2333@outlook.com>
2022-03-15 01:05:33 +08:00

43 lines
1018 B
YAML

name: Android CI
on:
pull_request:
branches: [ main ]
paths-ignore:
- 'README.md'
- 'README_EN.md'
- 'doc/*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
!~/.gradle/caches/build-cache-*
key: gradle-deps-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: gradle-deps
- uses: actions/cache@v2
with:
path: |
~/.gradle/caches/build-cache-*
key: gradle-builds-${{ github.sha }}
- name: Init Submodule
run: |
git submodule init
git submodule update
- name: Build with Gradle
run: bash ./gradlew :app:packageDebug