-
Notifications
You must be signed in to change notification settings - Fork 2
56 lines (45 loc) · 1.74 KB
/
gradle.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
name: Gradle Check
on:
push:
branches:
- main
pull_request:
jobs:
check:
strategy:
matrix:
os: [ ubuntu-latest, macOS-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: gradle/actions/wrapper-validation@v3
- uses: actions/setup-java@v4
if: ${{ vars.GRADLE_JAVA_VERSION != vars.JAVA_VERSION }}
with:
distribution: ${{ vars.JAVA_VENDOR }}
java-version: ${{ vars.GRADLE_JAVA_VERSION }}
java-package: jre
cache: 'gradle'
- run: printf "org.gradle.java.home=%s" "$JAVA_HOME" > gradle.properties
if: ${{ vars.GRADLE_JAVA_VERSION != vars.JAVA_VERSION }}
- uses: actions/setup-java@v4
with:
distribution: ${{ vars.JAVA_VENDOR }}
java-version: ${{ vars.JAVA_VERSION }}
check-latest: true
- run: printf "org.gradle.java.home=%s" "$JAVA_HOME" > gradle.properties
if: ${{ vars.GRADLE_JAVA_VERSION == vars.JAVA_VERSION }}
- run: printf "\norg.gradle.java.installations.paths=%s" "$JAVA_HOME" >> gradle.properties
- run: java --version
- name: Generate Source
run: ./genSrc.sh --tjv="${{ vars.JAVA_VERSION }}" --log="INFO" --tl=2 --bdm=200 --nt=5 --sd="programs/src/main/java" --rpc="${{ secrets.RPC_URL }}"
env:
GITHUB_ACTOR: ${{ secrets.GPR_USER }}
GITHUB_TOKEN: ${{ secrets.GPR_TOKEN }}
- name: Gradle Check
run: ./gradlew -PtargetJava=${{ vars.JAVA_VERSION }} check --stacktrace
env:
GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_SAVA_USER: ${{ secrets.GPR_USER }}
GITHUB_SAVA_TOKEN: ${{ secrets.GPR_TOKEN }}