diff --git a/.github/workflows/javasteam-build.yml b/.github/workflows/javasteam-build.yml index f2c985ec..3b4d3498 100644 --- a/.github/workflows/javasteam-build.yml +++ b/.github/workflows/javasteam-build.yml @@ -4,6 +4,7 @@ # documentation. # This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle +# Artifacts: https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts name: Java CI/CD @@ -21,25 +22,19 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout JavaSteam - uses: actions/checkout@v3 - - - name: Set up JDK 8 - uses: actions/setup-java@v3 - with: - java-version: '8' - distribution: 'temurin' - - # This could also be done in gradle.properties: org.gradle.jvmargs=-Xmx8G - - name: Increase gradle daemon heap size - run: | - sed -i "s/org.gradle.jvmargs=/org.gradle.jvmargs=-Xmx4g /" gradle.properties - - - name: Validate Gradle wrapper - uses: gradle/wrapper-validation-action@v1 - - - name: Build with Gradle, skip signing - uses: gradle/gradle-build-action@v2 - with: - arguments: build -x signMavenJavaPublication - + - uses: actions/checkout@v4 + - name: Checkout JavaSteam with Java 8 + uses: actions/setup-java@v3 + with: + java-version: '8' + distribution: 'temurin' + - name: Validate Gradle wrapper + uses: gradle/wrapper-validation-action@v1 + - name: Build with Gradle, skip signing + uses: gradle/gradle-build-action@v2 + with: + arguments: build -x signMavenJavaPublication + - uses: actions/upload-artifact@v3 + with: + name: JavaSteam + path: build/libs diff --git a/gradle.properties b/gradle.properties index 85b7cb39..ed06b789 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,4 +5,4 @@ signing.secretKeyRingFile=~/.gnupg/secring.gpg ossrhUsername= ossrhPassword= -org.gradle.jvmargs=-Xmx1024m \ No newline at end of file +org.gradle.jvmargs=-Xmx2048m \ No newline at end of file