forked from vvb2060/KeyAttestation
-
Notifications
You must be signed in to change notification settings - Fork 24
51 lines (48 loc) · 1.54 KB
/
Copy pathandroid.yml
File metadata and controls
51 lines (48 loc) · 1.54 KB
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
47
48
49
50
51
name: Build
on: [ push, pull_request ]
jobs:
build:
name: Build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest, macOS-latest ]
steps:
- name: Check out
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set up JDK 21
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: '21'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
with:
build-scan-publish: true
build-scan-terms-of-use-url: "https://gradle.com/terms-of-service"
build-scan-terms-of-use-agree: "yes"
- name: Decode Keystore
shell: bash
run: |
echo "${{ secrets.KEYSTORE_FILE }}" | base64 --decode > app/Vision.jks
- name: Build with Gradle
shell: bash
run: |
echo 'org.gradle.jvmargs=-Xmx2048m' >> gradle.properties
echo 'org.gradle.caching=true' >> gradle.properties
echo 'org.gradle.parallel=true' >> gradle.properties
./gradlew assemble
env:
# All key information is grouped here
STORE_FILE: Vision.jks
STORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
- name: Upload build artifact
uses: actions/upload-artifact@v6
with:
name: ${{ matrix.os }}-artifact
path: app/build/outputs