Verified Commit 19118d0b authored by Marvin W.'s avatar Marvin W. 🐿
Browse files

Enable GitHub Actions

parent 75ae299b
name: Build
on: [pull_request, push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- run: ./gradlew --no-daemon build
env:
TERM: dumb
JAVA_OPTS: -Xmx2048m
language: java
jdk: openjdk8
install:
- mkdir $HOME/android-cmdline-tools
- curl https://dl.google.com/android/repository/commandlinetools-linux-6609375_latest.zip > $HOME/android-cmdline-tools/cmdline-tools.zip
- unzip -qq -n $HOME/android-cmdline-tools/cmdline-tools.zip -d $HOME/android-cmdline-tools
- echo y | $HOME/android-cmdline-tools/tools/bin/sdkmanager --sdk_root=$HOME/android-sdk 'platform-tools'
- echo y | $HOME/android-cmdline-tools/tools/bin/sdkmanager --sdk_root=$HOME/android-sdk 'build-tools;29.0.3'
- echo y | $HOME/android-cmdline-tools/tools/bin/sdkmanager --sdk_root=$HOME/android-sdk 'platforms;android-30'
env:
- ANDROID_HOME=$HOME/android-sdk TERM=dumb JAVA_OPTS="-Xmx2048m"
before_script:
- echo sdk.dir $ANDROID_HOME > local.properties
script:
- ./gradlew --no-daemon build
RemoteDroidGuard @ 47073dd7
Subproject commit 47073dd7a2a039593fe556af8f9f33e325febfa7
Wearable @ 617a43e1
Subproject commit 617a43e139c6470361e44015bf1964026f3107e7
......@@ -41,7 +41,11 @@ def execResult(...args) {
def mapboxKey() {
Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())
try {
properties.load(project.rootProject.file('local.properties').newDataInputStream())
} catch (ignored) {
// Ignore
}
return properties.getProperty("mapbox.key", "invalid")
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment