From 8d86ce4c13238cab26b50da161269d63d1f04a40 Mon Sep 17 00:00:00 2001 From: Xwite <1797350009@qq.com> Date: Mon, 19 Feb 2024 13:29:03 +0800 Subject: [PATCH] [skip ci] update test.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 构建失败时继续其他步骤 --- .github/workflows/test.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 30eb577ef..b677b0ef9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -78,6 +78,7 @@ jobs: uses: gradle/actions/setup-gradle@v3 - name: Build With Gradle + continue-on-error: true run: | if [ ${{ env.type }} == 'release' ]; then typeName="原包名" @@ -91,12 +92,15 @@ jobs: echo "开始${{ env.product }}$typeName构建" chmod +x gradlew ./gradlew assemble${{ env.product }}release --build-cache --parallel --daemon --warning-mode all - echo "修改文件名" + - name: Rename outputs apks And Move mapping files + run: | + echo "修改APK文件名" mkdir -p ${{ github.workspace }}/apk/ - mkdir -p ${{ github.workspace }}/mapping/ for file in `ls ${{ github.workspace }}/app/build/outputs/apk/*/*/*.apk`; do mv "$file" ${{ github.workspace }}/apk/legado_${{ env.product }}_${{ env.VERSIONL }}_$typeName.apk done + echo "移动mapping文件" + mkdir -p ${{ github.workspace }}/mapping/ for file in `ls ${{ github.workspace }}/app/build/outputs/mapping/*/mapping.txt`; do mv "$file" ${{ github.workspace }}/mapping/mapping.txt done