From 30eb4a7b0e10120b1c52c49aa701b6ed0a0ffbf9 Mon Sep 17 00:00:00 2001 From: benjaminwan Date: Thu, 28 Oct 2021 11:13:30 +0800 Subject: [PATCH] fix: github workflow config aar file name --- .github/workflows/android.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) 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 }}