0
0
Fork 0
mirror of https://github.com/YTVanced/VancedMicroG synced 2024-12-03 08:17:26 +00:00

Enable GitHub Actions

This commit is contained in:
Marvin W 2021-01-11 21:35:34 +01:00
parent 75ae299b54
commit 19118d0b31
No known key found for this signature in database
GPG key ID: 072E9235DB996F2A
5 changed files with 18 additions and 18 deletions

13
.github/workflows/build.yml vendored Normal file
View file

@ -0,0 +1,13 @@
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

View file

@ -1,15 +0,0 @@
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

@ -1 +0,0 @@
Subproject commit 47073dd7a2a039593fe556af8f9f33e325febfa7

1
extern/Wearable vendored

@ -1 +0,0 @@
Subproject commit 617a43e139c6470361e44015bf1964026f3107e7

View file

@ -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")
}