GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Share the maven cache across builds (#15283) · netty/netty@f523711

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/workflows
    • ci-build.yml
    • ci-deploy.yml
    • ci-pr.yml
    • ci-release-4.2.yml
    • ci-release-5.yml
    • ci-release.yml
    • codeql-analysis.yml
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/ci-build.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/ci-build.yml
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ jobs:
5454
continue-on-error: true
5555
with:
5656
path: ~/.m2/repository
57-
key: ${{ runner.os }}-maven-${{ matrix.setup }}-${{ hashFiles('**/pom.xml') }}
57+
key: cache-maven-${{ hashFiles('**/pom.xml') }}
5858
restore-keys: |
59-
${{ runner.os }}-maven-${{ matrix.setup }}-
60-
${{ runner.os }}-maven-
59+
cache-maven-${{ hashFiles('**/pom.xml') }}
60+
cache-maven-
6161
6262
- name: Build docker image
6363
run: docker compose ${{ matrix.docker-compose-build }}
Collapse file

‎.github/workflows/ci-deploy.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/ci-deploy.yml
+7-7Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ on:
2424

2525
# Allows you to run this workflow manually from the Actions tab
2626
workflow_dispatch:
27-
27+
2828
permissions: read-all
2929

3030
env:
@@ -53,10 +53,10 @@ jobs:
5353
continue-on-error: true
5454
with:
5555
path: ~/.m2/repository
56-
key: ${{ runner.os }}-maven-${{ matrix.setup }}-${{ hashFiles('**/pom.xml') }}
56+
key: cache-maven-${{ hashFiles('**/pom.xml') }}
5757
restore-keys: |
58-
${{ runner.os }}-maven-${{ matrix.setup }}-
59-
${{ runner.os }}-maven-
58+
cache-maven-${{ hashFiles('**/pom.xml') }}
59+
cache-maven-
6060
6161
- name: Create local staging directory
6262
run: mkdir -p ~/local-staging
@@ -94,10 +94,10 @@ jobs:
9494
continue-on-error: true
9595
with:
9696
path: ~/.m2/repository
97-
key: ${{ runner.os }}-maven-deploy-staged-snapshots-${{ hashFiles('**/pom.xml') }}
97+
key: cache-maven-${{ hashFiles('**/pom.xml') }}
9898
restore-keys: |
99-
${{ runner.os }}-maven-deploy-staged-snapshots-
100-
${{ runner.os }}-maven-
99+
cache-maven-${{ hashFiles('**/pom.xml') }}
100+
cache-maven-
101101
102102
# Setup some env to re-use later.
103103
- name: Prepare enviroment variables
Collapse file

‎.github/workflows/ci-pr.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/ci-pr.yml
+15-13Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,11 @@ jobs:
4545
continue-on-error: true
4646
with:
4747
path: ~/.m2/repository
48-
key: ${{ runner.os }}-maven-verify-pr-${{ hashFiles('**/pom.xml') }}
48+
key: cache-maven-${{ hashFiles('**/pom.xml') }}
4949
restore-keys: |
50-
${{ runner.os }}-maven-verify-pr-
51-
${{ runner.os }}-maven-
50+
cache-maven-${{ hashFiles('**/pom.xml') }}
51+
cache-maven-
52+
5253
- name: Verify with Maven
5354
run: ./mvnw -B -ntp --file pom.xml verify -DskipTests=true
5455

@@ -73,14 +74,15 @@ jobs:
7374
java-version: '22'
7475

7576
# Cache .m2/repository
76-
# Caching of maven dependencies
77-
- uses: actions/cache@v4
77+
- name: Cache local Maven repository
78+
uses: actions/cache@v4
7879
continue-on-error: true
7980
with:
8081
path: ~/.m2/repository
81-
key: pr-windows-x86_64-maven-cache-${{ hashFiles('**/pom.xml') }}
82+
key: cache-windows-maven-${{ hashFiles('**/pom.xml') }}
8283
restore-keys: |
83-
pr-windows-x86_64-maven-cache-
84+
cache-windows-maven-${{ hashFiles('**/pom.xml') }}
85+
cache-windows-maven-
8486
8587
- name: Build project
8688
run: ./mvnw.cmd -B -ntp --file pom.xml clean package -Pboringssl -DskipHttp2Testsuite=true -DskipAutobahnTestsuite=true
@@ -121,10 +123,10 @@ jobs:
121123
continue-on-error: true
122124
with:
123125
path: ~/.m2/repository
124-
key: ${{ runner.os }}-maven-build-pr-aarch64-${{ hashFiles('**/pom.xml') }}
126+
key: cache-maven-${{ hashFiles('**/pom.xml') }}
125127
restore-keys: |
126-
${{ runner.os }}-maven-build-pr-aarch64-
127-
${{ runner.os }}-maven-
128+
cache-maven-${{ hashFiles('**/pom.xml') }}
129+
cache-maven-
128130
129131
- uses: uraimo/run-on-arch-action@v2
130132
name: Run commands
@@ -209,10 +211,10 @@ jobs:
209211
continue-on-error: true
210212
with:
211213
path: ~/.m2/repository
212-
key: ${{ runner.os }}-maven-${{ matrix.setup }}-${{ hashFiles('**/pom.xml') }}
214+
key: cache-maven-${{ hashFiles('**/pom.xml') }}
213215
restore-keys: |
214-
${{ runner.os }}-maven-${{ matrix.setup }}-
215-
${{ runner.os }}-maven-
216+
cache-maven-${{ hashFiles('**/pom.xml') }}
217+
cache-maven-
216218
217219
- name: Build docker image
218220
run: docker compose ${{ matrix.docker-compose-build }}
Collapse file

‎.github/workflows/ci-release-4.2.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/ci-release-4.2.yml
+9-9Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ jobs:
5656
continue-on-error: true
5757
with:
5858
path: ~/.m2/repository
59-
key: ${{ runner.os }}-maven-prepare-release-${{ hashFiles('**/pom.xml') }}
59+
key: cache-maven-${{ hashFiles('**/pom.xml') }}
6060
restore-keys: |
61-
${{ runner.os }}-maven-prepare-release-
62-
${{ runner.os }}-maven-
61+
cache-maven-${{ hashFiles('**/pom.xml') }}
62+
cache-maven-
6363
6464
- name: Prepare release with Maven
6565
run: |
@@ -136,10 +136,10 @@ jobs:
136136
continue-on-error: true
137137
with:
138138
path: ~/.m2/repository
139-
key: ${{ runner.os }}-maven-${{ matrix.setup }}-${{ hashFiles('**/pom.xml') }}
139+
key: cache-maven-${{ hashFiles('**/pom.xml') }}
140140
restore-keys: |
141-
${{ runner.os }}-maven-${{ matrix.setup }}-
142-
${{ runner.os }}-maven-
141+
cache-maven-${{ hashFiles('**/pom.xml') }}
142+
cache-maven-
143143
144144
- name: Create local staging directory
145145
run: mkdir -p ~/local-staging
@@ -242,10 +242,10 @@ jobs:
242242
continue-on-error: true
243243
with:
244244
path: ~/.m2/repository
245-
key: ${{ runner.os }}-maven-deploy-staged-release-${{ hashFiles('**/pom.xml') }}
245+
key: cache-maven-${{ hashFiles('**/pom.xml') }}
246246
restore-keys: |
247-
${{ runner.os }}-maven-deploy-staged-release-
248-
${{ runner.os }}-maven-
247+
cache-maven-${{ hashFiles('**/pom.xml') }}
248+
cache-maven-
249249
250250
- name: Deploy local staged artifacts
251251
working-directory: ./prepare-release-workspace/
Collapse file

‎.github/workflows/ci-release-5.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/ci-release-5.yml
+9-9Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ jobs:
5656
continue-on-error: true
5757
with:
5858
path: ~/.m2/repository
59-
key: ${{ runner.os }}-maven-prepare-release-${{ hashFiles('**/pom.xml') }}
59+
key: cache-maven-${{ hashFiles('**/pom.xml') }}
6060
restore-keys: |
61-
${{ runner.os }}-maven-prepare-release-
62-
${{ runner.os }}-maven-
61+
cache-maven-${{ hashFiles('**/pom.xml') }}
62+
cache-maven-
6363
6464
- name: Prepare release with Maven
6565
run: |
@@ -133,10 +133,10 @@ jobs:
133133
continue-on-error: true
134134
with:
135135
path: ~/.m2/repository
136-
key: ${{ runner.os }}-maven-${{ matrix.setup }}-${{ hashFiles('**/pom.xml') }}
136+
key: cache-maven-${{ hashFiles('**/pom.xml') }}
137137
restore-keys: |
138-
${{ runner.os }}-maven-${{ matrix.setup }}-
139-
${{ runner.os }}-maven-
138+
cache-maven-${{ hashFiles('**/pom.xml') }}
139+
cache-maven-
140140
141141
- name: Create local staging directory
142142
run: mkdir -p ~/local-staging
@@ -233,10 +233,10 @@ jobs:
233233
continue-on-error: true
234234
with:
235235
path: ~/.m2/repository
236-
key: ${{ runner.os }}-maven-deploy-staged-release-${{ hashFiles('**/pom.xml') }}
236+
key: cache-maven-${{ hashFiles('**/pom.xml') }}
237237
restore-keys: |
238-
${{ runner.os }}-maven-deploy-staged-release-
239-
${{ runner.os }}-maven-
238+
cache-maven-${{ hashFiles('**/pom.xml') }}
239+
cache-maven-
240240
241241
- name: Deploy local staged artifacts
242242
working-directory: ./prepare-release-workspace/
Collapse file

‎.github/workflows/ci-release.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/ci-release.yml
+9-9Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ jobs:
5656
continue-on-error: true
5757
with:
5858
path: ~/.m2/repository
59-
key: ${{ runner.os }}-maven-prepare-release-${{ hashFiles('**/pom.xml') }}
59+
key: cache-maven-${{ hashFiles('**/pom.xml') }}
6060
restore-keys: |
61-
${{ runner.os }}-maven-prepare-release-
62-
${{ runner.os }}-maven-
61+
cache-maven-${{ hashFiles('**/pom.xml') }}
62+
cache-maven-
6363
6464
- name: Prepare release with Maven
6565
run: |
@@ -133,10 +133,10 @@ jobs:
133133
continue-on-error: true
134134
with:
135135
path: ~/.m2/repository
136-
key: ${{ runner.os }}-maven-${{ matrix.setup }}-${{ hashFiles('**/pom.xml') }}
136+
key: cache-maven-${{ hashFiles('**/pom.xml') }}
137137
restore-keys: |
138-
${{ runner.os }}-maven-${{ matrix.setup }}-
139-
${{ runner.os }}-maven-
138+
cache-maven-${{ hashFiles('**/pom.xml') }}
139+
cache-maven-
140140
141141
- name: Create local staging directory
142142
run: mkdir -p ~/local-staging
@@ -233,10 +233,10 @@ jobs:
233233
continue-on-error: true
234234
with:
235235
path: ~/.m2/repository
236-
key: ${{ runner.os }}-maven-deploy-staged-release-${{ hashFiles('**/pom.xml') }}
236+
key: cache-maven-${{ hashFiles('**/pom.xml') }}
237237
restore-keys: |
238-
${{ runner.os }}-maven-deploy-staged-release-
239-
${{ runner.os }}-maven-
238+
cache-maven-${{ hashFiles('**/pom.xml') }}
239+
cache-maven-
240240
241241
- name: Deploy local staged artifacts
242242
working-directory: ./prepare-release-workspace/
Collapse file

‎.github/workflows/codeql-analysis.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/codeql-analysis.yml
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ jobs:
6363
continue-on-error: true
6464
with:
6565
path: ~/.m2/repository
66-
key: ${{ runner.os }}-maven-${{ matrix.language }} ${{ hashFiles('**/pom.xml') }}
66+
key: cache-maven-${{ hashFiles('**/pom.xml') }}
6767
restore-keys: |
68-
${{ runner.os }}-maven-${{ matrix.language }}
69-
${{ runner.os }}-maven-
68+
cache-maven-${{ hashFiles('**/pom.xml') }}
69+
cache-maven-
7070
7171
# Initializes the CodeQL tools for scanning.
7272
- name: Initialize CodeQL

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.