-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #222 from cconlon/gradleAction
Add Github Actions PRB test for Android gradle build
- Loading branch information
Showing
33 changed files
with
611 additions
and
395 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 wolfssljni | ||
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
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
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
Oops, something went wrong.