Skip to content

Commit

Permalink
saving/restoring classess is waaaaaaay longer than just recompiling
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Florentine <[email protected]>
  • Loading branch information
jflo committed Nov 28, 2023
1 parent 22de5b5 commit 0273612
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 13 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ jobs:
gradle-home-cache-cleanup: true
cache-read-only: false
arguments: compileJava compileTestJava -Dorg.gradle.parallel=true
- name: save classes
uses: actions/upload-artifact@v3
with:
name: classes
path: "**/*.class"
compileJmh:
runs-on: ubuntu-22.04
needs: compile
Expand All @@ -47,11 +42,22 @@ jobs:
distribution: adopt
java-version: 17
cache: gradle
- name: Restore classes
uses: actions/download-artifact@v3
with:
name: classes
- name: compileJmh
uses: gradle/gradle-build-action@v2
with:
arguments: compileJmh

javadoc_17:
runs-on: ubuntu-22.04
if: ${{ github.actor != 'dependabot[bot]' }}
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Set up Java 17
uses: actions/setup-java@v3
with:
distribution: adopt
java-version: 17
cache: gradle
- name: javadoc (JDK 17)
run: ./gradlew --no-daemon javadoc
2 changes: 1 addition & 1 deletion .github/workflows/gradle-wrapper-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
validation:
name: "Gradle Wrapper Validation"
runs-on: [ Linux ]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: gradle/wrapper-validation-action@v1
2 changes: 1 addition & 1 deletion .github/workflows/javadoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ env:

jobs:
javadoc_17:
runs-on: [ self-hosted ]
runs-on: ubuntu-22.04
if: ${{ github.actor != 'dependabot[bot]' }}
steps:
- name: Checkout Repo
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/repolinter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:

jobs:
lint:
runs-on: [ Linux ]
runs-on: ubuntu-22.04
steps:
- name: Checkout Code
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/spotless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
spotless:
runs-on: [ Linux ]
runs-on: ubuntu-22.04
if: ${{ github.actor != 'dependabot[bot]' }}
steps:
- name: Checkout Repo
Expand Down

0 comments on commit 0273612

Please sign in to comment.