-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (37 loc) · 1.06 KB
/
build-linux.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
name: Build Linux
on:
workflow_call:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
env:
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx3g"
steps:
- uses: actions/checkout@v4
- name: JDK setup
uses: actions/setup-java@v4
with:
java-version: 17
distribution: corretto
- name: Cache
uses: actions/cache@v4
with:
path: |
./build
./.gradle
~/.gradle/caches
~/.gradle/wrapper
~/.m2/repository
~/.konan
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Tests
run: ./gradlew allTest --parallel --no-daemon --stacktrace
- name: Lint and Static analysis
run: ./gradlew detekt ktlintCheck --no-daemon --stacktrace
- name: Validate api compatibility
run: ./gradlew apiCheck --no-daemon --stacktrace
- name: Build Artifacts
run: ./gradlew publishToMavenLocal