Skip to content

Commit

Permalink
ci(github): Disable the Gradle daemon globally in always the same way
Browse files Browse the repository at this point in the history
There is no benefit of the Gradle daemon in one-shot CI builds.

Signed-off-by: Sebastian Schuberth <[email protected]>
  • Loading branch information
sschuberth committed Dec 20, 2023
1 parent 4115c37 commit 07f9efb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
required: true
type: string

env:
GRADLE_OPTS: -Dorg.gradle.daemon=false

jobs:
publish:
env:
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
branches:
- main

env:
GRADLE_OPTS: -Dorg.gradle.daemon=false

jobs:
commit-lint:
runs-on: ubuntu-22.04
Expand All @@ -21,8 +24,6 @@ jobs:
configFile: .commitlintrc.yml
code-base-checks:
runs-on: ubuntu-22.04
env:
GRADLE_OPTS: -Dorg.gradle.daemon=false
steps:
- name: Checkout Repository
uses: actions/checkout@v4
Expand All @@ -38,8 +39,6 @@ jobs:
arguments: checkCopyrightsInNoticeFile checkLicenseHeaders checkGitAttributes
detekt-issues:
runs-on: ubuntu-22.04
env:
GRADLE_OPTS: -Dorg.gradle.daemon=false
steps:
- name: Checkout Repository
uses: actions/checkout@v4
Expand Down

0 comments on commit 07f9efb

Please sign in to comment.