From 832f93c0f34816b45467cccc4327404d9139c8cd Mon Sep 17 00:00:00 2001 From: Alexander Brandes Date: Wed, 7 Jun 2023 00:51:56 +0200 Subject: [PATCH] Optimize PR builds (#2273) * Optimize PR build * Update codeql.yml --- .github/workflows/build-pr.yml | 3 ++- .github/workflows/codeql.yml | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-pr.yml b/.github/workflows/build-pr.yml index 3959c8ad7..11f0d1d5d 100644 --- a/.github/workflows/build-pr.yml +++ b/.github/workflows/build-pr.yml @@ -16,9 +16,10 @@ jobs: uses: actions/setup-java@v3 with: distribution: temurin + cache: gradle java-version: 17 - name: Build on ${{ matrix.os }} - run: ./gradlew clean build --no-daemon + run: ./gradlew build -s - name: Archive artifacts uses: actions/upload-artifact@v3 with: diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 3b21f975b..f4287607f 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -1,5 +1,7 @@ name: "CodeQL" on: + push: + branches: [main] pull_request: # The branches below must be a subset of the branches above branches: [main]