Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/android build workflow #893

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ jobs:
needs: version
with:
version: ${{ needs.version.outputs.release_version }}
android-build:
uses: walt-id/waltid-identity/.github/workflows/build-android.yml@e91ee212a8b9f60a9a39d839eafdc8a5d8f8b286
needs: gradle-build
docker-matrix:
uses: walt-id/waltid-identity/.github/workflows/load-json.yml@927c4233610e90dd8a57418662fad7293b7b29a4
with:
Expand Down