Skip to content

build(deps): Bump net.harawata:appdirs from 1.2.2 to 1.3.0 #212

build(deps): Bump net.harawata:appdirs from 1.2.2 to 1.3.0

build(deps): Bump net.harawata:appdirs from 1.2.2 to 1.3.0 #212

name: "🤖 Daily tag -> Play Store internal track"
on:
push:
tags:
- 'd*'
jobs:
build-play-store-internal:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "Set up JDK 17"
id: setup-java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: "Enable KVM group perms"
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- name: "Prepare env"
run: |
echo ${{ secrets.KEYSTORE_B64 }} | base64 -d | zcat >> androidApp/keyguard-release.keystore
echo ${{ secrets.KEYSTORE_PROPS_B64 }} | base64 -d | zcat >> androidApp/keyguard-release.properties
echo ${{ secrets.GOOGLE_SERVICES }} | base64 -d | zcat >> androidApp/google-services.json
echo ${{ secrets.SERVICE_ACCOUNT_B64 }} | base64 -d | zcat >> service-account-google.json
python .github/setup_gradle_properties_release.py tag=${{ github.ref_name }}
- name: "Setup Gradle"
uses: gradle/actions/setup-gradle@v4
env:
JAVA_HOME: ${{ steps.setup-java.outputs.path }}
- name: "Check and Build licenses"
run: ./gradlew :androidApp:licenseeAndroidPlayStoreRelease
- name: "Move licenses"
run: |
mv -f androidApp/build/reports/licensee/androidPlayStoreRelease/artifacts.json common/src/commonMain/composeResources/files/licenses.json
- name: "Generate baseline profiles"
id: baseline-profiles
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 30
arch: x86_64
disable-animations: true
disk-size: 4G
script: |
adb root
./gradlew :androidApp:generatePlayStoreBaselineProfile ; RESULT=$?
mkdir -p artifacts/
adb pull /storage/emulated/0/Movies/ artifactsScreenRecording/ || true
exit $RESULT
- name: 'Upload baseline profile screen recordings'
uses: actions/upload-artifact@v4
if: always()
with:
name: baselineprofile-screen-recordings
path: |
artifactsScreenRecording/
retention-days: 7
- name: 'Upload baseline profile logs'
uses: actions/upload-artifact@v4
if: always()
with:
name: baselineprofile-logs
path: |
androidBenchmark/build/outputs/androidTest-results/
retention-days: 7
- name: "Build"
run: ./gradlew :androidApp:bundlePlayStoreRelease
- name: 'Upload .aab'
uses: actions/upload-artifact@v4
with:
name: app-android
path: |
androidApp/build/outputs/bundle/playStoreRelease/androidApp-playStore-release.aab
retention-days: 7
- name: "Distribute on Play Store"
uses: r0adkll/[email protected]
with:
serviceAccountJson: service-account-google.json
packageName: com.artemchep.keyguard
releaseFiles: androidApp/build/outputs/bundle/playStoreRelease/androidApp-playStore-release.aab
track: internal