This repository has been archived by the owner on Jun 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
90 lines (76 loc) · 2.44 KB
/
mvn.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
name: Java CI with MV
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
defaults:
run:
working-directory: project
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
include:
# - nickname: win
# os: windows-latest
# graal: 22.3.0
# musl: false
# - nickname: macos
# os: macos-latest
# graal: 22.3.0
# musl: false
- nickname: linux
os: ubuntu-latest
graal: 22.3.0
musl: true
java: 17
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.m2/repository/*/*
!~/.m2/repository/com/arakoo
key: ${{ runner.os }}-cron-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-cron-maven
${{ runner.os }}-maven
- name: Install JDK ${{ matrix.java }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
- name: Build Autoroute - JVM
run: mvn clean package -P gofly
working-directory: ./project/autoroute
- name: Build Flyfly - JVM
run: mvn clean package -P gofly
working-directory: ./project/flyfly
- name: Move App Bundle to location
run: cp target/flyfly-0.0.1-SNAPSHOT.jar ./flyfly.jar
working-directory: ./project/flyfly
- uses: actions/upload-artifact@v3
with:
name: flyfly-artifact-rel
path: |
./project/flyfly/flyfly.jar
./project/flyfly/pom.xml
- name: Publish test results
if: always()
uses: actions/upload-artifact@v2
with:
name: test-results
path: build/reports/tests/
outputs:
relid: ${{ steps.versioninfo.outputs.pipeline_id }}