forked from schwabe/ics-openvpn
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 1.05 KB
/
build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# The name of our workflow
name: Build
on: [push, pull_request]
jobs:
build:
strategy:
fail-fast: false
matrix:
target: [UiOvpn23, SkeletonOvpn2, UiOvpn2]
name: "Release ${{ matrix.target }}"
runs-on: ubuntu-latest
steps:
- 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
- name: Archive apk artifact
uses: actions/upload-artifact@v3
with:
name: build-${{matrix.target}}-release-apk
path: main/build/outputs/apk/**/*universal*.apk