From 83535466a9abf930ca63fc59398ebafd08234860 Mon Sep 17 00:00:00 2001 From: Jarne Demeulemeester <32322857+jarnedemeulemeester@users.noreply.github.com> Date: Sat, 18 Feb 2023 14:37:26 +0100 Subject: [PATCH] ci: split build job into lint and assemble (#298) --- .github/workflows/build.yaml | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 4de18ab9..d3de8a17 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -5,8 +5,8 @@ on: pull_request: jobs: - build: - name: Build + lint: + name: Lint runs-on: ubuntu-22.04 steps: - name: Checkout repository @@ -21,7 +21,24 @@ jobs: - name: Setup Gradle uses: gradle/gradle-build-action@v2 - name: Build with Gradle - run: ./gradlew lintDebug ktlintCheck assembleDebug + run: ./gradlew lintDebug ktlintCheck + assemble: + name: Assemble + runs-on: ubuntu-22.04 + steps: + - name: Checkout repository + uses: actions/checkout@v3 + - name: Validate Gradle Wrapper + uses: gradle/wrapper-validation-action@v1 + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: 11 + distribution: temurin + - name: Setup Gradle + uses: gradle/gradle-build-action@v2 + - name: Build with Gradle + run: ./gradlew assembleDebug # Upload all build artifacts in separate steps. This can be shortened once https://github.com/actions/upload-artifact/pull/354 is merged. - name: Upload artifact phone-universal-debug.apk uses: actions/upload-artifact@v3