Debian Codegraph @

.github/workflows/maven.yml

raw symbols SCIP
1 # This workflow will build a Java project with Maven
2 # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3
4 name: ci_build
5
6 on: [push, pull_request]
7
8 jobs:
9 build:
10 runs-on: ${{ matrix.os }}
11 strategy:
12 fail-fast: false
13 matrix:
14 # test against latest update of each major Java version:
15 java: [ 8, 11, 17, 21]
16 # test against major operating systems
17 os: [ubuntu-latest, windows-latest, macos-latest, macos-13]
18 name: Java ${{ matrix.java }} on ${{ matrix.os }}
19 steps:
20 - uses: actions/checkout@v4
21 - uses: actions/cache@v4
22 with:
23 path: ~/.m2/repository
24 key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
25 restore-keys: |
26 ${{ runner.os }}-maven-
27 - name: Setup java
28 uses: actions/setup-java@v4
29 with:
30 java-version: ${{ matrix.java }}
31 distribution: 'zulu'
32 - name: Build with Maven
33 run: mvn -B clean package