From acec01d500cd3136028a07c18cf6bdb848611aa0 Mon Sep 17 00:00:00 2001 From: Hannes Achleitner Date: Sun, 16 Feb 2020 07:40:33 +0100 Subject: [PATCH 1/3] CI by github action --- .github/workflows/Android-CI.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/Android-CI.yml diff --git a/.github/workflows/Android-CI.yml b/.github/workflows/Android-CI.yml new file mode 100644 index 000000000..42678d80e --- /dev/null +++ b/.github/workflows/Android-CI.yml @@ -0,0 +1,17 @@ +name: Android CI + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Build with Gradle + run: ./gradlew build From bc88719e4de4aca3d78bea032f505fa868c77af1 Mon Sep 17 00:00:00 2001 From: Hannes Achleitner Date: Sun, 16 Feb 2020 08:45:28 +0100 Subject: [PATCH 2/3] Give project a name --- settings.gradle | 2 ++ 1 file changed, 2 insertions(+) diff --git a/settings.gradle b/settings.gradle index d0ddea391..8c0d88b53 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,2 +1,4 @@ +rootProject.name = 'ownCloud library' + include ':owncloudComLibrary' include ':sample_client' \ No newline at end of file From 972939e5495237f4b506201792a511bb8f3e73bd Mon Sep 17 00:00:00 2001 From: Christian Schabesberger Date: Fri, 2 Oct 2020 15:23:43 +0200 Subject: [PATCH 3/3] upload artifacts --- .github/workflows/Android-CI.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/Android-CI.yml b/.github/workflows/Android-CI.yml index 42678d80e..839e53e97 100644 --- a/.github/workflows/Android-CI.yml +++ b/.github/workflows/Android-CI.yml @@ -13,5 +13,17 @@ jobs: uses: actions/setup-java@v1 with: java-version: 1.8 - - name: Build with Gradle + - name: build and test run: ./gradlew build + - name: upload report + uses: actions/upload-artifact@v2 + if: ${{ always() }} + with: + name: reports + path: owncloudComLibrary/build/reports + - name: upload sample app + uses: actions/upload-artifact@v2 + if: ${{ always() }} + with: + name: sample app + path: sample_client/build/outputs/apk/debug/sample_client-debug.apk