This repository has been archived on 2021-12-05. You can view files and clone it, but cannot push or open issues or pull requests.
2020-01-11 11:58:15 +01:00
|
|
|
name: Java CI
|
|
|
|
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
2020-07-13 15:06:10 +02:00
|
|
|
build-server:
|
|
|
|
name: Build Server
|
2020-01-11 11:58:15 +01:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2020-07-02 08:28:02 +02:00
|
|
|
- uses: actions/checkout@v2
|
2020-03-07 19:38:06 +01:00
|
|
|
- name: Set up JDK 11
|
2020-01-11 11:58:15 +01:00
|
|
|
uses: actions/setup-java@v1
|
|
|
|
with:
|
2020-03-07 19:38:06 +01:00
|
|
|
java-version: 11
|
2020-07-02 08:28:02 +02:00
|
|
|
- name: Cache Maven packages
|
|
|
|
uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: ~/.m2
|
|
|
|
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
|
|
|
|
restore-keys: ${{ runner.os }}-m2
|
2020-01-11 11:58:15 +01:00
|
|
|
- name: Build with Maven
|
2020-07-13 15:06:10 +02:00
|
|
|
run: mvn -B package -pl server -am
|
2020-07-02 08:28:02 +02:00
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
with:
|
2020-07-13 15:06:10 +02:00
|
|
|
name: envoy-server
|
|
|
|
path: server/target/envoy-server-jar-with-dependencies.jar
|