Skip to content

Commit

Permalink
Use setup-gradle for codeql as well
Browse files Browse the repository at this point in the history
  • Loading branch information
mrotteveel committed Sep 19, 2024
1 parent 626fe39 commit 58ba516
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ jobs:
with:
java-version: '17'
distribution: 'temurin'
cache: gradle

- name: Setup Gradle
uses: gradle/actions/setup-gradle@d156388eb19639ec20ade50009f3d199ce1e2808
with:
cache-read-only: ${{ github.ref != 'refs/heads/master' }}

# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
Expand All @@ -80,12 +84,3 @@ jobs:
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"

- name: Cleanup Gradle Cache
# Remove some files from the Gradle cache, so they aren't cached by GitHub Actions.
# Restoring these files from a GitHub Actions cache might cause problems for future builds.
run: |
rm -f ~/.gradle/caches/modules-2/modules-2.lock
rm -f ~/.gradle/caches/modules-2/gc.properties
rm -fr ~/.gradle/caches/*/plugin-resolution/
find ~/.gradle/caches/ -name "*.lock" -type f -delete

0 comments on commit 58ba516

Please sign in to comment.