Skip to content

Commit 832f93c

Browse files
authored
Optimize PR builds (#2273)
* Optimize PR build * Update codeql.yml
1 parent c5f66c3 commit 832f93c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/build-pr.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ jobs:
1616
uses: actions/setup-java@v3
1717
with:
1818
distribution: temurin
19+
cache: gradle
1920
java-version: 17
2021
- name: Build on ${{ matrix.os }}
21-
run: ./gradlew clean build --no-daemon
22+
run: ./gradlew build -s
2223
- name: Archive artifacts
2324
uses: actions/upload-artifact@v3
2425
with:

.github/workflows/codeql.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: "CodeQL"
22
on:
3+
push:
4+
branches: [main]
35
pull_request:
46
# The branches below must be a subset of the branches above
57
branches: [main]

0 commit comments

Comments
 (0)