Skip to content

Commit b8b8469

Browse files
committed
Add migrate-room workflow
1 parent 7b5ffc4 commit b8b8469

File tree

1 file changed

+65
-0
lines changed

1 file changed

+65
-0
lines changed

.github/workflows/migrate-room.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: migrate-room
2+
3+
on:
4+
workflow_dispatch:
5+
6+
push:
7+
branches:
8+
- main
9+
- end
10+
paths:
11+
- 'migrate-room/**'
12+
- '.github/workflows/migrate-room.yml'
13+
pull_request:
14+
paths:
15+
- 'migrate-room/**'
16+
- '.github/workflows/migrate-room.yml'
17+
18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.ref }} # Unique group for each branch/workflow
20+
cancel-in-progress: true # Cancel previous jobs when a new commit is pushed
21+
22+
env:
23+
SAMPLE_PATH: migrate-room
24+
GRADLE_ENCRYPTION_KEY: CEehTVQluq6Ci3k7XSPctw==
25+
26+
jobs:
27+
androidBuild:
28+
runs-on: ubuntu-latest
29+
defaults:
30+
run:
31+
working-directory: ${{ env.SAMPLE_PATH }}
32+
33+
steps:
34+
- name: Checkout source code
35+
uses: actions/checkout@v4
36+
37+
- name: Set up JDK 17
38+
uses: actions/setup-java@v4
39+
with:
40+
java-version: '17'
41+
distribution: 'zulu'
42+
43+
- name: Setup Gradle
44+
uses: gradle/actions/setup-gradle@v4
45+
with:
46+
cache-encryption-key: ${{ env.GRADLE_ENCRYPTION_KEY }}
47+
48+
- name: Setup Android SDK
49+
uses: android-actions/setup-android@v3
50+
51+
- name: Build project
52+
run: ./gradlew assembleDebug lintDebug --stacktrace
53+
54+
iosBuild:
55+
runs-on: macos-latest
56+
steps:
57+
- name: Checkout code
58+
uses: actions/checkout@v4
59+
60+
- name: Run xcodebuild
61+
uses: mxcl/xcodebuild@v3
62+
with:
63+
scheme: KMPGetStartedCodelab
64+
platform: iOS
65+
working-directory: ${{ env.SAMPLE_PATH }}/iosApp

0 commit comments

Comments
 (0)