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:
authorÁlvaro Brey <alvaro.brey@nextcloud.com>2022-08-23 10:22:55 +0300
committerÁlvaro Brey <alvaro.brey@nextcloud.com>2022-08-23 10:22:55 +0300
commit46b912769f5c52d353159430035264e838531f16 (patch)
tree512bcc1602c15568e5f571e8b2181277f00af8b7
parentbbd5086244b71b84fa4c12f0ecaed688864f22bb (diff)
Move assemble check to Github actions
Less likely to break and easier to restart Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
-rw-r--r--.drone.yml42
-rw-r--r--.github/workflows/assemble.yml30
2 files changed, 30 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..07027332
--- /dev/null
+++ b/.github/workflows/assemble.yml
@@ -0,0 +1,30 @@
+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
+ - uses: actions/upload-artifact@v3
+ with:
+ name: library-outputs
+ path: library/build/outputs