Skip to content

Commit 6cbd64b

Browse files
author
games647
committed
Cache autobuild process
1 parent 8d588ff commit 6cbd64b

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,14 @@ jobs:
4040
uses: github/codeql-action/init@v1
4141
with:
4242
languages: ${{ matrix.language }}
43-
# If you wish to specify custom queries, you can do so here or in a config file.
44-
# By default, queries listed here will override any specified in a config file.
45-
# Prefix the list here with "+" to use these queries and those in the config file.
46-
# queries: ./path/to/local/query, your-org/your-repo/queries@main
43+
44+
# Cache build process too like in the maven config
45+
- uses: actions/[email protected]
46+
with:
47+
path: ~/.m2/repository
48+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
49+
restore-keys: |
50+
${{ runner.os }}-maven-
4751
4852
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
4953
# If this step fails, then you should remove it and run the build manually (see below)

0 commit comments

Comments
 (0)