Skip to content

Commit 4585d6c

Browse files
authored
Merge pull request #53430 from gsmet/populate-cache-main
Also populate cache on GitHub Actions for main repo
2 parents b7ac167 + 8654ee2 commit 4585d6c

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

.github/workflows/populate-cache.yml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Quarkus CI - Populate cache for forks
1+
name: Quarkus CI - Populate cache
22

33
permissions:
44
contents: read
@@ -23,19 +23,11 @@ jobs:
2323
configure:
2424
name: "Configure jobs"
2525
runs-on: ubuntu-latest
26-
if: ${{ github.repository != 'quarkusio/quarkus' }}
2726
outputs:
2827
m2-monthly-branch-cache-key: ${{ steps.cache-key.outputs.m2-monthly-branch-cache-key }}
2928
m2-monthly-cache-key: ${{ steps.cache-key.outputs.m2-monthly-cache-key }}
3029
m2-cache-key: ${{ steps.cache-key.outputs.m2-cache-key }}
31-
quarkus-metadata-cache-key: ${{ steps.cache-key.outputs.quarkus-metadata-cache-key }}
32-
quarkus-metadata-cache-key-default: ${{ steps.cache-key.outputs.quarkus-metadata-cache-key-default }}
3330
steps:
34-
- name: Set up JDK 21
35-
uses: actions/setup-java@v5
36-
with:
37-
distribution: temurin
38-
java-version: 21
3931
- name: Generate cache key
4032
id: cache-key
4133
run: |
@@ -62,8 +54,7 @@ jobs:
6254
with:
6355
fetch-depth: 0
6456
- name: Cache Maven Repository
65-
id: cache-maven
66-
uses: quarkusio/cache-action@v4
57+
uses: actions/cache@v5
6758
with:
6859
path: ~/.m2/repository
6960
# A new cache will be stored weekly. After that first store of the day, cache save actions will fail because the cache is immutable but it's not a problem.
@@ -73,7 +64,6 @@ jobs:
7364
restore-keys: |
7465
${{ needs.configure.outputs.m2-monthly-branch-cache-key }}-
7566
${{ needs.configure.outputs.m2-monthly-cache-key }}-
76-
runs-on: false
7767
- name: Populate the cache
7868
run: |
79-
./mvnw -T2C $COMMON_MAVEN_ARGS dependency:go-offline
69+
./mvnw -T2C $COMMON_MAVEN_ARGS -q dependency:go-offline -Dgo-offline

0 commit comments

Comments
 (0)