-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GitHub Action for testing Android Gradle build
- Loading branch information
Showing
2 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Android Gradle Build test logic | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
os: | ||
required: true | ||
type: string | ||
jdk_distro: | ||
required: true | ||
type: string | ||
jdk_version: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
build_wolfssljni: | ||
runs-on: ${{ inputs.os }} | ||
steps: | ||
- name: Clone wolfcrypt-jni | ||
uses: actions/checkout@v4 | ||
|
||
# Clone native wolfSSL | ||
- name: Clone native wolfSSL | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: 'wolfssl/wolfssl' | ||
path: IDE/Android/app/src/main/cpp/wolfssl | ||
|
||
# Copy options.h.in to blank options.h | ||
- name: Create blank options.h | ||
run: cp IDE/Android/app/src/main/cpp/wolfssl/wolfssl/options.h.in IDE/Android/app/src/main/cpp/wolfssl/wolfssl/options.h | ||
|
||
# Setup Java | ||
- name: Setup java | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: ${{ inputs.jdk_distro }} | ||
java-version: ${{ inputs.jdk_version }} | ||
|
||
# Gradle assembleDebug | ||
- name: Gradle assembleDebug | ||
run: cd IDE/Android && ls && ./gradlew assembleDebug | ||
|
||
# Gradle assembleDebugUnitTest | ||
- name: Gradle assembleDebugUnitTest | ||
run: cd IDE/Android && ls && ./gradlew assembleDebugUnitTest | ||
|
||
# Gradle assembleDebugAndroidTest | ||
- name: Gradle assembleDebugAndroidTest | ||
run: cd IDE/Android && ls && ./gradlew assembleDebugAndroidTest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters