-
Notifications
You must be signed in to change notification settings - Fork 40
57 lines (54 loc) · 1.68 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: RouteConverter CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 17, 20, 21 ]
name: Java ${{ matrix.java }} compatibility
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: ${{ matrix.java }}
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Show Maven version
run: mvn --version
- name: Build with Maven
run: mvn --batch-mode --update-snapshots verify
prerelease:
runs-on: windows-latest
strategy:
matrix:
java: [ 17 ]
name: Java ${{ matrix.java }} on Windows
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: ${{ matrix.java }}
- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Show Maven version
run: mvn --version
- name: Build with Maven
run: mvn --batch-mode --update-snapshots verify
- uses: actions/upload-artifact@v4
with:
name: RouteConverter Windows Prerelease built with Java ${{ matrix.java }}
path: RouteConverterWindowsOpenSource/target/RouteConverterWindowsOpenSource.exe
overwrite: true