Skip to content

Commit

Permalink
yoav
Browse files Browse the repository at this point in the history
  • Loading branch information
YHerm committed Jun 14, 2024
1 parent 3c530c9 commit bece839
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/compile.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Android CI

on:
pull_request:
types:
- synchronize
- opened
- reopened
- converted_to_draft
- edited

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
api-level: [30]
target: [default]
flavor: [none]
build-tools: [30.0.3]

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '11'

- name: Download and setup Android SDK
uses: android-actions/setup-android@v2
with:
api-level: ${{ matrix.api-level }}
target: ${{ matrix.target }}
flavor: ${{ matrix.flavor }}
build-tools: ${{ matrix.build-tools }}

- name: Cache Gradle
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build with Gradle
run: ./gradlew build

0 comments on commit bece839

Please sign in to comment.