Skip to content

Commit 8e520f2

Browse files
RUM-12387: Add android sdk schema generator check
1 parent bf49abe commit 8e520f2

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

.github/workflows/android-sdk.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: android-sdk
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
android-sdk-test:
8+
runs-on: ubuntu-latest
9+
env:
10+
NDK_VERSION: '28.0.13004108'
11+
steps:
12+
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
13+
with:
14+
repository: 'DataDog/dd-sdk-android'
15+
16+
- name: Setup Java
17+
uses: actions/setup-java@f2beeb24e141e01a676f977032f5a29d81c9e27e # v5.1.0
18+
with:
19+
distribution: 'temurin'
20+
java-version: 17
21+
cache: 'gradle'
22+
23+
# Ubuntu latest image doesn't have the exact version of the NDK that we need.
24+
# So we install it manually and cache.
25+
# https://github.com/actions/runner-images/blob/84b177af1632c67d56338e7c706fbee966b6e24e/images/ubuntu/Ubuntu2404-Readme.md?plain=1#L239
26+
- name: Cache NDK
27+
id: cache-ndk
28+
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
29+
with:
30+
path: /usr/local/lib/android/sdk/ndk/${{ env.NDK_VERSION }}
31+
key: android-ndk-${{ env.NDK_VERSION }}
32+
33+
- name: Setup Android NDK
34+
run: yes | ${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager "platforms;android-36" "build-tools;36.0.0" "ndk;${{ env.NDK_VERSION }}"
35+
36+
- name: Clone RUM schema
37+
run: ./gradlew cloneAllRumSchemas -Pdd.rum.schema.ref="${{ github.ref_name }}"
38+
39+
- name: Generate JSON models
40+
run: ./gradlew generateAllJsonModels

0 commit comments

Comments
 (0)