add build-vmtool.yaml.

This commit is contained in:
hengyunabc 2021-04-27 17:24:47 +08:00
parent 15f7844b4f
commit 4282bdb762

55
.github/workflows/build-vmtool.yaml vendored Normal file
View File

@ -0,0 +1,55 @@
name: build vmtool
on: [push]
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
- name: Build with Maven
run: ./mvnw package
- uses: actions/upload-artifact@v2
with:
name: Package
path: target/*.jar
mac:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
- name: Build with Maven
run: ./mvnw package
- uses: actions/upload-artifact@v2
with:
name: Package
path: target/*.jar
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
- name: Build with Maven
run: ./mvnw package
- uses: actions/upload-artifact@v2
with:
name: Package
path: target/*.jar