From 9d61454858f74e10af302ae7e60f2c48bfa676b2 Mon Sep 17 00:00:00 2001 From: Dimitry Ivanov Date: Thu, 29 Aug 2019 15:08:42 +0300 Subject: [PATCH] Add individual build checks for master and not-master branches --- .github/workflows/build.yml | 5 ++++- .github/workflows/build_others.yml | 20 ++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build_others.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c62a3946..ae751608 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,9 @@ name: Build -on: push +on: + push: + branches: + - master jobs: build: diff --git a/.github/workflows/build_others.yml b/.github/workflows/build_others.yml new file mode 100644 index 00000000..4df75b34 --- /dev/null +++ b/.github/workflows/build_others.yml @@ -0,0 +1,20 @@ +name: Other build checks + +on: + push: + branches: + - '!master' + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - name: set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Build with Gradle + run: ./gradlew build