File tree Expand file tree Collapse file tree 5 files changed +84
-3
lines changed
Expand file tree Collapse file tree 5 files changed +84
-3
lines changed Original file line number Diff line number Diff line change 1+ # This workflow will build a Java project with Gradle
2+ # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
3+
4+ name : Java CI with Gradle
5+
6+ on :
7+ push :
8+ branches : [ master ]
9+ pull_request :
10+ branches : [ master ]
11+
12+ jobs :
13+ build :
14+ env :
15+ ORG_GRADLE_PROJECT_ideaVersion : " ${{ matrix.idea_version }}"
16+ ORG_GRADLE_PROJECT_phpPluginVersion : " ${{ matrix.php_plugin_version }}"
17+ ORG_GRADLE_PROJECT_psiViewerPluginVersion : " ${{ matrix.psi_viewer_plugin_version }}"
18+ ORG_GRADLE_PROJECT_grammarKitPluginVersion : " ${{ matrix.grammar_kit_plugin_version }}"
19+ ORG_GRADLE_PROJECT_customSinceBuild : " ${{ matrix.since_build }}"
20+ ORG_GRADLE_PROJECT_customUntilBuild : " ${{ matrix.until_build }}"
21+
22+ runs-on : ubuntu-latest
23+
24+ strategy :
25+ matrix :
26+ include :
27+ - idea_version : " IU-2020.2"
28+ php_plugin_version : " 202.6397.94"
29+ psi_viewer_plugin_version : " 202-SNAPSHOT"
30+ grammar_kit_plugin_version : " 2020.2.1"
31+ since_build : " 202"
32+ until_build : " 202.*"
33+
34+ steps :
35+ - uses : actions/checkout@v2
36+ - name : Set up JDK 1.8
37+ uses : actions/setup-java@v1
38+ with :
39+ java-version : 1.8
40+ - name : Cache Gradle packages
41+ uses : actions/cache@v2
42+ with :
43+ path : ~/.gradle/caches
44+ key : ${{ runner.os }}-${{ matrix.idea_version }}-${{ matrix.php_plugin_version }}-gradle-${{ hashFiles('**/*.gradle') }}
45+ restore-keys : ${{ runner.os }}-gradle
46+ - name : Grant execute permission for gradlew
47+ run : chmod +x gradlew
48+ - name : Build with Gradle
49+ run : ./gradlew build
Original file line number Diff line number Diff line change 11distributionBase =GRADLE_USER_HOME
22distributionPath =wrapper/dists
3- distributionUrl =https\://services.gradle.org/distributions/gradle-6.2-bin .zip
3+ distributionUrl =https\://services.gradle.org/distributions/gradle-6.6.1-all .zip
44zipStoreBase =GRADLE_USER_HOME
55zipStorePath =wrapper/dists
Original file line number Diff line number Diff line change 11#! /usr/bin/env sh
22
3+ #
4+ # Copyright 2015 the original author or authors.
5+ #
6+ # Licensed under the Apache License, Version 2.0 (the "License");
7+ # you may not use this file except in compliance with the License.
8+ # You may obtain a copy of the License at
9+ #
10+ # http://www.apache.org/licenses/LICENSE-2.0
11+ #
12+ # Unless required by applicable law or agreed to in writing, software
13+ # distributed under the License is distributed on an "AS IS" BASIS,
14+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+ # See the License for the specific language governing permissions and
16+ # limitations under the License.
17+ #
18+
319# #############################################################################
420# #
521# # Gradle start up script for UN*X
@@ -28,7 +44,7 @@ APP_NAME="Gradle"
2844APP_BASE_NAME=` basename " $0 " `
2945
3046# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
31- DEFAULT_JVM_OPTS=" "
47+ DEFAULT_JVM_OPTS=' "-Xmx64m" "-Xms64m" '
3248
3349# Use the maximum available, or set MAX_FD != -1 to use that value.
3450MAX_FD=" maximum"
Original file line number Diff line number Diff line change 1+ @ rem
2+ @ rem Copyright 2015 the original author or authors.
3+ @ rem
4+ @ rem Licensed under the Apache License, Version 2.0 (the "License");
5+ @ rem you may not use this file except in compliance with the License.
6+ @ rem You may obtain a copy of the License at
7+ @ rem
8+ @ rem http://www.apache.org/licenses/LICENSE-2.0
9+ @ rem
10+ @ rem Unless required by applicable law or agreed to in writing, software
11+ @ rem distributed under the License is distributed on an "AS IS" BASIS,
12+ @ rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ @ rem See the License for the specific language governing permissions and
14+ @ rem limitations under the License.
15+ @ rem
16+
117@ if " %DEBUG% " == " " @ echo off
218@ rem ##########################################################################
319@ rem
@@ -14,7 +30,7 @@ set APP_BASE_NAME=%~n0
1430set APP_HOME = %DIRNAME%
1531
1632@ rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
17- set DEFAULT_JVM_OPTS =
33+ set DEFAULT_JVM_OPTS = " -Xmx64m " " -Xms64m "
1834
1935@ rem Find java.exe
2036if defined JAVA_HOME goto findJavaFromJavaHome
You can’t perform that action at this time.
0 commit comments