-
Notifications
You must be signed in to change notification settings - Fork 20
70 lines (57 loc) · 1.6 KB
/
get-started.yml
File metadata and controls
70 lines (57 loc) · 1.6 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: get-started
on:
workflow_dispatch:
push:
branches:
- main
- end
paths:
- 'get-started/**'
- '.github/workflows/get-started.yml'
pull_request:
paths:
- 'get-started/**'
- '.github/workflows/get-started.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }} # Unique group for each branch/workflow
cancel-in-progress: true # Cancel previous jobs when a new commit is pushed
env:
SAMPLE_PATH: get-started
GRADLE_ENCRYPTION_KEY: CEehTVQluq6Ci3k7XSPctw==
jobs:
androidBuild:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ env.SAMPLE_PATH }}
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'zulu'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
cache-encryption-key: ${{ env.GRADLE_ENCRYPTION_KEY }}
- name: Setup Android SDK
uses: android-actions/setup-android@v3
- name: Run Spotless check
run: ./gradlew spotlessCheck --stacktrace
- name: Build project
run: ./gradlew assembleDebug lintDebug --stacktrace
iosBuild:
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run xcodebuild
uses: mxcl/xcodebuild@v3
with:
xcode: ^16
scheme: KMPGetStartedCodelab
platform: iOS
action: build
working-directory: ${{ env.SAMPLE_PATH }}/iosApp