Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
LossyDragon committed Oct 18, 2023
1 parent 18e843e commit 036f9ac
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 23 deletions.
39 changes: 17 additions & 22 deletions .github/workflows/javasteam-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ signing.secretKeyRingFile=~/.gnupg/secring.gpg
ossrhUsername=
ossrhPassword=

org.gradle.jvmargs=-Xmx1024m
org.gradle.jvmargs=-Xmx2048m

0 comments on commit 036f9ac

Please sign in to comment.