workflows

This commit is contained in:
NK 2023-03-08 12:33:14 +00:00
parent c15520d3ad
commit 290b443896

30
.github/workflows/build.yml vendored Normal file
View file

@ -0,0 +1,30 @@
name: build-ci
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Java setup
uses: actions/setup-java@v1
with:
java-version: 8
- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build
run: chmod +x gradlew; ./gradlew setupCiWorkspace && ./gradlew build --stacktrace
- name: Upload build artifacts
uses: actions/upload-artifact@v1
with:
name: build-artifacts
path: build