kami-blue/.github/workflows/gradle_build.yml

41 lines
875 B
YAML

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-cache build
- name: Archive artifact
uses: actions/upload-artifact@v2
with:
name: artifact
path: build/libs