From 825f03f99ead3a7015a58395b663dbb0c47fb57f Mon Sep 17 00:00:00 2001 From: icehong Date: Tue, 3 Mar 2020 21:41:25 +0800 Subject: [PATCH] Automate build with GitHub Actions. --- .github/workflows/android.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 23ec736..aefe49b 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -7,11 +7,21 @@ jobs: runs-on: ubuntu-latest - steps: + steps: - uses: actions/checkout@v2 + - name: Get GNUGo + run: | + git clone --depth=1 git://git.savannah.gnu.org/gnugo.git + cd gnugo + ./configure + make + make clean + cp -r --no-clobber ./ ../src/main/jni/project/gnugo-3.8 + cd .. + rm -rf gnugo - name: set up JDK 1.8 uses: actions/setup-java@v1 with: java-version: 1.8 - name: Build with Gradle - run: sudo ./gradlew build + run: ./gradlew build