Skip to content

Commit 6b28cd7

Browse files
committed
provide custom build for codeql-analysis
1 parent fdb6aaa commit 6b28cd7

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ jobs:
4646

4747
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
4848
# If this step fails, then you should remove it and run the build manually (see below)
49-
- name: Autobuild
50-
uses: github/codeql-action/autobuild@v1
49+
# - name: Autobuild
50+
# uses: github/codeql-action/autobuild@v1
5151

5252
# ℹ️ Command-line programs to run using the OS shell.
5353
# 📚 https://git.io/JvXDl
@@ -56,9 +56,17 @@ jobs:
5656
# and modify them (or add more) to build your code if your project
5757
# uses a compiled language
5858

59-
#- run: |
60-
# make bootstrap
61-
# make release
59+
- name: Set up JDK 17
60+
uses: actions/setup-java@v2
61+
with:
62+
java-version: '17'
63+
distribution: 'adopt'
64+
- name: Grant execute permission for gradlew
65+
run: chmod +x gradlew
66+
- name: Build with Gradle
67+
env:
68+
IDEA_SOURCES: false
69+
run: xvfb-run ./gradlew build
6270

6371
- name: Perform CodeQL Analysis
6472
uses: github/codeql-action/analyze@v1

0 commit comments

Comments
 (0)