Skip to content

Commit

Permalink
updating gradle-build-action per docs
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Florentine <[email protected]>
  • Loading branch information
jflo committed Dec 6, 2023
1 parent 4eb6fa3 commit c625eff
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: "checks"
on:
pull_request:

env:
GRADLE_BUILD_ACTION_CACHE_DEBUG_ENABLED: true

jobs:
lint:
name: "Repository Linting"
Expand Down Expand Up @@ -30,8 +33,7 @@ jobs:
with:
distribution: adopt
java-version: 17
- name: spotless
- name: Setup Gradle
uses: gradle/[email protected]
with:
arguments: spotlessCheck -Dorg.gradle.parallel=true
cache: gradle
- name: run spotless
run: ./gradlew spotlessCheck -Dorg.gradle.parallel=true -Dorg.gradle.caching=true
12 changes: 7 additions & 5 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ on:
- checks
types:
- completed
workflow_dispatch:


env:
GRADLE_OPTS: "-Xmx6g -Dorg.gradle.daemon=false"
GRADLE_OPTS: "-Xmx6g"
GRADLE_BUILD_ACTION_CACHE_DEBUG_ENABLED: true

jobs:
compile:
Expand All @@ -23,8 +26,7 @@ jobs:
distribution: adopt
java-version: 17
cache: gradle
- name: Compile
- name: Setup Gradle
uses: gradle/[email protected]
with:
arguments: build -x test -x spotlessCheck -Dorg.gradle.parallel=true
cache: gradle
- name: Run Build
run: ./gradlew build -x test -x spotlessCheck -Dorg.gradle.parallel=true -Dorg.gradle.caching=true
2 changes: 1 addition & 1 deletion .github/workflows/pr-checklist-on-draft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
jobs:
checklist:
name: "add checklist as a comment on newly opened PRs"
runs-on: [besu,Linux,self-hosted,nodocker]
runs-on: ubuntu-22.04
steps:
- uses: actions/github-script@v5
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-checklist-on-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
jobs:
checklist:
name: "add checklist as a comment on newly opened PRs"
runs-on: [besu-research-ubuntu-8]
runs-on: ubuntu-22.04
steps:
- uses: actions/github-script@v5
with:
Expand Down

0 comments on commit c625eff

Please sign in to comment.