mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-10-14 14:10:52 +00:00
[CI] Use Mimir on CI (#1283)
Use Maveniverse Mimir to cache central artifacts. This makes caching way simpler as well. Update Maven used to build to Maven 4.0.0-rc-3 as well.
This commit is contained in:
24
.github/ci-extensions.xml
vendored
Normal file
24
.github/ci-extensions.xml
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Licensed to the Apache Software Foundation (ASF) under one
|
||||
or more contributor license agreements. See the NOTICE file
|
||||
distributed with this work for additional information
|
||||
regarding copyright ownership. The ASF licenses this file
|
||||
to you under the Apache License, Version 2.0 (the
|
||||
"License"); you may not use this file except in compliance
|
||||
with the License. You may obtain a copy of the License at
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
Unless required by applicable law or agreed to in writing,
|
||||
software distributed under the License is distributed on an
|
||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, either express or implied. See the License for the
|
||||
specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
<extensions>
|
||||
<extension>
|
||||
<groupId>eu.maveniverse.maven.mimir</groupId>
|
||||
<artifactId>extension</artifactId>
|
||||
<version>0.4.0</version>
|
||||
</extension>
|
||||
</extensions>
|
38
.github/workflows/early-access.yaml
vendored
38
.github/workflows/early-access.yaml
vendored
@@ -46,6 +46,25 @@ jobs:
|
||||
java-version: ${{ env.JAVA_VERSION }}
|
||||
distribution: 'temurin'
|
||||
|
||||
- name: 'Prepare Mimir'
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir -p ~/.m2
|
||||
cp .github/ci-extensions.xml ~/.m2/extensions.xml
|
||||
|
||||
- name: 'Handle Mimir caches'
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.mimir/local
|
||||
key: mimir-${{ runner.os }}-default-${{ hashFiles('**/pom.xml') }}
|
||||
restore-keys: |
|
||||
mimir-${{ runner.os }}-default-
|
||||
mimir-${{ runner.os }}-
|
||||
|
||||
- name: 'Set up Maven'
|
||||
shell: bash
|
||||
run: mvn --errors --batch-mode --show-version org.apache.maven.plugins:maven-wrapper-plugin:3.3.2:wrapper "-Dmaven=4.0.0-rc-3"
|
||||
|
||||
- name: 'Run default (non-native) build'
|
||||
run: ./mvnw verify -Dmrm=false -V -B -ntp -e -s .mvn/release-settings.xml
|
||||
|
||||
@@ -100,6 +119,25 @@ jobs:
|
||||
distribution: 'graalvm'
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: 'Prepare Mimir'
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir -p ~/.m2
|
||||
cp .github/ci-extensions.xml ~/.m2/extensions.xml
|
||||
|
||||
- name: 'Handle Mimir caches'
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.mimir/local
|
||||
key: mimir-${{ runner.os }}-native-${{ hashFiles('**/pom.xml') }}
|
||||
restore-keys: |
|
||||
mimir-${{ runner.os }}-native-
|
||||
mimir-${{ runner.os }}-
|
||||
|
||||
- name: 'Set up Maven'
|
||||
shell: bash
|
||||
run: mvn --errors --batch-mode --show-version org.apache.maven.plugins:maven-wrapper-plugin:3.3.2:wrapper "-Dmaven=4.0.0-rc-3"
|
||||
|
||||
- name: 'Maven clean'
|
||||
run: ./mvnw clean -Dmrm=false -V -B -ntp -e
|
||||
|
||||
|
Reference in New Issue
Block a user