-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (44 loc) · 1.27 KB
/
Check.yaml
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
52
53
54
name: Check
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: macos-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
- name: Retrieve the secret and decode it to a file
env:
SECRETS_BASE64: ${{ secrets.SECRETS_BASE64 }}
run: |
echo $SECRETS_BASE64 | base64 --decode > secrets.properties
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: zulu
cache: 'gradle'
- name: Check formatting and build apk
run: ./gradlew spotlessCheck lintRelease :composeApp:assembleRelease --stacktrace
- name: Upload build outputs (APKs)
uses: actions/upload-artifact@v4
with:
name: build-outputs
path: composeApp/build/outputs/apk
- name: Upload build reports
if: always()
uses: actions/upload-artifact@v4
with:
name: build-reports
path: composeApp/build/reports