-
Notifications
You must be signed in to change notification settings - Fork 44
40 lines (38 loc) · 1.2 KB
/
noisecapture.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: androidbuild
on: [ push, pull_request, workflow_dispatch ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
- name: Put gradle.properties settings
run: |
touch gradle.properties
echo android.useAndroidX=true >> gradle.properties
echo org.gradle.jvmargs=-Xmx4096M >> gradle.properties
- name: Building
run: ./gradlew build -x test --info --stacktrace
- name: Test
run: ./gradlew test --info --stacktrace
- name: Clean
run: rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- name: Cache
uses: actions/cache@v2
with:
path: |
$HOME/.m2/
$HOME/.gradle/caches/
$HOME/.gradle/wrapper/
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
- name: Archive production artifacts
uses: actions/upload-artifact@v2
with:
name: NoiseCapture_unsigned
path: app/build/outputs/apk/release/app-release-unsigned.apk