mirror of
https://github.com/element-hq/element-android
synced 2024-11-27 20:06:51 +03:00
ci: cache debug apk linting reports on failure
This commit is contained in:
parent
467d3e764e
commit
55912ef49d
1 changed files with 14 additions and 6 deletions
20
.github/workflows/build.yml
vendored
20
.github/workflows/build.yml
vendored
|
@ -24,15 +24,23 @@ jobs:
|
|||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-gradle-
|
||||
- name: Lint ${{ matrix.target }} release
|
||||
run: ./gradlew clean lint${{ matrix.target }}Release --stacktrace
|
||||
- name: Upload ${{ matrix.target }} linting report
|
||||
uses: actions/upload-artifact@v2
|
||||
if: always()
|
||||
with:
|
||||
name: release-debug-linting-report-${{ matrix.target }}
|
||||
path: |
|
||||
vector/build/reports/*.*
|
||||
- name: Assemble ${{ matrix.target }} debug apk
|
||||
run: ./gradlew clean lint${{ matrix.target }}Release assemble${{ matrix.target }}Debug --stacktrace
|
||||
- name: Upload APKs
|
||||
run: ./gradlew assemble${{ matrix.target }}Debug --stacktrace
|
||||
- name: Upload ${{ matrix.target }} debug APKs
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: release-debug-${{ matrix.target }}
|
||||
name: release-apk-debug-${{ matrix.target }}
|
||||
path: |
|
||||
vector/build/outputs/apk/*/debug/*.apk
|
||||
vector/build/reports/*.*
|
||||
|
||||
gplay:
|
||||
name: Build unsigned GPlay APK
|
||||
|
@ -50,10 +58,10 @@ jobs:
|
|||
${{ runner.os }}-gradle-
|
||||
- name: Assemble GPlay unsigned apk
|
||||
run: ./gradlew clean assembleGplayRelease --stacktrace
|
||||
- name: Upload APKs
|
||||
- name: Upload Gplay unsigned APKs
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: release-unsigned-GPlay
|
||||
name: release-apk-unsigned-GPlay
|
||||
path: |
|
||||
vector/build/outputs/apk/*/debug/*.apk
|
||||
|
||||
|
|
Loading…
Reference in a new issue