-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (61 loc) · 1.57 KB
/
build-pr.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
name: Build PR
on:
pull_request
jobs:
build-macos:
runs-on: macos-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- name: set up jdk 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
settings-path: ${{ github.workspace }}
- name: use gradle
uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0
with:
gradle-version: current
- name: build
run: gradle build
build-windows:
runs-on: windows-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- name: set up jdk 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
settings-path: ${{ github.workspace }}
- name: use gradle
uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0
with:
gradle-version: current
- name: build
run: gradle build
build-linux:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- name: set up jdk 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
settings-path: ${{ github.workspace }}
- name: use gradle
uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0
with:
gradle-version: current
- name: build
run: gradle build