From 78e3d43ad21d0ccd89685f456a4b165309755d53 Mon Sep 17 00:00:00 2001 From: HapeLee <63206378+HapeLee@users.noreply.github.com> Date: Tue, 16 Jun 2026 23:50:25 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E5=8E=BB=E6=8E=89noR8=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E7=BC=96=E8=AF=91=EF=BC=8C=E5=8F=91=E5=B8=83mapping.txt?= =?UTF-8?q?=E5=88=B0Release=E9=99=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除auto-release中noR8变体的编译(noR8 build type保留供本地使用)- 新增下载mapping artifact步骤,mapping.txt附加到GitHub Release --- .github/workflows/auto-release.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index 424e72cd1..a82b49c5a 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -126,8 +126,7 @@ jobs: strategy: matrix: product: [ app ] - # 如果是正式版,只构建 release;如果是测试版,构建 release 和 noR8 - type: ${{ (needs.prepare.outputs.is_release == 'true') && fromJSON('["release"]') || fromJSON('["release", "noR8"]') }} + type: [ release ] fail-fast: false runs-on: ubuntu-latest env: @@ -267,7 +266,15 @@ jobs: merge-multiple: true if-no-artifact-found: error - # 2. 重命名逻辑 + # 2. 下载 mapping 文件 + - name: 下载 Mapping Artifacts + uses: actions/download-artifact@v4 + with: + pattern: 'legado.app.release.mapping*' + path: artifacts + merge-multiple: true + + # 3. 重命名逻辑 - name: 整理并重命名 APK 文件 id: organize_apks run: | @@ -282,10 +289,6 @@ jobs: shopt -s nullglob for f in *.apk; do out="legado-${VERSIONL}" - if [[ "$f" == *noR8* || "$f" == *nor8* ]]; then - out="${out}-noR8" - fi - if [[ "$f" == *arm64-v8a* ]]; then out="${out}-arm64-v8a" elif [[ "$f" == *armeabi-v7a* ]]; then @@ -319,7 +322,6 @@ jobs: echo "release_body<