Skip to content

Commit

Permalink
ci: add build android reusable workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeplotean committed Jan 20, 2025
1 parent 6f6fc34 commit 8f6d6c6
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build-android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Android CI

on:
workflow_call:

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Configure gradle
uses: ./.github/actions/gradle-setup-action
- name: Setup Android SDK
uses: android-actions/setup-android@v3
- name: Configure sdk.dir
run: echo "sdk.dir=${HOME}/.android/sdk" > local.properties
- name: Enable android build
run: |
if grep -q "enableAndroidBuild" gradle.properties; then
sed -i 's/enableAndroidBuild=.*/enableAndroidBuild=true/' gradle.properties
else
echo "enableAndroidBuild=true" >> gradle.properties
fi
- name: Build
run: ./gradlew --no-daemon build

0 comments on commit 8f6d6c6

Please sign in to comment.