From 8015a7612fcb95e28d7f4f941311c3f96b2085e8 Mon Sep 17 00:00:00 2001 From: Simon Marquis Date: Sat, 24 Feb 2024 11:51:06 +0100 Subject: [PATCH] Testing useKSP2 useK2Uast --- .github/workflows/Build.yaml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/Build.yaml b/.github/workflows/Build.yaml index 5f501b6c0a..60f6fc36c0 100644 --- a/.github/workflows/Build.yaml +++ b/.github/workflows/Build.yaml @@ -12,8 +12,13 @@ concurrency: jobs: test_and_apk: - name: "Local tests and APKs" + name: "Local tests and APKs [useKSP2=${{ matrix.useKSP2 }}, useK2Uast=${{ matrix.useK2Uast }}]" runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + useKSP2: [true, false] + useK2Uast: [true, false] permissions: contents: write @@ -102,7 +107,7 @@ jobs: # Run local tests after screenshot tests to avoid wrong UP-TO-DATE. TODO: Ignore screenshots. - name: Run local tests if: always() - run: ./gradlew testDemoDebug :lint:test + run: ./gradlew testDemoDebug :lint:test -Pksp.useKSP2=${{ matrix.useKSP2 }} -Pandroid.lint.useK2Uast=${{ matrix.useK2Uast }} -Pandroid.experimental.lint.version=8.4.0-alpha11 # Replace task exclusions with `-Pandroidx.baselineprofile.skipgeneration` when # https://android-review.googlesource.com/c/platform/frameworks/support/+/2602790 landed in a # release build @@ -112,28 +117,29 @@ jobs: -x pixel6Api33DemoNonMinifiedReleaseAndroidTest -x collectDemoNonMinifiedReleaseBaselineProfile -x collectProdNonMinifiedReleaseBaselineProfile + -Pksp.useKSP2=${{ matrix.useKSP2 }} -Pandroid.lint.useK2Uast=${{ matrix.useK2Uast }} -Pandroid.experimental.lint.version=8.4.0-alpha11 - name: Upload build outputs (APKs) uses: actions/upload-artifact@v4 with: - name: APKs + name: APKs-${{ matrix.useKSP2 }}-${{ matrix.useK2Uast }} path: '**/build/outputs/apk/**/*.apk' - name: Upload test results (XML) if: always() uses: actions/upload-artifact@v4 with: - name: test-results + name: test-results-${{ matrix.useKSP2 }}-${{ matrix.useK2Uast }} path: '**/build/test-results/test*UnitTest/**.xml' - name: Check lint - run: ./gradlew :app:lintProdRelease :app-nia-catalog:lintRelease :lint:lint + run: ./gradlew :app:lintProdRelease :app-nia-catalog:lintRelease :lint:lint -Pksp.useKSP2=${{ matrix.useKSP2 }} -Pandroid.lint.useK2Uast=${{ matrix.useK2Uast }} -Pandroid.experimental.lint.version=8.4.0-alpha11 - name: Upload lint reports (HTML) if: always() uses: actions/upload-artifact@v4 with: - name: lint-reports + name: lint-reports-${{ matrix.useKSP2 }}-${{ matrix.useK2Uast }} path: '**/build/reports/lint-results-*.html' - name: Check badging