Build everything on Linux and Windows
This commit is contained in:
parent
95bb4b7234
commit
0670a1fb47
19
.github/workflows/maven.yml
vendored
19
.github/workflows/maven.yml
vendored
@ -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
|
||||||
|
Reference in New Issue
Block a user