Update dependency com.airbnb.android:lottie-compose to v6.6.2 (#255) #257
This file contains 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: Android CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
# Fetch only the latest commit, instead of full git history | |
fetch-depth: 0 | |
- name: Setup JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- uses: actions/cache@v4 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
# https://github.com/orgs/community/discussions/26351#discussioncomment-3251595 | |
- name: Free Disk Space | |
run: | | |
sudo swapoff -a | |
sudo rm -f /swapfile | |
sudo apt clean | |
docker rmi $(docker image ls -aq) | |
df -h | |
# https://www.droidcon.com/2023/04/04/securely-create-android-release-using-github-actions/ | |
- name: Decode Keystore and Google Service file | |
env: | |
ENCODED_KEYSTORE: ${{ secrets.KEYSTORE_FILE }} | |
ENCODED_GOOGLE_SERVICES_JSON: ${{ secrets.GOOGLE_SERVICES_JSON }} | |
run: | | |
echo $ENCODED_KEYSTORE | base64 -d > ./BudgetKey | |
echo $ENCODED_GOOGLE_SERVICES_JSON | base64 -d > ./app/google-services.json | |
- name: Echo Secrets | |
env: | |
KEYSTORE_ALIAS: ${{ secrets.KEYSTORE_ALIAS }} | |
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }} | |
run: | | |
echo KEYSTORE_PATH=./BudgetKey > ./local.properties | |
echo KEYSTORE_ALIAS=$KEYSTORE_ALIAS >> ./local.properties | |
echo KEYSTORE_PASSWORD=$KEYSTORE_PASSWORD >> ./local.properties | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Build with Gradle | |
run: ./gradlew build |