Build everything on Linux and Windows

This commit is contained in:
Kai S. K. Engelbart 2020-07-13 15:37:27 +02:00
parent 95bb4b7234
commit 0670a1fb47
No known key found for this signature in database
GPG Key ID: 0A48559CA32CB48F

View File

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