Skip to content

Sample for ark-core FileStorage JNI bindings usage #48

Sample for ark-core FileStorage JNI bindings usage

Sample for ark-core FileStorage JNI bindings usage #48

Workflow file for this run

name: Build sample app
on:
push:
branches: [ main ]
paths:
- sample/**
pull_request:
branches:
- main
paths:
- sample/**
jobs:
build:
if: ${{ ! startsWith(github.actor, 'dependabot') }}
environment: Development
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
cache: gradle
- name: Validate Gradle wrapper
uses: gradle/[email protected]
- name: Decrypt the keystore for signing
run: |
echo "${{ secrets.KEYSTORE_ENCRYPTED }}" > keystore.asc
gpg -d --passphrase "${{ secrets.KEYSTORE_PASSWORD }}" --batch keystore.asc > keystore.jks
- name: Build release sample APK
run: ./gradlew sample:assembleRelease
- name: Upload release arm64-v8a APK
uses: actions/upload-artifact@v4
with:
name: release-arm64-v8a-apk
path: ./sample/build/outputs/apk/release/sample-arm64-v8a-release.apk
- name: Upload release armeabi-v7a APK
uses: actions/upload-artifact@v4
with:
name: release-armeabi-v7a-apk
path: ./sample/build/outputs/apk/release/sample-armeabi-v7a-release.apk
- name: Upload release universal APK
uses: actions/upload-artifact@v4
with:
name: release-universal-apk
path: ./sample/build/outputs/apk/release/sample-universal-release.apk