Bump androidx.compose.ui:ui-tooling from 1.7.8 to 1.8.3 #1179
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Pull Request | |
on: | |
pull_request: | |
branches: [ master ] | |
paths: | |
- 'app/**' | |
- 'gradle/**' | |
- 'build.gradle.kts' | |
- 'gradle.properties' | |
- 'settings.gradle.kts' | |
- '.github/workflows/pullRequest.yml' | |
jobs: | |
build: | |
name: Build debug apk from current pull request | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Setup cmake | |
uses: jwlawson/actions-setup-cmake@v2 | |
with: | |
cmake-version: '3.31.6' | |
- name: Setup Ninja | |
run: sudo apt-get install ninja-build | |
- name: Ninja Version | |
run: ninja --version | |
- uses: nttld/setup-ndk@v1 | |
with: | |
ndk-version: r28 | |
- name: Setup JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 23 | |
distribution: temurin | |
- name: Cache Gradle dependencies | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
!~/.gradle/caches/build-cache-* | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }} | |
restore-keys: ${{ runner.os }}-gradle- | |
- name: Cache build cache | |
uses: actions/cache@v3 | |
with: | |
path: | | |
${{ github.workspace }}/.ccache | |
~/.gradle/caches/build-cache-* | |
key: ${{ runner.os }}-build-cache-${{ github.sha }} | |
restore-keys: ${{ runner.os }}-build-cache- | |
- name: File Permissions | |
run: chmod +x gradlew | |
- name: Accept Preview SDK License | |
run: echo -n -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > /usr/local/lib/android/sdk/licenses/android-sdk-preview-license | |
- name: CMake Version | |
run: cmake --version | |
- name: Build apk | |
id: buildAllApks | |
uses: gradle/actions/setup-gradle@v4 | |
with: | |
gradle-version: wrapper | |
- name: AssembleDebug the project | |
run: ./gradlew assembleDebug | |
- name: Get JSON | |
id: metadataJson | |
run: | | |
content=`cat app/build/outputs/apk/debug/output-metadata.json` | |
content="${content//'%'/'%25'}" | |
content="${content//$'\n'/'%0A'}" | |
content="${content//$'\r'/'%0D'}" | |
echo "::set-output name=json::$content" | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Debug Artifact | |
path: app/build/outputs/apk/debug/app-debug.apk | |
- name: Check if release already exists | |
uses: mukunku/[email protected] | |
id: checkTag | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag: ${{ fromJson(steps.metadataJson.outputs.json).elements[0].versionName }} | |
# - name: Add "conflict" label if version did not increase | |
# if: steps.checkTag.outputs.exists | |
# uses: actions/labeler@v3 | |
# with: | |
# repo-token: "${{ secrets.GITHUB_TOKEN }}" | |
# - name: Comment if version name did not increase | |
# if: steps.checkTag.outputs.exists | |
# uses: unsplash/[email protected] | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# with: | |
# msg: "**Version (${{ fromJson(steps.metadataJson.outputs.json).elements[0].versionName }}) already exists**" |