[feature] Added Github Actions (#1743)

Co-authored-by: living <sokolov.dominika@gmail.com>
This commit is contained in:
Xiaro 2020-12-08 14:19:19 -05:00 committed by GitHub
parent 88bf7cf202
commit 5098fca7bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 40 additions and 6 deletions

40
.github/workflows/gradle_build.yml vendored Normal file
View File

@ -0,0 +1,40 @@
name: gradle_build
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Check out submodules
uses: snickerbockers/submodules-init@v4
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Gradle cache
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Gradle build
run: ./gradlew build
- name: Archive artifact
uses: actions/upload-artifact@v2
with:
name: artifact
path: build/libs

View File

@ -1,6 +0,0 @@
language: java
jdk:
- openjdk8
install:
- chmod +x gradlew
- "./gradlew --no-daemon compileJava"