forked from hyperledger/besu
-
Notifications
You must be signed in to change notification settings - Fork 2
57 lines (55 loc) · 1.41 KB
/
compile.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
name: compile
on:
push:
branches: [ main ]
pull_request:
env:
GRADLE_OPTS: "-Xmx6g -Dorg.gradle.daemon=false"
total-runners: 6
jobs:
compile:
runs-on: ubuntu-22.04
timeout-minutes: 30
if: ${{ github.actor != 'dependabot[bot]' }}
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Set up Java
uses: actions/setup-java@v3
with:
distribution: adopt
java-version: 17
cache: gradle
- name: Compile
uses: gradle/gradle-build-action@v2
with:
gradle-home-cache-cleanup: true
cache-read-only: false
arguments: compileJava compileTestJava -Dorg.gradle.parallel=true
- name: save classes
uses: actions/upload-artifact@v3
with:
name: classes
path: "**/*.class"
compileJmh:
runs-on: ubuntu-22.04
needs: compile
timeout-minutes: 30
if: ${{ github.actor != 'dependabot[bot]' }}
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Set up Java
uses: actions/setup-java@v3
with:
distribution: adopt
java-version: 17
cache: gradle
- name: Restore classes
uses: actions/download-artifact@v3
with:
name: classes
- name: compileJmh
uses: gradle/gradle-build-action@v2
with:
arguments: compileJmh