summary refs log tree commit diff stats
path: root/.github/workflows/build.yml
diff options
context:
space:
mode:
authorIsuru Rajapakse <isuru@xfastgames.com>2020-10-25 16:44:51 +1100
committerGitHub <noreply@github.com>2020-10-25 07:44:51 +0200
commit5609fe5ed96743af61756bbbef14dea34835ffc2 (patch)
treeb26dfbdcfe2b8d709e06e25fad21e8fc353c5cca /.github/workflows/build.yml
parent1d797df886bff85710633be09d535a98e919d896 (diff)
Add github action for build (#8)
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r--.github/workflows/build.yml23
1 files changed, 23 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000..38dcf29
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,23 @@
+name: Gradle build
+
+on:
+  push:
+    branches: [ master ]
+  pull_request:
+    branches: [ master ]
+
+jobs:
+  build:
+
+    runs-on: ubuntu-latest
+
+    steps:
+    - uses: actions/checkout@v2
+    - name: Set up JDK 1.8
+      uses: actions/setup-java@v1
+      with:
+        java-version: 1.8
+    - name: Grant execute permission for gradlew
+      run: chmod +x gradlew
+    - name: Build with Gradle
+      run: ./gradlew build