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