-
Notifications
You must be signed in to change notification settings - Fork 7.6k
39 lines (34 loc) · 1.16 KB
/
gradle_jdk11.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
# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: JDK 11
on:
push:
branches: [ 3.x ]
pull_request:
branches: [ 3.x ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Set up JDK 11
uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4.0.0
with:
distribution: 'zulu'
java-version: '11'
- name: Cache Gradle packages
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-1-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle-1-
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Verify generated module-info
run: ./gradlew -PjavaCompatibility=9 jar
- name: Build RxJava
run: ./gradlew build --stacktrace
- name: Generate Javadoc
run: ./gradlew javadoc --stacktrace