Skip to content
Merged
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
10 changes: 10 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,22 @@ jobs:
distribution: 'temurin'
java-version: '17'

- name: Setup NDK
uses: nttld/setup-ndk@v1
id: setup-ndk
with:
ndk-version: r28c
add-to-path: false

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Build project
run: |
export ANDROID_SDK=$ANDROID_HOME
./gradlew -i nativeBuild
env:
ANDROID_NDK: ${{ steps.setup-ndk.outputs.ndk-path }}

- name: Deploy Snapshot
if: github.ref == 'refs/heads/master'
Expand All @@ -41,3 +50,4 @@ jobs:
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
ANDROID_NDK: ${{ steps.setup-ndk.outputs.ndk-path }}
8 changes: 8 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ jobs:
distribution: 'temurin'
java-version: '17'

- name: Setup NDK
uses: nttld/setup-ndk@v1
id: setup-ndk
with:
ndk-version: r28c
add-to-path: false

- name: Grant execute permission for gradlew
run: chmod +x gradlew

Expand All @@ -45,6 +52,7 @@ jobs:
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
GPG_KEYNAME: ${{ secrets.GPG_KEYNAME }}
ANDROID_NDK: ${{ steps.setup-ndk.outputs.ndk-path }}

- name: Release Javadocs to S3
if: steps.deploy.outputs.exit_code == 0
Expand Down