From e7b7751fbbfd912a5b7dec8d23532b7d7f187bea Mon Sep 17 00:00:00 2001 From: AzenKain Date: Wed, 8 Oct 2025 14:04:47 +0700 Subject: [PATCH] Add CI/CD --- .gitea/workflows/build.yml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 81ed963..a471867 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -6,22 +6,17 @@ on: [push] jobs: build: runs-on: ubuntu-latest + container: mingc/android-build-box:latest steps: - uses: actions/checkout@v5 - - name: Set up JDK 17 - uses: actions/setup-java@v5 + - uses: actions/cache@v3 with: - distribution: 'temurin' - java-version: 17 - - - name: Setup Android SDK - uses: amyu/setup-android@v5 - with: - # default: false - # Whether to use the cache - cache-disabled: true + path: /root/.gradle/caches + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} + restore-keys: | + ${{ runner.os }}-gradle- - name: Grant execute permission for Gradle wrapper run: chmod +x ./gradlew