-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (34 loc) · 939 Bytes
/
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
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: Setup JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'corretto'
- name: Cache gradle
uses: actions/cache@v3
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/gradle-build-action@v2
- name: Build
run: ./gradlew :KDeviceInfo:build