Skip to content

Merge pull request #59 from Team-Notitime/feat/onboarding/57-onboardi… #43

Merge pull request #59 from Team-Notitime/feat/onboarding/57-onboardi…

Merge pull request #59 from Team-Notitime/feat/onboarding/57-onboardi… #43

Workflow file for this run

name: Android CI
on:
push:
branches: [ "main", "dev" ]
jobs:
build:
runs-on: ubuntu-latest
env:
LOCAL_PROPERTIES_CONTENTS: ${{ secrets.LOCAL_PROPERTIES_CONTENTS }}
steps:
- uses: actions/checkout@v4
- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Setup Android SDK
uses: android-actions/setup-android@v2
- name: Cache Gradle packages
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', '**/buildSrc/**/*.kt') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Create local.properties
run: |
echo "$LOCAL_PROPERTIES_CONTENTS" > local.properties
- name: Build with Gradle
run: ./gradlew build
# - name: Build debug
# run: ./gradlew assembleDebug