Update dependency com.google.devtools.ksp to v2.0.0-1.0.24 #39
Workflow file for this run
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 | |
- name: Setup JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
# https://github.com/actions/runner-images/discussions/7188 | |
- name: Increase swapfile | |
run: | | |
sudo swapoff -a | |
sudo fallocate -l 15G /swapfile | |
sudo chmod 600 /swapfile | |
sudo mkswap /swapfile | |
sudo swapon /swapfile | |
sudo swapon --show | |
# 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 |