diff --git a/.github/workflows/maxrefdes178.yml b/.github/workflows/maxrefdes178.yml index 18d8b45c..2819cd57 100644 --- a/.github/workflows/maxrefdes178.yml +++ b/.github/workflows/maxrefdes178.yml @@ -20,15 +20,24 @@ jobs: - name: Checkout Maxim SDK uses: actions/checkout@v2 with: - repository: Maxim-Integrated-Software-Public/maxim-sdk-windows-actions + repository: Analog-Devices-MSDK/msdk path: MaximSDK + submodules: recursive + + - name: Checkout Maxim SDK Tools + uses: actions/checkout@v2 + with: + repository: Maxim-Integrated-Software-Public/maxim-sdk-windows-actions + path: MSDKTools lfs: 'true' - - name: Prepare Maxim Toolchain and SDK + - name: Prepare Maxim Toolchain run: | - cd MaximSDK + cd MSDKTools 7z x Tools.7z - 7z x Libraries.7z + cp -r ./Tools/GNUTools/ ../MaximSDK/Tools/ + cp -r ./Tools/MinGW/ ../MaximSDK/Tools/ + cd ../MaximSDK - name: Get Version Info run: | @@ -775,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<> maxrefdes178-FaceId/maxrefdes178_android/local.properties - - - name: Build FaceID Android Application - uses: eskatos/gradle-command-action@v1.3.3 - 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/** -