better CI build
This commit is contained in:
parent
08c935ebae
commit
d7de15bbce
|
@ -1,44 +0,0 @@
|
|||
name: Build debug
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches-ignore:
|
||||
- ''
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
branches-ignore:
|
||||
- ''
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
if: github.repository_owner != 'FCL-Team'
|
||||
strategy:
|
||||
matrix:
|
||||
arch: [ "all", "arm", "arm64", "x86", "x64" ]
|
||||
fail-fast: false
|
||||
name: Build for ${{matrix.arch}}
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: set up JDK 17
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 17
|
||||
|
||||
- name: Build ${{matrix.arch}} .apk
|
||||
run: |
|
||||
chmod +x gradlew
|
||||
./gradlew assemblefordebug -Darch=${{matrix.arch}}
|
||||
|
||||
- name: Upload debug apk
|
||||
if: startsWith(github.ref, 'refs/heads/')
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: app-debug-${{matrix.arch}}
|
||||
path: FCL/build/outputs/apk/fordebug/*
|
||||
# retention-days: 1
|
|
@ -12,7 +12,7 @@ on:
|
|||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
FCLTeamBuild:
|
||||
if: github.repository_owner == 'FCL-Team'
|
||||
strategy:
|
||||
matrix:
|
||||
|
@ -45,10 +45,36 @@ jobs:
|
|||
files: |
|
||||
FCL/build/outputs/apk/release/*.apk
|
||||
|
||||
- name: upload apk
|
||||
- name: Upload apk
|
||||
if: startsWith(github.ref, 'refs/heads/')
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: app-${{matrix.arch}}
|
||||
path: FCL/build/outputs/apk/release/*
|
||||
# retention-days: 1
|
||||
|
||||
#only for fork
|
||||
DebugBuild:
|
||||
if: github.repository_owner != 'FCL-Team'
|
||||
name: Build Debug
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: set up JDK 17
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 17
|
||||
|
||||
- name: Build debug apk
|
||||
run: |
|
||||
chmod +x gradlew
|
||||
./gradlew assemblefordebug -Darch=all
|
||||
|
||||
- name: Upload debug apk
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: app-debug-all
|
||||
path: FCL/build/outputs/apk/fordebug/*
|
|
@ -47,8 +47,8 @@ android {
|
|||
signingConfig signingConfigs.FCLKey
|
||||
}
|
||||
fordebug {
|
||||
applicationIdSuffix ".debug"
|
||||
initWith debug
|
||||
applicationIdSuffix ".debug"
|
||||
signingConfig signingConfigs.FCLDebugKey
|
||||
}
|
||||
configureEach {
|
||||
|
|
Loading…
Reference in New Issue