summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2023-04-18 12:04:24 +0200
committerArne Schwabe <arne@rfc2549.org>2023-04-18 12:44:13 +0200
commitf01075341032da733d857cc072f2984fb3a22401 (patch)
tree94015d89f6421675d3ab396232f648316711f75c /.github/workflows
parent4638defbec5b9ac620ff90e9ebaac6143d688a47 (diff)
Save artificats from github build and cache gradle deps
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yaml19
1 files changed, 13 insertions, 6 deletions
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index ccc5e8a9..79243a92 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -11,18 +11,25 @@ jobs:
name: "Release ${{ matrix.target }}"
runs-on: ubuntu-latest
steps:
- - name: set up JDK 17
- uses: actions/setup-java@v3
- with:
- distribution: 'zulu'
- java-version: 17
- name: Use debug signing
run: mkdir -p ~/.gradle && echo -e "icsopenvpnDebugSign=true\norg.gradle.jvmargs=-Xmx2048M" > ~/.gradle/gradle.properties
- name: Checkout the code
uses: actions/checkout@v2
with:
submodules: true
+ - name: set up JDK 17
+ uses: actions/setup-java@v3
+ with:
+ distribution: 'zulu'
+ java-version: 17
+ cache: 'gradle'
- name: Build the app
run: ./gradlew assemble${{ matrix.target }}Release
- name: Run Unit tests
- run: ./gradlew test${{ matrix.target }}ReleaseUnitTest \ No newline at end of file
+ run: ./gradlew test${{ matrix.target }}ReleaseUnitTest
+
+ - name: Archive apk artifact
+ uses: actions/upload-artifact@v3
+ with:
+ name: build-${{matrix.target}}-release-apk
+ path: main/build/outputs/apk/**/*universal*.apk