Build everything on Linux and Windows

This commit is contained in:
Kai S. K. Engelbart 2020-07-13 15:37:27 +02:00
parent 3023039f50
commit 4b34c4033d

View File

@ -3,9 +3,12 @@ name: Java CI
on: [push]
jobs:
build-server:
name: Build Server
runs-on: ubuntu-latest
build:
name: Build & Package
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v2
@ -20,8 +23,10 @@ jobs:
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build with Maven
run: mvn -B package -pl server -am
- uses: actions/upload-artifact@v1
run: mvn -B package
- uses: actions/upload-artifact@v2
with:
name: envoy-server
path: server/target/envoy-server-jar-with-dependencies.jar
name: envoy-${{ matrix.os }}
path: |
server/target/envoy-server-jar-with-dependencies.jar
client/target/envoy-client*shaded.jar