Skip to content

Commit

Permalink
Feat: Setting Create android_ci.yml
Browse files Browse the repository at this point in the history
git actions 초기 설정
  • Loading branch information
Yoon-Chan authored Apr 11, 2024
1 parent 037b584 commit 942572a
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/android_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Android CI

on:
push:
pull_request:
branches: [ "main" ]
workflow_dispatch:


jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: gradle

- name: Setup Android SDK
uses: android-actions/setup-android@v3

- name: Gradle Caching
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Grant execute permission for gradlew
run: |
echo sdk.dir=~/Android/Sdk >> local.properties
chmod +x gradlew
- name: Build with Gradle
run: |
./gradlew build

0 comments on commit 942572a

Please sign in to comment.