From 9bd56ce760a93551ea393d411a368118465b26b9 Mon Sep 17 00:00:00 2001 From: lzw-723 Date: Sat, 2 May 2026 23:07:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E5=B7=A5=E4=BD=9C=E6=B5=81?= =?UTF-8?q?=E6=9E=84=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build-ci.yaml | 57 +++++++++++++++++++++++++++++++++- 1 file changed, 56 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build-ci.yaml b/.gitea/workflows/build-ci.yaml index 1bd8928..5ee4f9e 100644 --- a/.gitea/workflows/build-ci.yaml +++ b/.gitea/workflows/build-ci.yaml @@ -44,4 +44,59 @@ jobs: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} restore-keys: | - ${{ runner.os }}-go- \ No newline at end of file + ${{ runner.os }}-go- + + - name: Update CA + run: | + sudo apt-get update && sudo apt-get install ca-certificates + sudo update-ca-certificates + cp -f /etc/ssl/certs/ca-certificates.crt core/src/foss/golang/clash/component/ca/ca-certificates.crt + + - name: Build + if: success() + run: ./gradlew --no-daemon app:assembleAlphaRelease + + - name: Upload Aritfact (universal) + uses: actions/upload-artifact@v7 + if: ${{ success() }} + with: + name: CMFA Debug Unsigned APK (universal) + path: | + app/build/outputs/apk/alpha/release/*-universal-*.apk + retention-days: 30 + + - name: Upload Aritfact (arm64-v8a) + uses: actions/upload-artifact@v7 + if: ${{ success() }} + with: + name: CMFA Debug Unsigned APK (arm64-v8a) + path: | + app/build/outputs/apk/alpha/release/*-arm64-v8a-*.apk + retention-days: 30 + + - name: Upload Aritfact (armeabi-v7a) + uses: actions/upload-artifact@v7 + if: ${{ success() }} + with: + name: CMFA Debug Unsigned APK (armeabi-v7a) + path: | + app/build/outputs/apk/alpha/release/*-armeabi-v7a-*.apk + retention-days: 30 + + - name: Upload Aritfact (x86_64) + uses: actions/upload-artifact@v7 + if: ${{ success() }} + with: + name: CMFA Debug Unsigned APK (x86_64) + path: | + app/build/outputs/apk/alpha/release/*-x86_64-*.apk + retention-days: 30 + + - name: Upload Aritfact (x86) + uses: actions/upload-artifact@v7 + if: ${{ success() }} + with: + name: CMFA Debug Unsigned APK (x86) + path: | + app/build/outputs/apk/alpha/release/*-x86-*.apk + retention-days: 30 \ No newline at end of file