-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (36 loc) · 1.03 KB
/
build.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
name: Pull Request Verification
on:
pull_request:
branches: [ "master" ]
types: [ opened, ready_for_review, synchronize ]
paths-ignore:
- '**.md'
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Gradle Wrapper Validation
uses: gradle/wrapper-validation-action@v3
- name: Setup JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'corretto'
- name: Cache gradle
uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Grant permission for gradlew
run: chmod +x gradlew
- name: Setup gradle
uses: gradle/actions/setup-gradle@v4
- name: Build with Gradle
run: ./gradlew :KDeviceInfo:build --stacktrace