Create ci.yml

This commit is contained in:
满月叶 2024-06-07 13:28:01 +08:00 committed by GitHub
parent 0cee015fbd
commit 301bf66408
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

26
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,26 @@
name: Android CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build