mirror of
https://github.com/MetaCubeX/ClashMetaForAndroid.git
synced 2024-11-22 21:36:09 +03:00
action: upload aritfacts when PR
This commit is contained in:
parent
c78945aa3a
commit
ec78180820
96
.github/workflows/build-debug.yaml
vendored
Normal file
96
.github/workflows/build-debug.yaml
vendored
Normal file
@ -0,0 +1,96 @@
|
|||||||
|
name: Build Debug
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types: [opened, reopened, synchronize]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
BuildUnsigned:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout Repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Checkout submodules
|
||||||
|
run: git submodule update --init --recursive --remote --force
|
||||||
|
|
||||||
|
- name: Setup Java
|
||||||
|
uses: actions/setup-java@v3
|
||||||
|
with:
|
||||||
|
distribution: 'zulu'
|
||||||
|
java-version: 17
|
||||||
|
|
||||||
|
- name: Setup Go
|
||||||
|
uses: actions/setup-go@v3
|
||||||
|
with:
|
||||||
|
go-version: "1.20"
|
||||||
|
|
||||||
|
- uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.cache/go-build
|
||||||
|
~/go/pkg/mod
|
||||||
|
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-go-
|
||||||
|
|
||||||
|
- name: Signing properties
|
||||||
|
env:
|
||||||
|
SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }}
|
||||||
|
SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }}
|
||||||
|
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
|
||||||
|
run: |
|
||||||
|
touch signing.properties
|
||||||
|
echo keystore.password="$SIGNING_STORE_PASSWORD" > signing.properties
|
||||||
|
echo key.alias="$SIGNING_KEY_ALIAS" >> signing.properties
|
||||||
|
echo key.password="$SIGNING_KEY_PASSWORD" >> signing.properties
|
||||||
|
|
||||||
|
echo "cat signing.properties"
|
||||||
|
cat signing.properties
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
if: success()
|
||||||
|
uses: gradle/gradle-build-action@v2
|
||||||
|
with:
|
||||||
|
arguments: --no-daemon app:assembleMeta-AlphaRelease
|
||||||
|
|
||||||
|
|
||||||
|
- name: Upload Aritfact (universal)
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
if: ${{ success() }}
|
||||||
|
with:
|
||||||
|
name: CMFA Debug APK (universal)
|
||||||
|
path: |
|
||||||
|
app/build/outputs/apk/meta-alpha/release/*-universal-*.apk
|
||||||
|
|
||||||
|
- name: Upload Aritfact (arm64-v8a)
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
if: ${{ success() }}
|
||||||
|
with:
|
||||||
|
name: CMFA Debug APK (arm64-v8a)
|
||||||
|
path: |
|
||||||
|
app/build/outputs/apk/meta-alpha/release/*-arm64-v8a-*.apk
|
||||||
|
|
||||||
|
- name: Upload Aritfact (armeabi-v7a)
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
if: ${{ success() }}
|
||||||
|
with:
|
||||||
|
name: CMFA Debug APK (armeabi-v7a)
|
||||||
|
path: |
|
||||||
|
app/build/outputs/apk/meta-alpha/release/*-armeabi-v7a-*.apk
|
||||||
|
|
||||||
|
- name: Upload Aritfact (x86_64)
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
if: ${{ success() }}
|
||||||
|
with:
|
||||||
|
name: CMFA Debug APK (x86_64)
|
||||||
|
path: |
|
||||||
|
app/build/outputs/apk/meta-alpha/release/*-x86_64-*.apk
|
||||||
|
|
||||||
|
- name: Upload Aritfact (x86)
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
if: ${{ success() }}
|
||||||
|
with:
|
||||||
|
name: CMFA Debug APK (x86)
|
||||||
|
path: |
|
||||||
|
app/build/outputs/apk/meta-alpha/release/*-x86-*.apk
|
2
.github/workflows/build-pre-release.yaml
vendored
2
.github/workflows/build-pre-release.yaml
vendored
@ -10,7 +10,7 @@ jobs:
|
|||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Checkout submodules
|
- name: Checkout submodules
|
||||||
run: git submodule update --init --recursive --remote
|
run: git submodule update --init --recursive --remote --force
|
||||||
|
|
||||||
- name: Setup Java
|
- name: Setup Java
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
|
40
.github/workflows/build-unsigned.yaml
vendored
40
.github/workflows/build-unsigned.yaml
vendored
@ -1,40 +0,0 @@
|
|||||||
name: Build Unsigned
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
types: [opened, reopened, synchronize]
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
BuildUnsigned:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout Repository
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Checkout submodules
|
|
||||||
run: git submodule update --init --recursive --remote --force
|
|
||||||
|
|
||||||
- name: Setup Java
|
|
||||||
uses: actions/setup-java@v3
|
|
||||||
with:
|
|
||||||
distribution: 'zulu'
|
|
||||||
java-version: 17
|
|
||||||
|
|
||||||
- name: Setup Go
|
|
||||||
uses: actions/setup-go@v3
|
|
||||||
with:
|
|
||||||
go-version: "1.20"
|
|
||||||
|
|
||||||
- uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.cache/go-build
|
|
||||||
~/go/pkg/mod
|
|
||||||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-go-
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
uses: gradle/gradle-build-action@v2
|
|
||||||
with:
|
|
||||||
arguments: --no-daemon app:assembleMeta-AlphaRelease
|
|
Loading…
Reference in New Issue
Block a user