diff --git a/.github/workflows/client.yml b/.github/workflows/client.yml new file mode 100644 index 00000000..40fa9fc4 --- /dev/null +++ b/.github/workflows/client.yml @@ -0,0 +1,35 @@ +name: Build +on: [push, pull_request] + +jobs: + build: + name: Build + + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + + - name: Gradle dependency cache + uses: actions/cache@v2 + with: + path: | + ~/.gradle/caches + ~/.gradle/wrapper + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} + restore-keys: ${{ runner.os }}-gradle- + + - name: Android build cache + uses: actions/cache@v2 + with: + path: | + ~/.android/build-cache + key: ${{ runner.os }}-android + restore-keys: ${{ runner.os }}-android + + - name: Set up JDK 11 + uses: actions/setup-java@v1 + with: + java-version: 11 + + - name: Build + run: ./gradlew compileDebugAndroidTestSources check assemble ktlintCheck \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 1c3ce3ad..00000000 --- a/.travis.yml +++ /dev/null @@ -1,33 +0,0 @@ -dist: trusty - -jdk: - - openjdk11 - -language: android -android: - components: - - build-tools-30.0.2 - - android-30 - -licenses: - - android-sdk-license-.+ - - '.+' - -before_install: - - mkdir "$ANDROID_HOME/licenses" || true - - echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" >> "$ANDROID_HOME/licenses/android-sdk-license" - - echo -e "\nd56f5187479451eabf01fb78af6dfcb131a6481e" >> "$ANDROID_HOME/licenses/android-sdk-license" - - echo -e "\n24333f8a63b6825ea9c5514f83c2829b004d1fee" >> "$ANDROID_HOME/licenses/android-sdk-license" - - echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" >> "$ANDROID_HOME/licenses/android-sdk-preview-license" - -before_cache: - - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock - - rm -fr $HOME/.gradle/caches/*/plugin-resolution/ - -script: ./gradlew compileDebugAndroidTestSources check assemble ktlintCheck - -cache: - directories: - - $HOME/.gradle/caches/ - - $HOME/.gradle/wrapper/ - - $HOME/.android/build-cache diff --git a/README.md b/README.md index 3961b3ff..21e15945 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Seedvault -[![Build Status](https://travis-ci.com/seedvault-app/seedvault.svg?branch=master)](https://travis-ci.com/seedvault-app/seedvault) +[![Build](https://github.com/seedvault-app/seedvault/workflows/Build/badge.svg?branch=master)](https://github.com/seedvault-app/seedvault/actions?query=branch%3Amaster+workflow%3ABuild) A backup application for the [Android Open Source Project](https://source.android.com/). diff --git a/app/build.gradle b/app/build.gradle index 7edfffed..9b5b5c24 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -18,7 +18,7 @@ def gitDescribe = { -> android { compileSdkVersion 30 - buildToolsVersion '30.0.2' // adapt in .travis.yaml if changed here + buildToolsVersion '30.0.2' defaultConfig { minSdkVersion 29 // leave at 29 for robolectric tests