From 07f9efb09370a1936f69a35f181d1155f347f0fb Mon Sep 17 00:00:00 2001 From: Sebastian Schuberth Date: Tue, 19 Dec 2023 22:09:38 +0100 Subject: [PATCH] ci(github): Disable the Gradle daemon globally in always the same way There is no benefit of the Gradle daemon in one-shot CI builds. Signed-off-by: Sebastian Schuberth --- .github/workflows/release.yml | 3 +++ .github/workflows/static-analysis.yml | 7 +++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 72c8aa73d0126..20ccf0712b191 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,6 +11,9 @@ on: required: true type: string +env: + GRADLE_OPTS: -Dorg.gradle.daemon=false + jobs: publish: env: diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index 503b1dcaf4e83..e2e97b1a76a9c 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -8,6 +8,9 @@ on: branches: - main +env: + GRADLE_OPTS: -Dorg.gradle.daemon=false + jobs: commit-lint: runs-on: ubuntu-22.04 @@ -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 @@ -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