diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 5fac01e..bcac6ff 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -83,14 +83,17 @@ jobs: path: | app/build/outputs/apk/cpu/release/*.apk app/build/outputs/apk/gpu/release/*.apk - OcrLibrary/build/outputs/aar/*-release.aar + OcrLibrary/build/outputs/aar/*-cpu-release.aar + OcrLibrary/build/outputs/aar/*-gpu-release.aar # 获取 aar路径(需要定制) - name: Get aar path id: aar-path run: | - path=$(find OcrLibrary/build/outputs/aar -name '*release.aar' -type f | head -1) - echo "::set-output name=path::$path" + path1=$(find OcrLibrary/build/outputs/aar -name '*-cpu-release.aar' -type f | head -1) + path2=$(find OcrLibrary/build/outputs/aar -name '*-gpu-release.aar' -type f | head -1) + echo "::set-output name=path1::$path1" + echo "::set-output name=path2::$path2" # 获取demo apk路径 - name: Get apk path @@ -132,7 +135,8 @@ jobs: - name: Show info if: always() run: | - echo '${{ steps.aar-path.outputs.path }}' + echo '${{ steps.aar-path.outputs.path1 }}' + echo '${{ steps.aar-path.outputs.path2 }}' echo '${{ steps.apk-path.outputs.path1 }}' echo '${{ steps.apk-path.outputs.path2 }}' echo '${{ steps.apk-info.outputs.result }}' # get apk info success or failure @@ -185,6 +189,7 @@ jobs: files: | ${{ steps.apk-path.outputs.path1 }} ${{ steps.apk-path.outputs.path2 }} - ${{ steps.aar-path.outputs.path }} + ${{ steps.aar-path.outputs.path1 }} + ${{ steps.aar-path.outputs.path2 }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}