From e96f8165016a4279a9bb0323538004e4bbeaeb02 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sat, 20 May 2023 15:05:47 +0530 Subject: fix(github): force-accept all Android SDK licenses --- .github/workflows/pull_request.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to '.github/workflows/pull_request.yml') diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 8978f14c..d7039010 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -50,6 +50,11 @@ jobs: - name: Copy CI gradle.properties run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties + - name: Accept all SDK licenses + continue-on-error: true # GitHub Actions' stdout handling causes a harmless 'broken pipe' error + shell: bash + run: yes | $ANDROID_HOME/tools/bin/sdkmanager --licenses + - name: Check codestyle uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2 with: @@ -81,6 +86,11 @@ jobs: - name: Copy CI gradle.properties run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties + - name: Accept all SDK licenses + continue-on-error: true # GitHub Actions' stdout handling causes a harmless 'broken pipe' error + shell: bash + run: yes | $ANDROID_HOME/tools/bin/sdkmanager --licenses + - name: Run unit tests uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2 with: @@ -119,6 +129,11 @@ jobs: - name: Copy CI gradle.properties run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties + - name: Accept all SDK licenses + continue-on-error: true # GitHub Actions' stdout handling causes a harmless 'broken pipe' error + shell: bash + run: yes | $ANDROID_HOME/tools/bin/sdkmanager --licenses + - name: Build debug APKs uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2 with: @@ -150,6 +165,11 @@ jobs: - name: Copy CI gradle.properties run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties + - name: Accept all SDK licenses + continue-on-error: true # GitHub Actions' stdout handling causes a harmless 'broken pipe' error + shell: bash + run: yes | $ANDROID_HOME/tools/bin/sdkmanager --licenses + - name: Check library API uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2 with: @@ -181,6 +201,11 @@ jobs: - name: Copy CI gradle.properties run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties + - name: Accept all SDK licenses + continue-on-error: true # GitHub Actions' stdout handling causes a harmless 'broken pipe' error + shell: bash + run: yes | $ANDROID_HOME/tools/bin/sdkmanager --licenses + - name: Run Lint on debug variants uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2 with: @@ -212,6 +237,11 @@ jobs: - name: Copy CI gradle.properties run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties + - name: Accept all SDK licenses + continue-on-error: true # GitHub Actions' stdout handling causes a harmless 'broken pipe' error + shell: bash + run: yes | $ANDROID_HOME/tools/bin/sdkmanager --licenses + - name: Run Lint uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2 with: -- cgit v1.2.3