-
-
Notifications
You must be signed in to change notification settings - Fork 19
115 lines (91 loc) · 3.04 KB
/
kotlin-multiplatform.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
name: "Lib: sentry-kotlin-multiplatform"
on:
push:
branches:
- main
- release/**
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-apple:
runs-on: macos-latest-xlarge
steps:
- uses: actions/checkout@v4
- name: JDK setup
uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
- name: Cached Konan
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 #v3
with:
path: ~/.konan
key: ${{ runner.os }}-konan-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
restore-keys: ${{ runner.os }}-konan-
- name: Cached Gradle
uses: gradle/gradle-build-action@842c587ad8aa4c68eeba24c396e15af4c2e9f30a
- name: Apple build
run: |
./scripts/build-apple.sh sentry-kotlin-multiplatform
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
build-apple-samples:
runs-on: macos-latest-xlarge
steps:
- uses: actions/checkout@v4
- name: JDK setup
uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
- name: Cached Konan
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 #v3
with:
path: ~/.konan
key: ${{ runner.os }}-konan-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
restore-keys: ${{ runner.os }}-konan-
- name: Cached Gradle
uses: gradle/gradle-build-action@842c587ad8aa4c68eeba24c396e15af4c2e9f30a
- name: Apple build
run: |
make buildAppleSamples
build-jvm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: JDK setup
uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
- name: Cached Gradle
uses: gradle/gradle-build-action@842c587ad8aa4c68eeba24c396e15af4c2e9f30a
- name: JVM build
run: |
./scripts/build-jvm.sh sentry-kotlin-multiplatform
make createCoverageReports
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx3g"
# Kover coverage currently only works for JVM
- name: Upload coverage to Codecov
uses: codecov/codecov-action@5ecb98a3c6b747ed38dc09f787459979aebb39be # pin@v4
with:
name: sentry-kotlin-multiplatform
token: ${{ secrets.CODECOV_TOKEN }}
test-samples:
runs-on: macos-latest-xlarge
steps:
- uses: actions/checkout@v4
- name: JDK setup
uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
- name: Cached Gradle
uses: gradle/gradle-build-action@842c587ad8aa4c68eeba24c396e15af4c2e9f30a
- name: Test samples
run: |
./gradlew allTests -p sentry-samples