From 922b4ca949ef1e4e05e4ab1426e7f28e20dcd1ce Mon Sep 17 00:00:00 2001 From: yangxisong Date: Fri, 12 Dec 2025 15:29:26 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=BC=96=E5=86=99workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build-aar.yml | 37 ++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .gitea/workflows/build-aar.yml diff --git a/.gitea/workflows/build-aar.yml b/.gitea/workflows/build-aar.yml new file mode 100644 index 0000000..43ef265 --- /dev/null +++ b/.gitea/workflows/build-aar.yml @@ -0,0 +1,37 @@ +name: Build and Package Android AAR + +on: + push: + branches: + - main + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up JDK 11 + uses: actions/setup-java@v2 + with: + java-version: '11' + + - name: Install Android SDK + run: | + echo "sdk.dir=$ANDROID_HOME" > local.properties + yes | sdkmanager --licenses + sdkmanager "platform-tools" "platforms;android-30" "build-tools;30.0.3" + + - name: Cache Gradle packages + uses: actions/cache@v2 + with: + path: ~/.gradle + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} + restore-keys: | + ${{ runner.os }}-gradle- + + - name: Build with Gradle Debug + run: ./gradlew library:publishDebugPublicationToDebugRepoRepository