-
Notifications
You must be signed in to change notification settings - Fork 9
59 lines (49 loc) · 1.63 KB
/
examples-CI.yml
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
name: Examples CI
on:
workflow_call:
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: examples
name: Java ${{ matrix.java }}
env:
USERNAME: ${{ github.actor }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}
strategy:
matrix:
java: [17, 21]
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: ${{ matrix.java }}
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build and Check
run: |
chmod +x gradlew
./gradlew build --no-daemon
- name: Run standalone simple android example
working-directory: examples/standalone/android-simple
run: |
chmod +x gradlew
./gradlew printAnimalsnifferTasks build --no-daemon
- name: Run standalone multiplatform with android example
working-directory: examples/standalone/kotlin-multi-android-desktop-server
run: |
chmod +x gradlew
./gradlew printAnimalsnifferTasks build --no-daemon
- name: Run standalone multiplatform with android only example
working-directory: examples/standalone/kotlin-multi-android-only
run: |
chmod +x gradlew
./gradlew printAnimalsnifferTasks build --no-daemon
- name: Run standalone pure multiplatform example
working-directory: examples/standalone/kotlin-multi-desktop-server
run: |
chmod +x gradlew
./gradlew printAnimalsnifferTasks build --no-daemon