G-Earth/.github/workflows/build.yml
Eduardo Alonso 6064f8f884 Add support for github actions
* Build for windows/linux. Mac will come whenever G-Mem supports it.
2020-01-22 02:27:28 +01:00

46 lines
1.0 KiB
YAML

name: Java CI
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
name: [linux, windows]
include:
- name: linux
os: ubuntu-latest
artifact_name: G-Mem
- name: windows
os: windows-latest
artifact_name: G-Mem.exe
steps:
- uses: actions/checkout@v1
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: rust-cargo
uses: actions-rs/cargo@v1.0.1
with:
command: build
args: --release --manifest-path=G-Mem/Cargo.toml
- name: Release java part
uses: actions/upload-artifact@v1
with:
name: G-Earth-${{ matrix.os }}
path: G-Earth/target/bin
- name: Release rust part
uses: actions/upload-artifact@v1
with:
name: G-Earth-${{ matrix.os }}
path: G-Mem/target/release/${{ matrix.artifact_name }}