From 301bf66408962018f52cf4d6dd1a3e324c8d0fe2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BB=A1=E6=9C=88=E5=8F=B6?= <150461955+MoonLeeeaf@users.noreply.github.com> Date: Fri, 7 Jun 2024 13:28:01 +0800 Subject: [PATCH] Create ci.yml --- .github/workflows/ci.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..edce472 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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