summaryrefslogtreecommitdiff
path: root/.github/workflows/build.yaml
blob: cb0eb658cdb76e5616df13ce1769ce48604a8b7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# The name of our workflow
name: Build
on: [push, pull_request]

jobs:
  build:
    strategy:
      matrix:
          target: [Ui, Skeleton]
    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: Build the app
        run: ./gradlew assemble${{ matrix.target }}Release
      - name: Run Unit tests
        run: ./gradlew test${{ matrix.target }}ReleaseUnitTest