Skip to content

Commit

Permalink
Remove Android autobuild
Browse files Browse the repository at this point in the history
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
ozersa committed Nov 22, 2022
1 parent 5b2c868 commit df22751
Showing 1 changed file with 0 additions and 76 deletions.
76 changes: 0 additions & 76 deletions .github/workflows/maxrefdes178.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/**

0 comments on commit df22751

Please sign in to comment.