Skip to content

Commit

Permalink
Merge pull request #86 from friederbluemle/enable-ci
Browse files Browse the repository at this point in the history
Enable basic GitHub Actions CI
  • Loading branch information
Chainfire authored Apr 11, 2020
2 parents 31551a3 + 35c6a15 commit a0c21e1
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: ci
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 1.8
- uses: gradle/wrapper-validation-action@v1
- run: ./gradlew build
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# librootjava

[![ci][1]][2]

Example code for "How-To SU"

For some outdated background details, see:
Expand Down Expand Up @@ -418,3 +422,6 @@ dependencies {
implementation 'eu.chainfire:libsuperuser:1.0.0.+'
}
```

[1]: https://github.com/Chainfire/libsuperuser/workflows/ci/badge.svg
[2]: https://github.com/Chainfire/libsuperuser/actions
6 changes: 4 additions & 2 deletions libsuperuser/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ android {
minSdkVersion 5
targetSdkVersion 26
}

sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
Expand All @@ -32,7 +32,9 @@ group = "eu.chainfire"

bintray {
Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())
if (project.rootProject.file('local.properties').exists()) {
properties.load(project.rootProject.file('local.properties').newDataInputStream())
}
user = properties.getProperty('bintray.user')
key = properties.getProperty('bintray.apikey')

Expand Down

0 comments on commit a0c21e1

Please sign in to comment.