Skip to content

Commit

Permalink
Add workflow for wrapper check and building ios and android
Browse files Browse the repository at this point in the history
  • Loading branch information
findjigar committed Dec 10, 2024
1 parent 86d9610 commit 85f7c7a
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 17 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build
on:
pull_request:
push:
branches: [ main ] # Trigger on pushes to the main branch
workflow_dispatch:

jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout source code
uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'corretto'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4

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

- name: Check, Assemble Android and compile iOS
run: ./gradlew ktlintCheck assembleDebug compileKotlinIosX64 --no-daemon
15 changes: 15 additions & 0 deletions .github/workflows/gradle-wrapper.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: gradle-wrapper

on:
pull_request:
paths:
- 'gradlew'
- 'gradlew.bat'
- 'gradle/wrapper/**'

jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gradle/actions/wrapper-validation@v4
17 changes: 0 additions & 17 deletions .github/workflows/ktlint.yml

This file was deleted.

0 comments on commit 85f7c7a

Please sign in to comment.