Skip to content

Commit b21fa6d

Browse files
authored
Merge pull request #1038 from venmanyarun/toolchain_v1
adding jvmArgs metspace for test
2 parents 9c6077a + 2133934 commit b21fa6d

2 files changed

Lines changed: 10 additions & 7 deletions

File tree

.github/workflows/gradle.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,18 @@ jobs:
8080
- name: Copy build/report/tests/test for upload
8181
if: ${{ failure() }}
8282
run: |
83-
mkdir -p ${BUILD_REPORTS_PATH}
84-
cp -r test ${BUILD_REPORTS_PATH}
83+
# Create the directory within the workspace
84+
mkdir -p "${{ github.workspace }}/${{ env.BUILD_REPORTS_PATH }}"
85+
# Copy the test results into that directory
86+
cp -r test/* "${{ github.workspace }}/${{ env.BUILD_REPORTS_PATH }}"
8587
working-directory: build/reports/tests
8688
env:
87-
BUILD_REPORTS_PATH: /buildReports/${{runner.os}}/java${{matrix.java}}/${{matrix.RUNTIME}}-${{matrix.RUNTIME_VERSION}}/
89+
BUILD_REPORTS_PATH: buildReports/${{ runner.os }}/java${{ matrix.java }}/${{ matrix.RUNTIME }}-${{ matrix.RUNTIME_VERSION }}
8890
- uses: actions/upload-artifact@v4
8991
if: ${{ failure() }}
9092
with:
91-
name: buildReportsArtifactLinux
92-
path: /buildReports
93+
name: buildReportsArtifactLinux_${{matrix.java}}_${{matrix.RUNTIME}}_${{matrix.RUNTIME_VERSION}}
94+
path: ${{ github.workspace }}/buildReports/
9395
retention-days: 3
9496

9597
# WINDOWS BUILDS
@@ -171,6 +173,6 @@ jobs:
171173
- uses: actions/upload-artifact@v4
172174
if: ${{ failure() }}
173175
with:
174-
name: buildReportsArtifactWindows
176+
name: buildReportsArtifactWindows_${{matrix.java}}_${{matrix.RUNTIME}}_${{matrix.RUNTIME_VERSION}}
175177
path: C:/buildReports
176178
retention-days: 3

build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ artifacts {
9696
test {
9797
minHeapSize = "1G"
9898
maxHeapSize = "3G"
99-
jvmArgs '-Xmx3G'
99+
100100

101101
systemProperties System.getProperties()
102102
systemProperty 'runit', 'online'
@@ -140,6 +140,7 @@ test {
140140
prop.setProperty("runtimeVersion", runtimeVersion)
141141
prop.setProperty("antVersion", libertyAntVersion)
142142
prop.setProperty("commonVersion", libertyCommonVersion)
143+
prop.setProperty("org.gradle.jvmargs", "-Xms1G -Xmx3G -XX:MaxMetaspaceSize=512m")
143144

144145
// save properties to project root folder
145146
prop.store(output, null)

0 commit comments

Comments
 (0)