Skip to content

Commit 5260177

Browse files
Add a cache for the dependencies, not sure if its the right move
1 parent 6595b9e commit 5260177

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/ci-build.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
jobs:
1111
build:
1212
runs-on: ubuntu-latest
13-
timeout-minutes: 30
13+
timeout-minutes: 20
1414
strategy:
1515
fail-fast: false
1616
matrix:
@@ -26,11 +26,18 @@ jobs:
2626
with:
2727
java-version: ${{ matrix.java-version }}
2828
distribution: "adopt"
29+
- name: Cache Maven repository
30+
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
31+
with:
32+
path: ~/.m2/repository
33+
key: maven-${{ runner.os }}-${{ matrix.java-version }}-${{ hashFiles('**/pom.xml') }}
34+
restore-keys: |
35+
maven-${{ runner.os }}-${{ matrix.java-version }}-
2936
- name: Compile
3037
run: ./scripts/run_no_prep_tests.sh clean test-compile
3138
env:
3239
CI_ARGS: "--batch-mode"
33-
MAVEN_OPTS: "-Xmx8g -Xms1g"
40+
MAVEN_OPTS: "-Xmx10g -Xms1g"
3441
- name: Run tests
3542
run: ./scripts/run_no_prep_tests.sh test
3643
env:

0 commit comments

Comments
 (0)