diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1375f4eed..e63bc6bb2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,7 +7,7 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: macos-latest permissions: contents: write steps: @@ -24,6 +24,15 @@ jobs: distribution: 'zulu' java-version: 18 + - name: Setup Android SDK + uses: android-actions/setup-android@v2 + + - name: Generate Baseline Profile + run: | + echo y | sdkmanager "system-images;android-34;google_apis;x86_64" + echo y | sdkmanager emulator + ./gradlew :catalog:generateReleaseBaselineProfile :icons:generateBaselineProfile :illustrations:generateBaselineProfile :ui:generateBaselineProfile -Pandroid.testInstrumentationRunnerArguments.androidx.benchmark.enabledRules=baselineprofile + - name: ktlint run: ./gradlew lintKotlin