Skip to content

Commit

Permalink
Github: Add caching
Browse files Browse the repository at this point in the history
  • Loading branch information
Compile-Ninja committed Oct 17, 2024
1 parent 29b5a33 commit c247573
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,21 @@ jobs:
distribution: 'temurin'
java-version: 21

- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}

- name: Autobuild
uses: github/codeql-action/autobuild@v1
- name: Build with Maven
run: mvn -B package --file extra/pom.xml

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
Expand Down

0 comments on commit c247573

Please sign in to comment.