实现工作流构建
This commit is contained in:
@@ -45,3 +45,58 @@ jobs:
|
|||||||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-go-
|
${{ 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
|
||||||
Reference in New Issue
Block a user