Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/android-library.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Kaminsky <tobias@kaminsky.me>2022-08-23 15:03:39 +0300
committerGitHub <noreply@github.com>2022-08-23 15:03:39 +0300
commit78f36c85d325b992eec9544c78e69e2cb4c2a8a6 (patch)
tree703e9843d58b5d8c43de52b6536d8afdf218522b
parent5ba1f8e5de414336a43ab6cd4bae45437fedbeed (diff)
parentc5cfb45101db149c35cbc52ecee0a6e71e7739d2 (diff)
Merge pull request #954 from nextcloud/assemble-gh-actions
Move assemble check to Github actions
-rw-r--r--.drone.yml42
-rw-r--r--.github/workflows/assemble.yml26
2 files changed, 26 insertions, 42 deletions
diff --git a/.drone.yml b/.drone.yml
index 86afc8fe..c18be659 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -1,47 +1,5 @@
kind: pipeline
type: docker
-name: compile
-
-steps:
- - name: compile
- image: ghcr.io/nextcloud/continuous-integration-android8:2
- commands:
- - ./gradlew assemble
-
- - name: notify
- image: drillster/drone-email
- settings:
- port: 587
- from: nextcloud-drone@kaminsky.me
- recipients_only: true
- username:
- from_secret: EMAIL_USERNAME
- password:
- from_secret: EMAIL_PASSWORD
- recipients:
- from_secret: EMAIL_RECIPIENTS
- host:
- from_secret: EMAIL_HOST
- when:
- event:
- - push
- status:
- - failure
- branch:
- - master
- - stable-*
-
-trigger:
- branch:
- - master
- - stable-*
- event:
- - pull_request
- - push
-
----
-kind: pipeline
-type: docker
name: test-master
steps:
diff --git a/.github/workflows/assemble.yml b/.github/workflows/assemble.yml
new file mode 100644
index 00000000..7fde5b8b
--- /dev/null
+++ b/.github/workflows/assemble.yml
@@ -0,0 +1,26 @@
+name: Assemble
+
+on:
+ pull_request:
+ branches: [ master, stable-* ]
+ push:
+ branches: [ master, stable-* ]
+
+jobs:
+ assemble:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v3
+ - name: Set up JDK 11
+ uses: actions/setup-java@v3
+ with:
+ distribution: "temurin"
+ java-version: 11
+ - name: Setup JVM options
+ run: |
+ mkdir -p "$HOME/.gradle"
+ echo "org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError" > "$HOME/.gradle/gradle.properties"
+ - name: Assemble
+ uses: gradle/gradle-build-action@v2
+ with:
+ arguments: assemble