From 5098fca7bf98082dd7577fcbd57ff7b0cf9fcec8 Mon Sep 17 00:00:00 2001 From: Xiaro <62033805+Xiaro@users.noreply.github.com> Date: Tue, 8 Dec 2020 14:19:19 -0500 Subject: [PATCH] [feature] Added Github Actions (#1743) Co-authored-by: living --- .github/workflows/gradle_build.yml | 40 ++++++++++++++++++++++++++++++ .travis.yml | 6 ----- 2 files changed, 40 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/gradle_build.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/gradle_build.yml b/.github/workflows/gradle_build.yml new file mode 100644 index 000000000..759b7c74d --- /dev/null +++ b/.github/workflows/gradle_build.yml @@ -0,0 +1,40 @@ +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 + + - name: Archive artifact + uses: actions/upload-artifact@v2 + with: + name: artifact + path: build/libs diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d014db904..000000000 --- a/.travis.yml +++ /dev/null @@ -1,6 +0,0 @@ -language: java -jdk: - - openjdk8 -install: - - chmod +x gradlew - - "./gradlew --no-daemon compileJava"