Skip to content

Commit

Permalink
Save artificats from github build and cache gradle deps
Browse files Browse the repository at this point in the history
  • Loading branch information
schwabe committed Apr 18, 2023
1 parent 4638def commit 2290b8d
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
run: ./gradlew test${{ matrix.target }}ReleaseUnitTest

- name: Archive apk artifact
uses: actions/upload-artifact@v3
with:
name: mingw-unittest-${{matrix.target}}-ossl${{ matrix.osslver }}-tests
path: main/build/outputs/apk/**/*universal*.apk

0 comments on commit 2290b8d

Please sign in to comment.