forked from bitcoin-wallet/bitcoin-wallet
-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (38 loc) · 1.39 KB
/
gradle7.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
41
42
43
44
45
46
name: Gradle7
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
java: ['11', '17']
distribution: ['temurin']
gradle: ['7.5.1']
fail-fast: false
name: JAVA ${{ matrix.java }} OS ${{ matrix.os }} Gradle ${{ matrix.gradle }}
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: ${{ matrix.distribution }}
java-version: ${{ matrix.java }}
- name: Setup Android SDK
uses: android-actions/[email protected]
- name: Install build-tools 33.0.2, platformtools and platform android-33
run: sdkmanager --install "build-tools;33.0.2" "platform-tools" "platforms;android-33"
- name: Build with Gradle
run: |
./gradlew wrapper --gradle-version=${{ matrix.gradle }}
./gradlew clean build --stacktrace
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: groestlcoin-wallet-JAVA${{ matrix.java }}-${{ matrix.os }}-${{ matrix.gradle }}
path: |
wallet/build/outputs/apk/
- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: groestlcoin-wallet-JAVA${{ matrix.java }}-${{ matrix.os }}-${{ matrix.gradle }}