|
1 | | -# Copyright (c) 2020 Reficio (TM) - Reestablish your software! All Rights Reserved. |
2 | | -# |
3 | | -# Licensed to the Apache Software Foundation (ASF) under one or more |
4 | | -# contributor license agreements. See the NOTICE file distributed with |
5 | | -# this work for additional information regarding copyright ownership. |
6 | | -# The ASF licenses this file to You under the Apache License, Version 2.0 |
7 | | -# (the "License"); you may not use this file except in compliance with |
8 | | -# the License. You may obtain a copy of the License at |
9 | | -# |
10 | | -# http://www.apache.org/licenses/LICENSE-2.0 |
11 | | -# |
12 | | -# Unless required by applicable law or agreed to in writing, software |
13 | | -# distributed under the License is distributed on an "AS IS" BASIS, |
14 | | -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
15 | | -# See the License for the specific language governing permissions and |
16 | | -# limitations under the License. |
17 | | - |
18 | | -# This workflow will build a Java project with Maven |
19 | | -# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven |
20 | | - |
21 | 1 | name: Java CI with Maven |
22 | 2 |
|
23 | 3 | on: |
|
28 | 8 |
|
29 | 9 | jobs: |
30 | 10 | build: |
| 11 | + strategy: |
| 12 | + matrix: |
| 13 | + os: [ ubuntu-latest, windows-latest ] |
31 | 14 | name: "JDK 21 Eclipse Temurin" |
32 | | - runs-on: ubuntu-latest |
33 | | - container: "maven:3.9.6-eclipse-temurin-21" |
| 15 | + runs-on: ${{ matrix.os }} |
| 16 | +# container: "maven:3.9.6-eclipse-temurin-21" |
34 | 17 | steps: |
35 | 18 | - uses: actions/checkout@v4 |
36 | 19 | - uses: actions/cache@v4 |
37 | 20 | with: |
38 | 21 | path: ~/.m2/repository |
39 | | - key: maven-jdk17-${{ hashFiles('**/pom.xml') }} |
| 22 | + key: maven-jdk17-${{ matrix.os }}-${{ hashFiles('**/pom.xml') }} |
40 | 23 | restore-keys: maven-jdk17 |
| 24 | + - uses: actions/setup-java@v4 |
| 25 | + with: |
| 26 | + distribution: 'temurin' |
| 27 | + java-version: '17' |
41 | 28 | - name: 'Build' |
42 | 29 | run: | |
43 | 30 | mvn \ |
|
0 commit comments