-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Android build fails while signing image, The below ticket exactly same as our case - r0adkll/sign-android-release#61 - r0adkll/sign-android-release#34 The solution not found yet... For now android build deleted add it when the issue has been fixed There will be an open PR to follow up this case (Android auto build) Signed-off-by: Sadik.Ozer <[email protected]>
- Loading branch information
Showing
1 changed file
with
0 additions
and
76 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 |
---|---|---|
|
@@ -784,79 +784,3 @@ jobs: | |
with: | ||
name: maxrefdes178_firmware_v${{env.VERSION}} | ||
path: release/** | ||
|
||
build_android: | ||
name: Build Android App | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: 'recursive' | ||
|
||
- name: Get Version Info | ||
run: | | ||
# This block parses version.h file in source code for version info. | ||
VERSION_MAJOR=$(awk '/VERSION_MAJOR/ {print $3}' maxrefdes178_common/maxrefdes178_version.h | tr -d '\r') | ||
VERSION_MINOR=$(awk '/VERSION_MINOR/ {print $3}' maxrefdes178_common/maxrefdes178_version.h | tr -d '\r') | ||
VERSION="${VERSION_MAJOR}.${VERSION_MINOR}.${{github.run_number}}" | ||
echo "VERSION=$VERSION" >> $GITHUB_ENV | ||
- name: Set Build Info | ||
run: | | ||
# This block generates build info header file to include from source code. | ||
cat >maxrefdes178_common/maxrefdes178_build_info.h<<EOF | ||
/* AUTOGENERATED, DO NOT EDIT */ | ||
#ifndef _BUILD_INFO_H_ | ||
#define _BUILD_INFO_H_ | ||
#define S_BUILD_NUMBER ${{github.run_number}} | ||
#define S_BUILD_TYPE "${BUILD_TYPE}" | ||
#define S_BUILD_MACHINE "$(hostname)" | ||
#define S_BUILD_SCM_REVISION "${{github.sha}}" | ||
#define S_BUILD_TIMESTAMP "$(date +%Y%m%d%H%M)" | ||
#endif /* _BUILD_INFO_H_ */ | ||
EOF | ||
- name: Pre Build FaceID Android | ||
run: | | ||
echo "chaquopy.license=${{ secrets.MAXREFDES178_CHAQUOPY_LICENSE }}" >> maxrefdes178-FaceId/maxrefdes178_android/local.properties | ||
- name: Build FaceID Android Application | ||
uses: eskatos/[email protected] | ||
with: | ||
build-root-directory: maxrefdes178-FaceId/maxrefdes178_android | ||
wrapper-directory: maxrefdes178-FaceId/maxrefdes178_android | ||
arguments: app::assembleRelease --no-daemon | ||
gradle-version: wrapper | ||
wrapper-cache-enabled: true | ||
dependencies-cache-enabled: true | ||
configuration-cache-enabled: true | ||
|
||
- name: Sign Android Application | ||
uses: r0adkll/sign-android-release@v1 | ||
# ID used to access action output | ||
id: sign_app | ||
with: | ||
releaseDirectory: maxrefdes178-FaceId/maxrefdes178_android/app/build/outputs/apk/release | ||
signingKeyBase64: ${{ secrets.MAXREFDES178_SIGNING_KEY }} | ||
alias: ${{ secrets.MAXREFDES178_KEY_ALIAS }} | ||
keyStorePassword: ${{ secrets.MAXREFDES178_KEY_STORE_PASSWORD }} | ||
keyPassword: ${{ secrets.MAXREFDES178_KEY_PASSWORD }} | ||
|
||
- name: Prepare Release | ||
run: | | ||
mkdir release | ||
mkdir release/FaceId | ||
mv ${{steps.sign_app.outputs.signedReleaseFile}} release/FaceId/maxrefdes178_android_faceid_v${VERSION}.apk | ||
# mv app/build/outputs/apk/debug/app-debug.apk release/FaceId/maxrefdes178_android_faceid_debug_v${VERSION}.apk | ||
- uses: actions/upload-artifact@v2 | ||
if: always() | ||
with: | ||
name: maxrefdes178_android_v${{env.VERSION}} | ||
path: release/** | ||
|