فهرست منبع

[skip ci] update test.yml

构建失败时继续其他步骤
Xwite 2 سال پیش
والد
کامیت
1f5ba287c5
1فایلهای تغییر یافته به همراه6 افزوده شده و 2 حذف شده
  1. 6 2
      .github/workflows/test.yml

+ 6 - 2
.github/workflows/test.yml

@@ -78,6 +78,7 @@ jobs:
         uses: gradle/actions/setup-gradle@v3
         uses: gradle/actions/setup-gradle@v3
 
 
       - name: Build With Gradle
       - name: Build With Gradle
+        continue-on-error: true
         run: |
         run: |
           if [ ${{ env.type }} == 'release' ]; then
           if [ ${{ env.type }} == 'release' ]; then
             typeName="原包名"
             typeName="原包名"
@@ -91,12 +92,15 @@ jobs:
           echo "开始${{ env.product }}$typeName构建"
           echo "开始${{ env.product }}$typeName构建"
           chmod +x gradlew
           chmod +x gradlew
           ./gradlew assemble${{ env.product }}release --build-cache --parallel --daemon --warning-mode all
           ./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 }}/apk/
-          mkdir -p ${{ github.workspace }}/mapping/
           for file in `ls ${{ github.workspace }}/app/build/outputs/apk/*/*/*.apk`; do
           for file in `ls ${{ github.workspace }}/app/build/outputs/apk/*/*/*.apk`; do
             mv "$file" ${{ github.workspace }}/apk/legado_${{ env.product }}_${{ env.VERSIONL }}_$typeName.apk
             mv "$file" ${{ github.workspace }}/apk/legado_${{ env.product }}_${{ env.VERSIONL }}_$typeName.apk
           done
           done
+          echo "移动mapping文件"
+          mkdir -p ${{ github.workspace }}/mapping/
           for file in `ls ${{ github.workspace }}/app/build/outputs/mapping/*/mapping.txt`; do
           for file in `ls ${{ github.workspace }}/app/build/outputs/mapping/*/mapping.txt`; do
             mv "$file" ${{ github.workspace }}/mapping/mapping.txt
             mv "$file" ${{ github.workspace }}/mapping/mapping.txt
           done
           done