|
1 | | -name: Build Examples |
2 | | - |
3 | | -on: |
4 | | - workflow_call: |
5 | | - |
6 | | -permissions: |
7 | | - contents: read |
8 | | - |
9 | | -jobs: |
10 | | - build-examples: |
11 | | - name: Build Example Apps |
12 | | - runs-on: ubuntu-latest |
13 | | - |
14 | | - steps: |
15 | | - - name: Checkout repository |
16 | | - uses: actions/checkout@v4 |
17 | | - |
18 | | - - name: Set up JDK 17 |
19 | | - uses: actions/setup-java@v4 |
20 | | - with: |
21 | | - distribution: temurin |
22 | | - java-version: 17 |
23 | | - |
24 | | - - name: Cache Gradle |
25 | | - uses: actions/cache@v4 |
26 | | - with: |
27 | | - path: | |
28 | | - ~/.gradle/caches |
29 | | - ~/.gradle/wrapper |
30 | | - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} |
31 | | - restore-keys: | |
32 | | - ${{ runner.os }}-gradle- |
33 | | -
|
34 | | - - name: Grant execute permission for Gradle wrapper |
35 | | - run: chmod +x gradlew |
36 | | - |
37 | | - - name: Build Example01Pan |
38 | | - run: ./gradlew :examples:Example01Pan:assembleDebug |
39 | | - |
40 | | - - name: Build Example02Zoom |
41 | | - run: ./gradlew :examples:Example02Zoom:assembleDebug |
42 | | - |
43 | | - - name: Build Example03Markers |
44 | | - run: ./gradlew :examples:Example03Markers:assembleDebug |
45 | | - |
46 | | - - name: Build Example04Polylines |
47 | | - run: ./gradlew :examples:Example04Polylines:assembleDebug |
48 | | - |
49 | | - - name: Build Example05Camera |
50 | | - run: ./gradlew :examples:Example05Camera:assembleDebug |
51 | | - |
52 | | - - name: Build Example06Clicks |
53 | | - run: ./gradlew :examples:Example06Clicks:assembleDebug |
54 | | - |
55 | | - - name: Build Example07DraggableMarkers |
56 | | - run: ./gradlew :examples:Example07DraggableMarkers:assembleDebug |
57 | | - |
58 | | - - name: Build Example08Circles |
59 | | - run: ./gradlew :examples:Example08Circles:assembleDebug |
60 | | - |
61 | | - - name: Upload example APKs |
62 | | - uses: actions/upload-artifact@v4 |
63 | | - with: |
64 | | - name: example-apks |
65 | | - path: examples/**/build/outputs/apk/debug/*.apk |
66 | | - retention-days: 30 |
| 1 | +name: Build Examples |
| 2 | + |
| 3 | +on: |
| 4 | + workflow_call: |
| 5 | + |
| 6 | +permissions: |
| 7 | + contents: read |
| 8 | + |
| 9 | +jobs: |
| 10 | + build-examples: |
| 11 | + name: Build Example Apps |
| 12 | + runs-on: ubuntu-latest |
| 13 | + |
| 14 | + steps: |
| 15 | + - name: Checkout repository |
| 16 | + uses: actions/checkout@v4 |
| 17 | + |
| 18 | + - name: Set up JDK 17 |
| 19 | + uses: actions/setup-java@v4 |
| 20 | + with: |
| 21 | + distribution: temurin |
| 22 | + java-version: 17 |
| 23 | + |
| 24 | + - name: Cache Gradle |
| 25 | + uses: actions/cache@v4 |
| 26 | + with: |
| 27 | + path: | |
| 28 | + ~/.gradle/caches |
| 29 | + ~/.gradle/wrapper |
| 30 | + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} |
| 31 | + restore-keys: | |
| 32 | + ${{ runner.os }}-gradle- |
| 33 | +
|
| 34 | + - name: Grant execute permission for Gradle wrapper |
| 35 | + run: chmod +x gradlew |
| 36 | + |
| 37 | + - name: Build Example01Pan |
| 38 | + run: ./gradlew :examples:Example01Pan:assembleDebug |
| 39 | + |
| 40 | + - name: Build Example02Zoom |
| 41 | + run: ./gradlew :examples:Example02Zoom:assembleDebug |
| 42 | + |
| 43 | + - name: Build Example03Markers |
| 44 | + run: ./gradlew :examples:Example03Markers:assembleDebug |
| 45 | + |
| 46 | + - name: Build Example04Polylines |
| 47 | + run: ./gradlew :examples:Example04Polylines:assembleDebug |
| 48 | + |
| 49 | + - name: Build Example05Camera |
| 50 | + run: ./gradlew :examples:Example05Camera:assembleDebug |
| 51 | + |
| 52 | + - name: Build Example06Clicks |
| 53 | + run: ./gradlew :examples:Example06Clicks:assembleDebug |
| 54 | + |
| 55 | + - name: Build Example07DraggableMarkers |
| 56 | + run: ./gradlew :examples:Example07DraggableMarkers:assembleDebug |
| 57 | + |
| 58 | + - name: Build Example08Circles |
| 59 | + run: ./gradlew :examples:Example08Circles:assembleDebug |
| 60 | + |
| 61 | + - name: Upload example APKs |
| 62 | + uses: actions/upload-artifact@v4 |
| 63 | + with: |
| 64 | + name: example-apks |
| 65 | + path: examples/**/build/outputs/apk/debug/*.apk |
| 66 | + retention-days: 30 |
0 commit comments