Skip to content

Commit 5098fca

Browse files
Luna5ama5HT2
andauthored
[feature] Added Github Actions (#1743)
Co-authored-by: living <sokolov.dominika@gmail.com>
1 parent 88bf7cf commit 5098fca

2 files changed

Lines changed: 40 additions & 6 deletions

File tree

.github/workflows/gradle_build.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: gradle_build
2+
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Check out repository
13+
uses: actions/checkout@v2
14+
15+
- name: Check out submodules
16+
uses: snickerbockers/submodules-init@v4
17+
18+
- name: Set up JDK
19+
uses: actions/setup-java@v1
20+
with:
21+
java-version: 1.8
22+
23+
- name: Gradle cache
24+
uses: actions/cache@v2
25+
with:
26+
path: |
27+
~/.gradle/caches
28+
~/.gradle/wrapper
29+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
30+
restore-keys: |
31+
${{ runner.os }}-gradle-
32+
33+
- name: Gradle build
34+
run: ./gradlew build
35+
36+
- name: Archive artifact
37+
uses: actions/upload-artifact@v2
38+
with:
39+
name: artifact
40+
path: build/libs

.travis.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)